From 8ab24f26626a65e1ce9e1ff8c4eb75a20e4b7629 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 12 Jan 2023 16:36:56 +0000 Subject: tdf#152994 only query dark mode in Windows >= 10.0.18362 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8d8bd368d9d1ee38dac96dd369484ec74ce4835a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145414 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/inc/win/salframe.h | 1 + vcl/inc/win/salinst.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/inc/win') diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h index bbf3506a723f..dedac6906467 100644 --- a/vcl/inc/win/salframe.h +++ b/vcl/inc/win/salframe.h @@ -148,6 +148,7 @@ public: void ImplSalGetWorkArea( HWND hWnd, RECT *pRect, const RECT *pParentRect ); bool UseDarkMode(); +bool OSSupportsDarkMode(); // get foreign key names namespace vcl_sal { diff --git a/vcl/inc/win/salinst.h b/vcl/inc/win/salinst.h index 35f2365fb166..7af6e007b562 100644 --- a/vcl/inc/win/salinst.h +++ b/vcl/inc/win/salinst.h @@ -85,7 +85,6 @@ public: SalFrame* ImplSalCreateFrame( WinSalInstance* pInst, HWND hWndParent, SalFrameStyleFlags nSalFrameStyle ); SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent ); HWND ImplSalReCreateHWND( HWND hWndParent, HWND oldhWnd, bool bAsChild ); -bool OSSupportsDarkMode(); #endif // INCLUDED_VCL_INC_WIN_SALINST_H -- cgit