summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3/gtkinst.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-07 17:05:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-07 23:59:26 +0200
commit39076309c6583e62f6ee8e1558074a54b797637a (patch)
tree7781e2205be52398657f1386c6962b5bf613c837 /vcl/unx/gtk3/gtkinst.cxx
parentc44a9e6efe99d4dd8d553be5de96e970c6c3c9e4 (diff)
Related: tdf#148448 add a separate WarningColor settings
instead of a hard-coded yellow. For gtk we can use the named color "warning_color" to populate it: https://docs.gtk.org/gtk4/css-properties.html Change-Id: I538bffdc0f6286c78a08cef649fa8a074a6510ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132684 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3/gtkinst.cxx')
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 4875bc64e7d7..ff024e662037 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -16909,7 +16909,7 @@ public:
gtk_label_set_attributes(m_pLabel, nullptr);
break;
case weld::LabelType::Warning:
- set_text_background_color(COL_YELLOW);
+ set_text_background_color(Application::GetSettings().GetStyleSettings().GetWarningColor());
break;
case weld::LabelType::Error:
set_text_background_color(Application::GetSettings().GetStyleSettings().GetHighlightColor());