diff options
Diffstat (limited to 'XMonad/Util')
-rw-r--r-- | XMonad/Util/XUtils.hs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/XMonad/Util/XUtils.hs b/XMonad/Util/XUtils.hs index 98db6d5..af7aea4 100644 --- a/XMonad/Util/XUtils.hs +++ b/XMonad/Util/XUtils.hs @@ -37,15 +37,6 @@ import XMonad.Util.Font -- $usage -- See Tabbed or DragPane for usage examples --- | Get the Pixel value for a named color: if an invalid name is --- given the black pixel will be returned. -stringToPixel :: String -> X Pixel -stringToPixel s = do - d <- asks display - io $ catch (getIt d) (fallBack d) - where getIt d = initColor d s - fallBack d = const $ return $ blackPixel d (defaultScreen d) - -- | Compute the weighted average the colors of two given Pixel values. averagePixels :: Pixel -> Pixel -> Double -> X Pixel averagePixels p1 p2 f = |