From 0064bb8b06ee74750ee21274b1e48ff1378d220e Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Wed, 5 Feb 2020 20:54:40 +0100 Subject: image button with confirmation --- src/ui.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui.h') 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; -- cgit v1.2.3-70-g09d2