From 62ae240e9e9405b04488ade5ef113b42a3d583fa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 19 Aug 2020 11:44:38 +0100 Subject: support the background color used by base's title windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id5e9b34f35bdcd38c7d22797573ce2549f842a66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100991 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/inc/salvtables.hxx | 2 ++ vcl/source/app/salvtables.cxx | 5 +++++ vcl/unx/gtk3/gtk3gtkinst.cxx | 6 ++++++ 3 files changed, 13 insertions(+) (limited to 'vcl') diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx index 0b5f52179bdc..f7addeea389e 100644 --- a/vcl/inc/salvtables.hxx +++ b/vcl/inc/salvtables.hxx @@ -379,6 +379,8 @@ public: virtual void set_stack_background() override; + virtual void set_title_background() override; + virtual void set_toolbar_background() override; virtual void set_highlight_background() override; diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index aa44a1ac0275..906cd00cffe3 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -519,6 +519,11 @@ void SalInstanceWidget::set_stack_background() set_background(m_xWidget->GetSettings().GetStyleSettings().GetWindowColor()); } +void SalInstanceWidget::set_title_background() +{ + set_background(m_xWidget->GetSettings().GetStyleSettings().GetShadowColor()); +} + void SalInstanceWidget::set_toolbar_background() { m_xWidget->SetBackground(); diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 3c2032970376..bfd3c32eca6c 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -2921,6 +2921,12 @@ public: set_background(&sColor); } + virtual void set_title_background() override + { + OUString sColor = Application::GetSettings().GetStyleSettings().GetShadowColor().AsRGBHexString(); + set_background(&sColor); + } + virtual void set_highlight_background() override { OUString sColor = Application::GetSettings().GetStyleSettings().GetHighlightColor().AsRGBHexString(); -- cgit