diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-02-06 20:53:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-02-08 16:11:25 +0000 |
commit | f7c03364e24da285ea95cea0cc688a7a120fc163 (patch) | |
tree | b6dc20e02654f5144daea807303dbdd71a72bba0 /vcl/inc | |
parent | 68ab2e109edf8b81c48e953f7c8d43841e07365a (diff) |
tdf#153229 add a switch to override honoring system dark mode
Change-Id: Iafb6182e05dc65d20d0809476ee58908f7426d39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146597
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/osx/salframe.h | 1 | ||||
-rw-r--r-- | vcl/inc/salframe.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/gtk/gtkframe.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/win/salframe.h | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/osx/salframe.h b/vcl/inc/osx/salframe.h index 71b8eb45b772..af8783b96147 100644 --- a/vcl/inc/osx/salframe.h +++ b/vcl/inc/osx/salframe.h @@ -163,6 +163,7 @@ public: tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight ) override; // done setting up the clipregion virtual void EndSetClipRegion() override; + virtual void UpdateDarkMode() override; void UpdateFrameGeometry(); diff --git a/vcl/inc/salframe.hxx b/vcl/inc/salframe.hxx index 552d88eb2519..a78f9afe08c0 100644 --- a/vcl/inc/salframe.hxx +++ b/vcl/inc/salframe.hxx @@ -299,6 +299,8 @@ public: void SetModalHierarchyHdl(const Link<bool, void>& rLink) { m_aModalHierarchyHdl = rLink; } void NotifyModalHierarchy(bool bModal) { m_aModalHierarchyHdl.Call(bModal); } + virtual void UpdateDarkMode() {} + // Call the callback set; this sometimes necessary for implementation classes // that should not know more than necessary about the SalFrame implementation // (e.g. input methods, printer update handlers). diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx index be82779142b1..27bbf77ffd54 100644 --- a/vcl/inc/unx/gtk/gtkframe.hxx +++ b/vcl/inc/unx/gtk/gtkframe.hxx @@ -611,6 +611,7 @@ public: virtual bool UpdatePopover(void* nId, const OUString& rHelpText, vcl::Window* pParent, const tools::Rectangle& rHelpArea) override; virtual bool HidePopover(void* nId) override; virtual weld::Window* GetFrameWeld() const override; + virtual void UpdateDarkMode() override; static GtkSalFrame *getFromWindow( GtkWidget *pWindow ); diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h index dedac6906467..78f61945a311 100644 --- a/vcl/inc/win/salframe.h +++ b/vcl/inc/win/salframe.h @@ -139,6 +139,7 @@ public: virtual void BeginSetClipRegion( sal_uInt32 nRects ) override; virtual void UnionClipRegion( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight ) override; virtual void EndSetClipRegion() override; + virtual void UpdateDarkMode() override; constexpr vcl::WindowState state() const { return m_eState; } void UpdateFrameState(); |