From 15d42027e70e9d4aac880b3368a0ae3d6f9fc924 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 24 Jun 2024 15:39:12 -0700 Subject: [PATCH] adjust memory view for new ui palettes & themes --- src/df/gfx/df_views.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/df/gfx/df_views.c b/src/df/gfx/df_views.c index cf74a5a7..e0bbda90 100644 --- a/src/df/gfx/df_views.c +++ b/src/df/gfx/df_views.c @@ -8885,7 +8885,7 @@ DF_VIEW_UI_FUNCTION_DEF(Memory) if(global_byte_num == mouse_hover_byte_num) { cell_flags |= UI_BoxFlag_DrawBorder|UI_BoxFlag_DrawSideTop|UI_BoxFlag_DrawSideBottom|UI_BoxFlag_DrawSideLeft|UI_BoxFlag_DrawSideRight; - cell_border_rgba = df_rgba_from_theme_color(DF_ThemeColor_HighlightOverlay); + cell_border_rgba = df_rgba_from_theme_color(DF_ThemeColor_Hover); } if(annotation != 0) { @@ -8905,6 +8905,7 @@ DF_VIEW_UI_FUNCTION_DEF(Memory) cell_flags |= UI_BoxFlag_DrawBackground; cell_bg_rgba = df_rgba_from_theme_color(DF_ThemeColor_SelectionOverlay); } + ui_set_next_palette(ui_build_palette(ui_top_palette(), .background = cell_bg_rgba)); UI_Box *cell_box = ui_build_box_from_key(UI_BoxFlag_DrawText|cell_flags, ui_key_zero()); ui_box_equip_display_fancy_strings(cell_box, &byte_fancy_strings[byte_value]); {