Use stack for page navigation, dont add spacing between list elements if the widget is empty or not visible

This commit is contained in:
dec05eba
2024-08-07 07:15:05 +02:00
parent 6e133a4bba
commit 8b98c612f7
4 changed files with 46 additions and 29 deletions

4
TODO
View File

@@ -8,7 +8,7 @@ Maybe change design to have black triangles appear and get larger until they fil
Have buttons appear slanted in 3D.
All of these things should be done with vertex buffer, for real 3D.
DISPLAY gamescope-0
WAYLAND_DISPLAY gamescope-0, DISPLAY=:1 (gamescope xwayland)
Optimize list/page when having a few items in it (dont use vector<unique_ptr<Widget>>).
@@ -16,4 +16,4 @@ Only redraw ui if changed (dirty state, propagate upward. Set dirty when adding
Use _NET_WM_ALLOWED_ACTIONS. Same for notifications.
Handle events in draw function because the render position of elements is available there so why duplicate it in event handler.
Handle events in draw function because the render position of elements is available there so why duplicate it in event handler.