diff --git a/foo_ui_columns/playlist_tabs_wndproc.cpp b/foo_ui_columns/playlist_tabs_wndproc.cpp index 1d385322c..7b21bf46b 100644 --- a/foo_ui_columns/playlist_tabs_wndproc.cpp +++ b/foo_ui_columns/playlist_tabs_wndproc.cpp @@ -1,6 +1,7 @@ #include "stdafx.h" #include "common.h" +#include "dark_mode.h" #include "playlist_tabs.h" #include "playlist_manager_utils.h" @@ -52,7 +53,9 @@ LRESULT PlaylistTabs::on_message(HWND wnd, UINT msg, WPARAM wp, LPARAM lp) static_api_ptr_t()->register_callback(this, flag_all); break; } - + case WM_ERASEBKGND: + dark::draw_layout_background(wnd, reinterpret_cast(wp)); + return TRUE; case WM_SHOWWINDOW: { if (wp == TRUE && lp == NULL && !IsWindowVisible(m_child_wnd)) { ShowWindow(m_child_wnd, SW_SHOWNORMAL); diff --git a/foo_ui_columns/splitter_tabs.cpp b/foo_ui_columns/splitter_tabs.cpp index 2f8049d79..07a4fc544 100644 --- a/foo_ui_columns/splitter_tabs.cpp +++ b/foo_ui_columns/splitter_tabs.cpp @@ -1,6 +1,7 @@ #include "stdafx.h" #include "splitter_tabs.h" +#include "dark_mode.h" #include "dark_mode_tabs.h" namespace cui::panels::tab_stack { @@ -511,6 +512,9 @@ LRESULT TabStackPanel::on_message(HWND wnd, UINT msg, WPARAM wp, LPARAM lp) m_dark_mode_notifier = std::make_unique( [wnd_tabs = m_wnd_tabs] { RedrawWindow(wnd_tabs, nullptr, nullptr, RDW_ERASE | RDW_INVALIDATE); }); } break; + case WM_ERASEBKGND: + dark::draw_layout_background(wnd, reinterpret_cast(wp)); + return TRUE; case WM_KEYDOWN: { if (wp != VK_LEFT && wp != VK_RIGHT && get_host()->get_keyboard_shortcuts_enabled() && g_process_keydown_keyboard_shortcuts(wp))