From afc7a9eff0c3b65b0df83e05dd90d2c2c8202a6c Mon Sep 17 00:00:00 2001 From: Unoqwy Date: Fri, 24 Jul 2020 10:22:49 +0200 Subject: Refactor ColorInfo to TextRenderInfo ColorInfo contains background offsets, it is no longer only about colors TextRenderInfo can hold information such as color, offsets, etc --- src/Xmobar/X11/Bitmap.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Xmobar/X11/Bitmap.hs') diff --git a/src/Xmobar/X11/Bitmap.hs b/src/Xmobar/X11/Bitmap.hs index e764384..c17f9d2 100644 --- a/src/Xmobar/X11/Bitmap.hs +++ b/src/Xmobar/X11/Bitmap.hs @@ -24,7 +24,7 @@ import System.Directory (doesFileExist) import System.FilePath (()) import System.Mem.Weak ( addFinalizer ) import Xmobar.X11.ColorCache -import Xmobar.X11.Parsers (ColorInfo(..), Widget(..)) +import Xmobar.X11.Parsers (TextRenderInfo(..), Widget(..)) import Xmobar.X11.Actions (Action) #ifdef XPM @@ -54,7 +54,7 @@ data Bitmap = Bitmap { width :: Dimension } updateCache :: Display -> Window -> Map FilePath Bitmap -> FilePath -> - [[(Widget, ColorInfo, Int, Maybe [Action])]] -> IO (Map FilePath Bitmap) + [[(Widget, TextRenderInfo, Int, Maybe [Action])]] -> IO (Map FilePath Bitmap) updateCache dpy win cache iconRoot ps = do let paths = map (\(Icon p, _, _, _) -> p) . concatMap (filter icons) $ ps icons (Icon _, _, _, _) = True -- cgit v1.2.3