BorderDemo: nit

This commit is contained in:
Jonathan Daugherty 2023-08-15 14:43:36 -07:00
parent 339ce5243c
commit 417571b9a1

View File

@ -16,12 +16,12 @@ import Brick.Types
( Widget ( Widget
) )
import Brick.Widgets.Core import Brick.Widgets.Core
( (<=>) ( (<+>)
, (<+>)
, withAttr , withAttr
, vLimit , vLimit
, hLimit , hLimit
, hBox , hBox
, vBox
, updateAttrMap , updateAttrMap
, withBorderStyle , withBorderStyle
, txt , txt
@ -91,13 +91,14 @@ colorDemo =
ui :: Widget () ui :: Widget ()
ui = ui =
hBox borderDemos vBox [ hBox borderDemos
<=> B.hBorder , B.hBorder
<=> colorDemo , colorDemo
<=> B.hBorderWithLabel (str "horizontal border label") , B.hBorderWithLabel (str "horizontal border label")
<=> (C.center (str "Left of vertical border") , (C.center (str "Left of vertical border")
<+> B.vBorder <+> B.vBorder
<+> C.center (str "Right of vertical border")) <+> C.center (str "Right of vertical border"))
]
main :: IO () main :: IO ()
main = M.simpleMain ui main = M.simpleMain ui