From 7116de4152563a8637966f7a797f9e52035b87fc Mon Sep 17 00:00:00 2001 From: boreddevnl Date: Thu, 16 Apr 2026 22:11:44 +0200 Subject: [PATCH] TWEAK: rename TOPBAR --> MENUBAR --- src/wm/wm.c | 10 +++++----- src/wm/wm.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wm/wm.c b/src/wm/wm.c index 27c0727..5f16fb9 100644 --- a/src/wm/wm.c +++ b/src/wm/wm.c @@ -95,7 +95,7 @@ static lumos_state_t lumos_state = {0}; static bool lumos_index_built = false; static bool force_redraw = true; -static bool topbar_dirty_pending = false; +static bool menubar_dirty_pending = false; static void lumos_update_search(void) { @@ -1634,7 +1634,7 @@ static void wm_paint_region(int y_start, int y_end, DirtyRect dirty, int pass) { } } else if (pass == 2) { if (0 < cy + ch && 30 > cy) { - draw_rect(0, 0, sw, 30, COLOR_TOPBAR_BG); + draw_rect(0, 0, sw, 30, COLOR_MENUBAR_BG); draw_boredos_logo(8, 8, 1); draw_clock(sw - 80, 12); } @@ -1754,10 +1754,10 @@ void wm_paint(void) { wm_mark_dirty(mx, my, 12, 12); DirtyRect dirty = graphics_get_dirty_rect(); - if (topbar_dirty_pending) { + if (menubar_dirty_pending) { graphics_mark_dirty(0, 0, sw, 30); dirty = graphics_get_dirty_rect(); - topbar_dirty_pending = false; + menubar_dirty_pending = false; } if (dirty.active) { int d_h = 60, d_y = sh - d_h - 6, d_total_w = 11 * (48 + 10); @@ -1858,7 +1858,7 @@ void wm_add_window_locked(Window *win) { all_windows[window_count++] = win; wm_bring_to_front_locked(win); // Ensure newly added windows are on top wm_mark_dirty(0, 0, get_screen_width(), 30); - topbar_dirty_pending = true; + menubar_dirty_pending = true; } } diff --git a/src/wm/wm.h b/src/wm/wm.h index becdc1c..0105383 100644 --- a/src/wm/wm.h +++ b/src/wm/wm.h @@ -36,7 +36,7 @@ void wm_lock_release(uint64_t flags); #define COLOR_DARK_TEXT 0xFFF0F0F0 // Light gray text #define COLOR_DARK_BORDER 0xFF3A3A3A // Border color #define COLOR_DOCK_BG 0xFF3A3A3A // Dock background -#define COLOR_TOPBAR_BG 0xFF1A1A1A // Top bar background +#define COLOR_MENUBAR_BG 0xFF1A1A1A // Top bar background #define COLOR_TRAFFIC_RED 0xFFED6158 // Close button red #define COLOR_TRAFFIC_YELLOW 0xFFFCC02E // Minimize button (not used for now) #define COLOR_TRAFFIC_GREEN 0xFF5FC038 // Zoom button (not used for now)