Fixed indentation
This commit is contained in:
parent
9d1415a2d3
commit
4cc0f0f2ee
2 changed files with 18 additions and 16 deletions
|
@ -54,6 +54,7 @@ instance Show IconStyle where
|
||||||
idIconStyle :: IconStyle
|
idIconStyle :: IconStyle
|
||||||
idIconStyle = flip withPatternForSurface setSource
|
idIconStyle = flip withPatternForSurface setSource
|
||||||
|
|
||||||
|
|
||||||
desaturateIconStyle :: Double -> IconStyle
|
desaturateIconStyle :: Double -> IconStyle
|
||||||
desaturateIconStyle v icon = do
|
desaturateIconStyle v icon = do
|
||||||
w <- imageSurfaceGetWidth icon
|
w <- imageSurfaceGetWidth icon
|
||||||
|
@ -78,23 +79,24 @@ desaturateIconStyle v icon = do
|
||||||
|
|
||||||
withPatternForSurface surface setSource
|
withPatternForSurface surface setSource
|
||||||
|
|
||||||
|
|
||||||
downscaled :: Double -> Surface -> Render ()
|
downscaled :: Double -> Surface -> Render ()
|
||||||
downscaled s surface = do
|
downscaled s surface = do
|
||||||
case True of
|
case True of
|
||||||
_ | s < 0.5 -> do
|
_ | s < 0.5 -> do
|
||||||
w <- imageSurfaceGetWidth surface
|
w <- imageSurfaceGetWidth surface
|
||||||
h <- imageSurfaceGetHeight surface
|
h <- imageSurfaceGetHeight surface
|
||||||
|
|
||||||
renderWithSimilarSurface ContentColorAlpha (ceiling (fromIntegral w*s)) (ceiling (fromIntegral h*s)) $ \surface' -> do
|
renderWithSimilarSurface ContentColorAlpha (ceiling (fromIntegral w*s)) (ceiling (fromIntegral h*s)) $ \surface' -> do
|
||||||
renderWith surface' $ do
|
renderWith surface' $ do
|
||||||
scale 0.5 0.5
|
scale 0.5 0.5
|
||||||
downscaled (2*s) surface
|
downscaled (2*s) surface
|
||||||
paint
|
paint
|
||||||
withPatternForSurface surface' setSource
|
withPatternForSurface surface' setSource
|
||||||
|
|
||||||
| otherwise -> do
|
| otherwise -> do
|
||||||
scale s s
|
scale s s
|
||||||
withPatternForSurface surface setSource
|
withPatternForSurface surface setSource
|
||||||
|
|
||||||
|
|
||||||
data TaskStyle = TaskStyle { taskFont :: !String
|
data TaskStyle = TaskStyle { taskFont :: !String
|
||||||
|
|
|
@ -21,7 +21,7 @@ main = do
|
||||||
}
|
}
|
||||||
normalDesktopBorder = normalTaskBorder { margin = BorderWidth 2 3 2 3
|
normalDesktopBorder = normalTaskBorder { margin = BorderWidth 2 3 2 3
|
||||||
, padding = BorderWidth 0 2 0 2
|
, padding = BorderWidth 0 2 0 2
|
||||||
, borderColor = (0.7, 0.7, 0.7, 0.8)
|
, borderColor = (0.7, 0.7, 0.7, 0.9)
|
||||||
, backgroundColor = (1, 1, 1, 0.9)
|
, backgroundColor = (1, 1, 1, 0.9)
|
||||||
}
|
}
|
||||||
currentDesktopBorder = normalDesktopBorder { backgroundColor = (0.2, 0.2, 0.2, 0.9)
|
currentDesktopBorder = normalDesktopBorder { backgroundColor = (0.2, 0.2, 0.2, 0.9)
|
||||||
|
|
Reference in a new issue