summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-05 20:54:40 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-05 20:54:40 +0100
commit0064bb8b06ee74750ee21274b1e48ff1378d220e (patch)
treec76ec0a014826cdaf19f6aae8687d285897078dc /src/ui.h
parent6511e9516eb9e749dc7d2efe2f9f88103d837139 (diff)
image button with confirmation
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
index c172a8c..cbac631 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -51,9 +51,12 @@ typedef struct t_ui_style
color menu_foreground;
color widget_hover_background;
color widget_background;
+ color widget_confirm_background;
+ color widget_confirm_hover_background;
color hypertext_foreground;
color hypertext_hover_foreground;
color textbox_placeholder_foreground;
+ color widget_confirm_border;
} ui_style;
typedef enum t_layout_direction
@@ -141,6 +144,7 @@ typedef struct t_ui_context
u32 next_id;
s32 menu_item_count;
dropdown_state *active_dropdown;
+ u32 confirming_button_id;
textbox_state *current_active_textbox;
bool item_hovered;
} ui_context;