mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-10 08:51:54 -07:00
ShowWName.hs: switch color/bgcolor in call to paintAndWrite
This commit is contained in:
@@ -53,7 +53,7 @@ type ShowWNState = Maybe (TimerId, Window)
|
|||||||
data ShowWName a = SWN Bool SWNConfig ShowWNState deriving (Read, Show)
|
data ShowWName a = SWN Bool SWNConfig ShowWNState deriving (Read, Show)
|
||||||
|
|
||||||
data SWNConfig =
|
data SWNConfig =
|
||||||
SWNC { swn_font :: String -- ^ Font name
|
SWNC { swn_font :: String -- ^ Font name
|
||||||
, swn_bgcolor :: String -- ^ Backgorund color
|
, swn_bgcolor :: String -- ^ Backgorund color
|
||||||
, swn_color :: String -- ^ String color
|
, swn_color :: String -- ^ String color
|
||||||
, swn_fade :: Rational -- ^ Time in seconds of the name visibility
|
, swn_fade :: Rational -- ^ Time in seconds of the name visibility
|
||||||
@@ -93,7 +93,7 @@ flashName c (Rectangle _ _ wh ht) wrs = do
|
|||||||
x = (fi wh - width + 2) `div` 2
|
x = (fi wh - width + 2) `div` 2
|
||||||
w <- createNewWindow (Rectangle (fi x) (fi y) (fi width) (fi hight)) Nothing "" True
|
w <- createNewWindow (Rectangle (fi x) (fi y) (fi width) (fi hight)) Nothing "" True
|
||||||
showWindow w
|
showWindow w
|
||||||
paintAndWrite w f (fi width) (fi hight) 0 "" "" (swn_bgcolor c) (swn_color c) AlignCenter n
|
paintAndWrite w f (fi width) (fi hight) 0 "" "" (swn_color c) (swn_bgcolor c) AlignCenter n
|
||||||
releaseXMF f
|
releaseXMF f
|
||||||
io $ sync d False
|
io $ sync d False
|
||||||
i <- startTimer (swn_fade c)
|
i <- startTimer (swn_fade c)
|
||||||
|
Reference in New Issue
Block a user