diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-09-20 00:06:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-11-09 18:42:31 +0100 |
commit | b838e7e800d7c05bbe168a0eb8efa625d8b539cf (patch) | |
tree | f8fbce402bf47023abf95af43e1da367260a01d4 /vcl/inc/unx | |
parent | 7d879658886cd73b38b12e5e6081bac7eda145d1 (diff) |
custom widgets: setup style setting in the widget library
Some theme colors are set using the style settings, which are
implemented by each backend to correspond to the system theme.
For custom widgets these need to also be set by the library
itself. This commit adds the ground work and sets some of the
colors for windows backgrounds.
Change-Id: Ia65b1605b2b7bef7f01ff1feff2e7470479e626a
Diffstat (limited to 'vcl/inc/unx')
-rw-r--r-- | vcl/inc/unx/gtk/gtkgdi.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/inc/unx/gtk/gtkgdi.hxx b/vcl/inc/unx/gtk/gtkgdi.hxx index e5eaef3747c1..839ee9eaac45 100644 --- a/vcl/inc/unx/gtk/gtkgdi.hxx +++ b/vcl/inc/unx/gtk/gtkgdi.hxx @@ -120,6 +120,9 @@ public: const OUString& rCaption, tools::Rectangle &rNativeBoundingRegion, tools::Rectangle &rNativeContentRegion ) override; + + virtual void updateSettings(AllSettings& rSettings) override; + #if ENABLE_CAIRO_CANVAS virtual bool SupportsCairo() const override; @@ -130,7 +133,6 @@ public: void WidgetQueueDraw() const; - void updateSettings( AllSettings& rSettings ); static void refreshFontconfig( GtkSettings *pSettings ); static void signalSettingsNotify( GObject*, GParamSpec *pSpec, gpointer ); |