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 = flip withPatternForSurface setSource
|
||||
|
||||
|
||||
desaturateIconStyle :: Double -> IconStyle
|
||||
desaturateIconStyle v icon = do
|
||||
w <- imageSurfaceGetWidth icon
|
||||
|
@ -78,24 +79,25 @@ desaturateIconStyle v icon = do
|
|||
|
||||
withPatternForSurface surface setSource
|
||||
|
||||
|
||||
downscaled :: Double -> Surface -> Render ()
|
||||
downscaled s surface = do
|
||||
case True of
|
||||
_ | s < 0.5 -> do
|
||||
w <- imageSurfaceGetWidth surface
|
||||
h <- imageSurfaceGetHeight surface
|
||||
|
||||
renderWithSimilarSurface ContentColorAlpha (ceiling (fromIntegral w*s)) (ceiling (fromIntegral h*s)) $ \surface' -> do
|
||||
renderWith surface' $ do
|
||||
scale 0.5 0.5
|
||||
downscaled (2*s) surface
|
||||
paint
|
||||
withPatternForSurface surface' setSource
|
||||
|
||||
| otherwise -> do
|
||||
scale s s
|
||||
withPatternForSurface surface setSource
|
||||
case True of
|
||||
_ | s < 0.5 -> do
|
||||
w <- imageSurfaceGetWidth surface
|
||||
h <- imageSurfaceGetHeight surface
|
||||
|
||||
renderWithSimilarSurface ContentColorAlpha (ceiling (fromIntegral w*s)) (ceiling (fromIntegral h*s)) $ \surface' -> do
|
||||
renderWith surface' $ do
|
||||
scale 0.5 0.5
|
||||
downscaled (2*s) surface
|
||||
paint
|
||||
withPatternForSurface surface' setSource
|
||||
|
||||
| otherwise -> do
|
||||
scale s s
|
||||
withPatternForSurface surface setSource
|
||||
|
||||
|
||||
data TaskStyle = TaskStyle { taskFont :: !String
|
||||
, taskColor :: !Color
|
||||
|
|
Reference in a new issue