diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index 0c51c3de6ab..3763ab01af1 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -741,7 +741,6 @@ typedef struct { typedef struct { float colored_titlebar_bg_color[3]; - float colored_titlebar_fg_color[3]; } GHOST_WindowDecorationStyleSettings; #ifdef WITH_VULKAN_BACKEND diff --git a/source/blender/windowmanager/intern/wm_window.cc b/source/blender/windowmanager/intern/wm_window.cc index 6d9a9d18d05..cd3f0e77c78 100644 --- a/source/blender/windowmanager/intern/wm_window.cc +++ b/source/blender/windowmanager/intern/wm_window.cc @@ -660,11 +660,9 @@ static void wm_window_decoration_style_set_from_theme(const wmWindow *win, const UI_SetTheme(0, RGN_TYPE_WINDOW); } - float titlebar_bg_color[3], titlebar_fg_color[3]; + float titlebar_bg_color[3]; UI_GetThemeColor3fv(TH_BACK, titlebar_bg_color); - UI_GetThemeColor3fv(TH_TEXT, titlebar_fg_color); copy_v3_v3(decoration_settings.colored_titlebar_bg_color, titlebar_bg_color); - copy_v3_v3(decoration_settings.colored_titlebar_fg_color, titlebar_fg_color); GHOST_SetWindowDecorationStyleSettings(static_cast(win->ghostwin), decoration_settings);