summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-04-14 10:50:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-04-14 15:57:22 +0200
commitf76ec0b61e19267d9a01946dee2979f53f182a46 (patch)
tree48e52bd783790a74c5b818044fc1a0b0eea3c162 /include
parent4fffaa538e38d7e12553f204f61fdd45795efdcf (diff)
add a way to resolve if dark mode (explicit or auto) is active
Change-Id: Ie0d4e0c3cd5d19cf6337ec79d30ae7c877cffd82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150394 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/settings.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx
index 9292e10e45cf..05c7678869d0 100644
--- a/include/vcl/settings.hxx
+++ b/include/vcl/settings.hxx
@@ -648,6 +648,8 @@ public:
// 0 auto, 1 light, 2, dark
static void SetDarkMode(int nMode);
static int GetDarkMode();
+ // return if dark mode is active, resolving 'auto' to dark (true) or light (false)
+ static bool GetUseDarkMode();
static void SetAppColorMode(int nMode);
static int GetAppColorMode();
bool operator ==( const MiscSettings& rSet ) const;