ghc-xmonad-contrib/xmonad-contrib-0.16-xft-fonts.patch
2020-06-10 17:40:21 +08:00

37 lines
1.9 KiB
Diff

diff -up xmonad-contrib-0.16/XMonad/Layout/Decoration.hs.orig-misc-fixed xmonad-contrib-0.16/XMonad/Layout/Decoration.hs
--- xmonad-contrib-0.16/XMonad/Layout/Decoration.hs.orig-misc-fixed 2020-06-10 17:28:41.733456236 +0800
+++ xmonad-contrib-0.16/XMonad/Layout/Decoration.hs 2020-06-10 17:35:05.219917789 +0800
@@ -103,7 +103,7 @@ instance Default Theme where
, activeTextColor = "#FFFFFF"
, inactiveTextColor = "#BFBFBF"
, urgentTextColor = "#FF0000"
- , fontName = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+ , fontName = "xft:Sans:size=10"
, decoWidth = 200
, decoHeight = 20
, windowTitleAddons = []
diff -up xmonad-contrib-0.16/XMonad/Layout/ShowWName.hs.orig-misc-fixed xmonad-contrib-0.16/XMonad/Layout/ShowWName.hs
--- xmonad-contrib-0.16/XMonad/Layout/ShowWName.hs.orig-misc-fixed 2001-09-09 09:46:40.000000000 +0800
+++ xmonad-contrib-0.16/XMonad/Layout/ShowWName.hs 2020-06-10 17:28:41.734456256 +0800
@@ -63,7 +63,7 @@ data SWNConfig =
instance Default SWNConfig where
def =
- SWNC { swn_font = "-misc-fixed-*-*-*-*-20-*-*-*-*-*-*-*"
+ SWNC { swn_font = "xft:Sans:size=20"
, swn_bgcolor = "black"
, swn_color = "white"
, swn_fade = 1
diff -up xmonad-contrib-0.16/XMonad/Prompt.hs.orig-misc-fixed xmonad-contrib-0.16/XMonad/Prompt.hs
--- xmonad-contrib-0.16/XMonad/Prompt.hs.orig-misc-fixed 2020-06-10 17:28:41.734456256 +0800
+++ xmonad-contrib-0.16/XMonad/Prompt.hs 2020-06-10 17:36:37.533715800 +0800
@@ -303,7 +303,7 @@ instance Default XPColor where
instance Default XPConfig where
def =
- XPC { font = "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
+ XPC { font = "xft:Monospace:size=12"
, bgColor = bgNormal def
, fgColor = fgNormal def
, bgHLight = bgHighlight def