FIX: [STUDIO-1563] dark mode of dataview's header
Change-Id: Ied9358df9d2edd9f0d40a81694655b8f2fdefdb8
This commit is contained in:
parent
0db1b52b23
commit
e54f3a75d4
3 changed files with 13 additions and 1 deletions
|
@ -102,6 +102,8 @@
|
|||
#ifdef __WINDOWS__
|
||||
#ifdef _MSW_DARK_MODE
|
||||
#include "dark_mode.hpp"
|
||||
#include "wx/headerctrl.h"
|
||||
#include "wx/msw/headerctrl.h"
|
||||
#endif // _MSW_DARK_MODE
|
||||
#endif // __WINDOWS__
|
||||
|
||||
|
@ -2801,6 +2803,14 @@ void GUI_App::UpdateDVCDarkUI(wxDataViewCtrl* dvc, bool highlited/* = false*/)
|
|||
UpdateDarkUI(dvc, highlited ? dark_mode() : false);
|
||||
#ifdef _MSW_DARK_MODE
|
||||
//dvc->RefreshHeaderDarkMode(&m_normal_font);
|
||||
HWND hwnd = (HWND)dvc->GenericGetHeader()->GetHandle();
|
||||
hwnd = GetWindow(hwnd, GW_CHILD);
|
||||
if (hwnd != NULL)
|
||||
NppDarkMode::SetDarkListViewHeader(hwnd);
|
||||
wxItemAttr attr;
|
||||
attr.SetTextColour(NppDarkMode::GetTextColor());
|
||||
attr.SetFont(m_normal_font);
|
||||
dvc->SetHeaderAttr(attr);
|
||||
#endif //_MSW_DARK_MODE
|
||||
if (dvc->HasFlag(wxDV_ROW_LINES))
|
||||
dvc->SetAlternateRowColour(m_color_highlight_default);
|
||||
|
|
|
@ -1208,7 +1208,7 @@ void Sidebar::sys_color_changed()
|
|||
combo->sys_color_changed();
|
||||
|
||||
// BBS
|
||||
//obj_list()->sys_color_changed();
|
||||
obj_list()->sys_color_changed();
|
||||
// BBS
|
||||
//p->object_manipulation->sys_color_changed();
|
||||
|
||||
|
|
|
@ -513,6 +513,8 @@ void PreferencesDialog::set_dark_mode()
|
|||
NppDarkMode::SetDarkExplorerTheme(this->GetHWND());
|
||||
NppDarkMode::SetDarkTitleBar(this->GetHWND());
|
||||
wxGetApp().UpdateDlgDarkUI(this);
|
||||
SetActiveWindow(wxGetApp().mainframe->GetHWND());
|
||||
SetActiveWindow(GetHWND());
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue