summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-08-21 08:40:08 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-08-21 08:40:08 +0200
commit022783f4a7fd5b85afa5eedffd8a2e6a07432e1d (patch)
tree6c42cfcc9747a4e748d4456bf8bd704f0e42d9d5 /src
parent028c4243a87e41e3b7e2c51eb752d4b089b30680 (diff)
downloadphi-022783f4a7fd5b85afa5eedffd8a2e6a07432e1d.tar
phi-022783f4a7fd5b85afa5eedffd8a2e6a07432e1d.zip
Get rid of existential Widget type and Widget lists
Diffstat (limited to 'src')
-rw-r--r--src/Phi.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Phi.hs b/src/Phi.hs
index 9597955..6dc18fb 100644
--- a/src/Phi.hs
+++ b/src/Phi.hs
@@ -12,8 +12,7 @@ import Phi.Widgets.Systray
main :: IO ()
main = do
- runPhi defaultXConfig defaultPanelConfig { panelPosition = Top }
- [alphaBox 0.9 [theTaskbar, brightBorder [theSystray], brightBorder [theClock]]]
+ runPhi defaultXConfig defaultPanelConfig { panelPosition = Top } $ alphaBox 0.9 $ theTaskbar <~> brightBorder theSystray <~> brightBorder theClock
where
normalTaskBorder = BorderConfig (BorderWidth (-1) (-3) (-1) 7) 1 (BorderWidth 0 5 0 5) (0.9, 0.9, 0.9, 0.8) (0.45, 0.45, 0.45, 0.8) 5 0
activeTaskBorder = normalTaskBorder { borderColor = (1, 1, 1, 0.8)
@@ -53,4 +52,5 @@ main = do
, lineSpacing = (-3)
, clockSize = 75
}
+ brightBorder :: (Widget w d) => w -> Border w d
brightBorder = border normalDesktopBorder