Merge remote-tracking branch 'PRIVATE/master' into ys_cut
This commit is contained in:
commit
a1b324d1ee
BIN
resources/profiles/Creality/CR10SMARTPRO_thumbnail.png
Normal file
BIN
resources/profiles/Creality/CR10SMARTPRO_thumbnail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
BIN
resources/profiles/Creality/ENDER3MAXNEO_thumbnail.png
Normal file
BIN
resources/profiles/Creality/ENDER3MAXNEO_thumbnail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
BIN
resources/profiles/Creality/ENDER3V2NEO_thumbnail.png
Normal file
BIN
resources/profiles/Creality/ENDER3V2NEO_thumbnail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
@ -1410,9 +1410,9 @@ bool GUI_App::dark_mode()
|
|||||||
// proper dark mode was first introduced.
|
// proper dark mode was first introduced.
|
||||||
return wxPlatformInfo::Get().CheckOSVersion(10, 14) && mac_dark_mode();
|
return wxPlatformInfo::Get().CheckOSVersion(10, 14) && mac_dark_mode();
|
||||||
#else
|
#else
|
||||||
return wxGetApp().app_config->get("dark_color_mode") == "1" ? true : check_dark_mode();
|
if (wxGetApp().app_config->has("dark_color_mode"))
|
||||||
//const unsigned luma = get_colour_approx_luma(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
return wxGetApp().app_config->get("dark_color_mode") == "1";
|
||||||
//return luma < 128;
|
return check_dark_mode();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,15 +153,6 @@ wxFont get_default_font_for_dpi(const wxWindow *window, int dpi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool check_dark_mode() {
|
bool check_dark_mode() {
|
||||||
#if 0 //#ifdef _WIN32 // #ysDarkMSW - Allow it when we deside to support the sustem colors for application
|
|
||||||
wxRegKey rk(wxRegKey::HKCU,
|
|
||||||
"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize");
|
|
||||||
if (rk.Exists() && rk.HasValue("AppsUseLightTheme")) {
|
|
||||||
long value = -1;
|
|
||||||
rk.QueryValue("AppsUseLightTheme", &value);
|
|
||||||
return value <= 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if wxCHECK_VERSION(3,1,3)
|
#if wxCHECK_VERSION(3,1,3)
|
||||||
return wxSystemSettings::GetAppearance().IsDark();
|
return wxSystemSettings::GetAppearance().IsDark();
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user