[taffybar] Better padding styling

This commit is contained in:
2018-05-17 15:06:58 -07:00
parent 3f8afe40d9
commit 4d9ea9acbe
3 changed files with 10 additions and 4 deletions

View File

@@ -25,6 +25,13 @@
}
.InnerPad {
padding-bottom: 12px;
padding-top: 12px;
padding-left: 4px;
padding-right: 4px;
}
.Workspaces .InnerPad {
padding-bottom: 5px;
padding-top: 5px;
padding-left: 2px;

View File

@@ -137,7 +137,6 @@ main = do
case res of
IINone -> IIFilePath $ inResourcesDirectory "exe-icon.png"
_ -> res
clock = textClockNew Nothing "%a %b %_d %r" 1
cpu = pollingGraphNew cpuCfg 0.5 cpuCallback
mem = pollingGraphNew memCfg 1 memCallback
layout = layoutNew defaultLayoutConfig
@@ -158,12 +157,12 @@ main = do
workspaces = workspacesNew myWorkspacesConfig
baseConfig = defaultSimpleTaffyConfig
{ startWidgets =
[ workspaces
[ flip widgetSetClass "Workspaces" =<< workspaces
, layout >>= buildPadBox
, windows >>= buildPadBox
]
, endWidgets = map (>>= buildPadBox)
[ clock >>= setMinWidth 200
[ textClockNew Nothing "%a %b %_d %r" 1
, textBatteryNew "$percentage$% ($time$)"
, batteryIconNew
, sniTrayNew