summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-19 11:44:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-19 16:28:31 +0200
commit62ae240e9e9405b04488ade5ef113b42a3d583fa (patch)
tree5b5ba1edbdbd6ae368b224b5fd16bce805479976 /vcl
parentdb56c1ccdb03a8b22e6021e2bd394745a1f997cf (diff)
support the background color used by base's title windows
Change-Id: Id5e9b34f35bdcd38c7d22797573ce2549f842a66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100991 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/salvtables.hxx2
-rw-r--r--vcl/source/app/salvtables.cxx5
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx6
3 files changed, 13 insertions, 0 deletions
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();