summaryrefslogtreecommitdiff
path: root/src/gui/button.cpp
diff options
context:
space:
mode:
authorkasull <qsullian@gmail.com>2026-03-03 12:22:40 -0500
committerkasull <qsullian@gmail.com>2026-03-03 12:22:40 -0500
commit5c4e9c8b140b14ba9671b8efcc47d71c6c4f2217 (patch)
treec011086a55a9fff0130a71a66f1c06029410b135 /src/gui/button.cpp
parent413ef78504278d37080b9b59a652e4bbd5e2a0fc (diff)
ui header/menu and add undo/redo for creation actions
full-width toolbar/menubar layer move save into file menu and add edit menu actions for undo/redo menubar dropdown interaction modal update header/view-type labels and menu layout behavior creation-history tracking for walls and polygons undo (ctrl+z) and redo (ctrl+r) in 2d editor improve list/button visual states
Diffstat (limited to 'src/gui/button.cpp')
-rw-r--r--src/gui/button.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index 1548e0e..e66130b 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -12,11 +12,12 @@ void gui_button_draw_fn( void* ptr ) {
U8 hover = inbounds && !active;
CLR border = gui_is_fg_window( btn )? ui_clr.border : ui_clr.border_inactive;
- if( active )
- border = { 0.f, 1.f, 0.f, 1.f };
CLR fill = ui_clr.bg_sec;
CLR txt = ui_clr.txt;
+ if( active ) {
+ fill = CLR::blend( ui_clr.bg_sec, ui_clr.border, 0.22f );
+ }
if( hover ) {
fill = ui_clr.border;
txt = CLR::BLACK();