fix(zephr/ui): color picker and small mouse event fixes

- reset pressed state at the end of the frame
- correctly place the color picker regardless of window size
- make color picker popup border radius consistent regardless of window
  size
- don't draw the color picker popup if it's parent is not visible
This commit is contained in:
2024-01-09 03:27:54 +02:00
parent 12626a513e
commit 1c9d084113
3 changed files with 19 additions and 9 deletions
+1
View File
@@ -43,6 +43,7 @@ typedef struct Rect {
typedef struct UI {
bool popup_open;
UiIdHash popup_parent_hash;
Rect popup_rect;
UIConstraints popup_parent_constraints;
Color *popup_revert_color;