fixed abacus drawing
This commit is contained in:
parent
ec905651ef
commit
052901ed27
|
@ -28,15 +28,12 @@ module Abacus.App.Widgets (abacusW) where
|
||||||
|
|
||||||
import Brick
|
import Brick
|
||||||
( Widget
|
( Widget
|
||||||
, freezeBorders
|
|
||||||
, hBox
|
, hBox
|
||||||
, hLimit
|
, hLimit
|
||||||
, str
|
, str
|
||||||
, vBox
|
, vBox
|
||||||
, withBorderStyle
|
|
||||||
)
|
)
|
||||||
import Brick.Widgets.Border (hBorder)
|
import Brick.Widgets.Border (border, hBorder)
|
||||||
import Brick.Widgets.Border.Style (unicode, unicodeBold)
|
|
||||||
import Lens.Micro.Platform ((^.))
|
import Lens.Micro.Platform ((^.))
|
||||||
|
|
||||||
import Abacus
|
import Abacus
|
||||||
|
@ -47,10 +44,7 @@ import Abacus.App.Widgets.Internal
|
||||||
abacusW :: AppState -> Widget ()
|
abacusW :: AppState -> Widget ()
|
||||||
abacusW s = hBox
|
abacusW s = hBox
|
||||||
[ abacusLeftW s
|
[ abacusLeftW s
|
||||||
, withBorderStyle unicodeBold $
|
, border $ beadsW $ s^.abacus
|
||||||
freezeBorders $
|
|
||||||
withBorderStyle unicode $
|
|
||||||
beadsW $ s^.abacus
|
|
||||||
, abacusRightW s
|
, abacusRightW s
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user