mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-14 19:55:55 -07:00
Spiral.hs: add 'description' function to LayoutClass instance for SpiralWithDir.
This commit is contained in:
@@ -76,6 +76,7 @@ instance LayoutClass SpiralWithDir a where
|
|||||||
handleMessage (SpiralWithDir dir rot scale) = return . fmap resize . fromMessage
|
handleMessage (SpiralWithDir dir rot scale) = return . fmap resize . fromMessage
|
||||||
where resize Expand = spiralWithDir dir rot $ (21 % 20) * scale
|
where resize Expand = spiralWithDir dir rot $ (21 % 20) * scale
|
||||||
resize Shrink = spiralWithDir dir rot $ (20 % 21) * scale
|
resize Shrink = spiralWithDir dir rot $ (20 % 21) * scale
|
||||||
|
description _ = "Spiral"
|
||||||
|
|
||||||
-- This will produce one more rectangle than there are splits details
|
-- This will produce one more rectangle than there are splits details
|
||||||
divideRects :: [(Rational, Direction)] -> Rectangle -> [Rectangle]
|
divideRects :: [(Rational, Direction)] -> Rectangle -> [Rectangle]
|
||||||
|
Reference in New Issue
Block a user