mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
Implement ParamsViewCtrl
+ GUI_App : Fixed update of the dark mode, when DataViewCtrl doesn't have header -Orca: currently doesn't seem to display dataview labels properly. TBD if it continues to be an issue. Original Commit: prusa3d/PrusaSlicer@c577b7f Co-authored-by: YuSanka <yusanka@gmail.com>
This commit is contained in:
parent
dd802764b9
commit
bdac496130
5 changed files with 684 additions and 74 deletions
|
@ -3181,14 +3181,17 @@ 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);
|
||||
HWND hwnd;
|
||||
if (!dvc->HasFlag(wxDV_NO_HEADER)) {
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue