Update tasks

This commit is contained in:
Francisco Vallarino 2021-01-04 12:55:08 -03:00
parent 08a0810cf6
commit d0ea69efd4
2 changed files with 8 additions and 4 deletions

View File

@ -116,13 +116,14 @@ handleAppEvent wenv model evt = case evt of
_ -> []
buildUI :: WidgetEnv App AppEvent -> App -> WidgetNode App AppEvent
buildUI wenv model = trace "Creating UI" widgetTree where
buildUI wenv model = trace "Creating UI" widgetHover where
widgetHover = vstack [
hstack [
label "Test" `hover` [bgColor red, textSize 32],
label "Test" `hover` [bgColor green],
textField textField1 `hover` [bgColor orange, textSize 32]
]
],
listView dropdown1 items label
]
widgetIdChanged = vstack [
button "Show label" IncButton,
@ -326,4 +327,4 @@ buildUI wenv model = trace "Creating UI" widgetTree where
textDropdown_ dropdown1 items id [onChange DropdownVal, onChangeIdx DropdownIdx],
button_ "Click\nme!" (PrintMessage "Button clicked") [textMultiLine]
] `key` "main vstack" `style` [borderT 20 red, borderL 10 blue, borderR 10 green, borderB 10 gray, iradius 50] --, padding 20
items = fmap (\i -> "This is a long label: " <> showt i) [1..30::Int]
items = fmap (\i -> "This is a long label: " <> showt i) [1..100::Int]

View File

@ -378,6 +378,9 @@
- Add containerGetActiveStyle
- Review handleSizeReqChange
- Rethink containerStyleOnMerge (it should really be containerStyleOnEvent and yes we need it)
- Removed, no longer needed (performance issue gone with removal of getSizeReq)
- Listview is not properly changing styles
- Label needs to rebuild its glyphs if style/renderArea changes
- Pending
- Add header in all files, indicating license and documenting what the module does
@ -391,7 +394,6 @@
Maybe postponed after release?
- Listview is not properly changing styles
- Label needs to rebuild its glyphs if style/renderArea changes
- Listview needs to update sizeReq of modified items
- If sizeReq changes, it should request ResizeWidgets
- Further improvements
@ -403,6 +405,7 @@ Maybe postponed after release?
- Add setState method
- Create DevelMain, take care of saving/loading state. Also provide a way of ignoring it.
- Test disabled state on widgets
- Check Single/Container flags (can some be removed?)
- Create Keystroke component (shortcuts and general key handling like Esc for dialog)
- Create Tooltip component. It just wraps a given component and draws the tooltip with renderOverlay
- Create Theme widget to override global theme