UI demo with styling #105

Merged
MartinFouilleul merged 2 commits from ilidemi/orca:ui-demo into main 2023-09-16 15:06:23 +00:00
Collaborator

This should be enough styling to demo, with all the properties and chained selectors.

Layout has fixed size at the top level. A basic adaptive layout could keep the contents of each column and introduce clipping (or scrolling) within a column.
I couldn't figure out how to make .relax work so the log panel has hardcoded height.
Background under the menu also has its height hardcoded to parent - 28.

This should be enough styling to demo, with all the properties and chained selectors. Layout has fixed size at the top level. A basic adaptive layout could keep the contents of each column and introduce clipping (or scrolling) within a column. I couldn't figure out how to make `.relax` work so the log panel has hardcoded height. Background under the menu also has its height hardcoded to `parent - 28`.
ilidemi added 1 commit 2023-09-15 07:41:11 +00:00
ilidemi added 1 commit 2023-09-15 07:41:29 +00:00
MartinFouilleul added 4 commits 2023-09-15 19:17:04 +00:00
fe69cedd45 Remove OC_UI_FLAG_OVERFLOW_FIT.
Now OC_UI_FLAG_OVERFLOW_ALLOW controls both shrinking children to the parent's size and fitting parent to shrunk children size.
We can still emulate all combination of shrink * fit with this single flag (and sometimes a parent box).
This also makes fitting the default, which is more practical since fitting a box contents often requires fitting on all children.
Author
Collaborator

Just FYI, the vertical slider broke after fe69cedd45

Just FYI, the vertical slider broke after https://git.handmade.network/hmn/orca/commit/fe69cedd45c8ff3a06e4fe4b9481155547806fb8
Collaborator

Just FYI, the vertical slider broke after fe69cedd45

Thanks for the catch! I somehow missed it while concentrating on columns layout. Should be fixed now.

> Just FYI, the vertical slider broke after https://git.handmade.network/hmn/orca/commit/fe69cedd45c8ff3a06e4fe4b9481155547806fb8 Thanks for the catch! I somehow missed it while concentrating on columns layout. Should be fixed now.
MartinFouilleul force-pushed ui-demo from bd66711795 to 7d3f29e43b 2023-09-16 15:06:07 +00:00 Compare
MartinFouilleul merged commit 7d3f29e43b into main 2023-09-16 15:06:23 +00:00
Sign in to join this conversation.
No reviewers
No Label
macOS
windows
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/orca#105
No description provided.