summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-02-10 08:18:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-02-10 08:59:38 +0000
commit86cfb4da4fdca63d92060bcfa65e808f579260f4 (patch)
tree186c1aa965297e8f9385c6af9d7e4d4135e410fd /vcl/win
parent5025a56db91bb3cf337659c0f8a77d36f49974ad (diff)
loplugin:staticaccess
Change-Id: If0a2032bede27af3176951dabaab4a165efb144d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146738 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/salnativewidgets-luna.cxx2
-rw-r--r--vcl/win/window/salframe.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx b/vcl/win/gdi/salnativewidgets-luna.cxx
index a0379baa7c6c..c837cb7a1c82 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -403,7 +403,7 @@ bool UseDarkMode()
return false;
bool bRet(false);
- switch (Application::GetSettings().GetMiscSettings().GetDarkMode())
+ switch (MiscSettings::GetDarkMode())
{
case 0: // auto
default:
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index b12fdfffbabe..5bccf6707700 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -286,7 +286,7 @@ static void UpdateDarkMode(HWND hWnd)
auto SetPreferredAppMode = reinterpret_cast<SetPreferredAppMode_t>(GetProcAddress(hUxthemeLib, MAKEINTRESOURCEA(135)));
if (SetPreferredAppMode)
{
- switch (Application::GetSettings().GetMiscSettings().GetDarkMode())
+ switch (MiscSettings::GetDarkMode())
{
case 0:
SetPreferredAppMode(AllowDark);