diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-13 21:57:15 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-15 19:37:18 +0200 |
commit | 78523a2d03c95843c417c869bc90e14cfd267bcb (patch) | |
tree | 02b6b20b90d4d2b7c2b2be30ad2a23f5c4cbd9c5 /starmath/inc | |
parent | 48e44b367a6fde947963de0d896e5d276a7f231e (diff) |
SM handle background theme changes
Replaces ApplyColorConfigValues with standard ApplySettings.
I also opted to use COL_WHITE for the elements list, as the
highlight color is also hard-coded to some light gray.
Change-Id: I8be9d5897bf1dda4078b91d4df34a3339ac6cf31
Reviewed-on: https://gerrit.libreoffice.org/72314
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/smmod.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/view.hxx | 3 |
3 files changed, 2 insertions, 4 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index 133c480d7100..fe712401f773 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -72,6 +72,7 @@ class SmElementsControl : public Control static const std::pair<const char*, const char*> aFormats[]; static const std::pair<const char*, const char*> aOthers[]; + virtual void ApplySettings(vcl::RenderContext&) override; virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; virtual void MouseButtonDown(const MouseEvent& rMEvt) override; virtual void MouseMove(const MouseEvent& rMEvt) override; diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx index fc97d5392912..297f8a972e50 100644 --- a/starmath/inc/smmod.hxx +++ b/starmath/inc/smmod.hxx @@ -70,8 +70,6 @@ class SmModule : public SfxModule, public utl::ConfigurationListener std::unique_ptr<SvtSysLocale> mpSysLocale; VclPtr<VirtualDevice> mpVirtualDev; - static void ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg ); - public: SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START + SfxInterfaceId(0)) diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 2b1692e8d9df..fb27546c456f 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -61,6 +61,7 @@ public: virtual void dispose() override; // Window + virtual void ApplySettings(vcl::RenderContext&) override; virtual void MouseButtonDown(const MouseEvent &rMEvt) override; virtual void MouseMove(const MouseEvent &rMEvt) override; virtual void GetFocus() override; @@ -88,8 +89,6 @@ public: using ScrollableWindow::SetTotalSize; void SetTotalSize(); - void ApplyColorConfigValues(const svtools::ColorConfig &rColorCfg); - // for Accessibility virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override; |