mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-02 01:45:50 +03:00
Rename draw function
This commit is contained in:
parent
dd5148200b
commit
3445daade9
@ -44,11 +44,11 @@ appEvent e st =
|
||||
initialState :: St
|
||||
initialState =
|
||||
St { _stEditor = editor (Name "edit") ""
|
||||
, _stList = newList (Name "list") listDraw [0..6]
|
||||
, _stList = newList (Name "list") listDrawElem [0..6]
|
||||
}
|
||||
|
||||
listDraw :: Bool -> Int -> Prim
|
||||
listDraw sel i =
|
||||
listDrawElem :: Bool -> Int -> Prim
|
||||
listDrawElem sel i =
|
||||
let selAttr = white `on` blue
|
||||
p = hCentered (Txt $ "Number " <> show i)
|
||||
in if sel
|
||||
|
Loading…
Reference in New Issue
Block a user