diff options
author | jao <jao@gnu.org> | 2022-12-23 23:20:55 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-12-23 23:20:55 +0000 |
commit | d896b1a80f3bc5dc487971b1230cd2b4185b9404 (patch) | |
tree | 59207cc6e85ecc674318b556b547c4e55dcfb4e3 /src/Xmobar/X11 | |
parent | 3f7a00defc69f9739c21390f6ba05990ff936b2b (diff) | |
download | xmobar-d896b1a80f3bc5dc487971b1230cd2b4185b9404.tar.gz xmobar-d896b1a80f3bc5dc487971b1230cd2b4185b9404.tar.bz2 |
Fix for #663: honour explicit bg/fg colors for icons
Diffstat (limited to 'src/Xmobar/X11')
-rw-r--r-- | src/Xmobar/X11/Draw.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Xmobar/X11/Draw.hs b/src/Xmobar/X11/Draw.hs index c0a8964..a1ec901 100644 --- a/src/Xmobar/X11/Draw.hs +++ b/src/Xmobar/X11/Draw.hs @@ -37,11 +37,8 @@ import qualified Xmobar.X11.XRender as XRender #endif drawXBitmap :: T.XConf -> X11.GC -> X11.Pixmap -> D.IconDrawer -drawXBitmap xconf gc p h v path = do +drawXBitmap xconf gc p h v path fc bc = do let disp = T.display xconf - conf = T.config xconf - fc = C.fgColor conf - bc = C.bgColor conf case M.lookup path (T.iconCache xconf) of Just bm -> liftIO $ B.drawBitmap disp p gc fc bc (round h) (round v) bm Nothing -> return () |