diff options
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/accessiblefactory.hxx | 3 | ||||
-rw-r--r-- | include/vcl/settings.hxx | 11 | ||||
-rw-r--r-- | include/vcl/themecolors.hxx | 14 |
3 files changed, 20 insertions, 8 deletions
diff --git a/include/vcl/accessiblefactory.hxx b/include/vcl/accessiblefactory.hxx index 29cd8c3635c2..71fdc103197c 100644 --- a/include/vcl/accessiblefactory.hxx +++ b/include/vcl/accessiblefactory.hxx @@ -88,9 +88,6 @@ public: createAccessibleContext(FormattedField* pFormattedField); static css::uno::Reference<css::accessibility::XAccessibleContext> createAccessibleContext(vcl::Window* pWindow); - - static css::uno::Reference<css::accessibility::XAccessibleContext> - createAccessibleTextWindowContext(vcl::Window* pWindow, TextEngine& rEngine, TextView& rView); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 29c4744670d3..4d2b0d55cf17 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -23,6 +23,7 @@ #include <config_options.h> #include <vcl/dllapi.h> +#include <vcl/themecolors.hxx> #include <tools/color.hxx> #include <tools/gen.hxx> #include <o3tl/cow_wrapper.hxx> @@ -667,13 +668,13 @@ public: bool GetDisablePrinting() const; void SetEnableLocalizedDecimalSep( bool bEnable ); bool GetEnableLocalizedDecimalSep() const; - // 0 auto, 1 light, 2, dark - static void SetDarkMode(int nMode); - static int GetDarkMode(); + + static void SetDarkMode(AppearanceMode nMode); + static AppearanceMode 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(); + static void SetAppColorMode(AppearanceMode nMode); + static AppearanceMode GetAppColorMode(); // return true if system preferences are set to use reduced animation static bool GetUseReducedAnimation(); static bool IsAnimatedGraphicAllowed(); diff --git a/include/vcl/themecolors.hxx b/include/vcl/themecolors.hxx index 80bc1308565d..e00e228d9d69 100644 --- a/include/vcl/themecolors.hxx +++ b/include/vcl/themecolors.hxx @@ -21,6 +21,20 @@ enum class ThemeState RESET = 2, }; +/* + AUTO app colors follow os, light doc colors (default) + LIGHT app colors follow os, light doc colors + DARK app colors follow os, dark doc colors + COUNT app color modes count +*/ +enum class AppearanceMode +{ + AUTO = 0, + LIGHT = 1, + DARK = 2, + COUNT, +}; + class VCL_DLLPUBLIC ThemeColors { ThemeColors() {} |