Commit Graph

7 Commits

Author SHA1 Message Date
Martin Fouilleul 794f47b141 abstracting logging for orca 2023-04-18 18:05:54 +02:00
Martin Fouilleul 03b5802529 [canvas] replace simple shape helpers with normal paths operations instead of having dedicated primitives for rounded rects/ellipses and so on 2023-04-11 11:16:23 +02:00
Martin Fouilleul 5455c2a52b [ui] Allow styling overlay boxes (e.g. menu and drop-down list panels) locally.
- Added an UI_FLAG_OVERLAY flag. When we make a box with that flag set, it is added the an overlayList in the ui context.
- After styling and static size pass, we reparent boxes in the overlayList to an overlay node just below the root node.
- Layout and drawing works uniformly on the whole tree. Overlay boxes get drawn last and steal mouse hover from boxes underneath them.
2023-03-13 10:26:39 +01:00
Martin Fouilleul 9e41d2b6fc [ui] first version of select popup menu 2023-03-12 19:06:09 +01:00
Martin Fouilleul 7b10a99a8c [ui, styling] First draft of rule-based styling to replace old stack-based system 2023-03-06 19:33:01 +01:00
Martin Fouilleul b52a35c753 [ui, textbox] Fixed selection background rectangle 2023-03-05 17:03:00 +01:00
Martin Fouilleul 4359bdaa3c [ui, textbox] position cursor at mouse position / extend selection on shift + mouse press or drag 2023-03-05 15:59:57 +01:00