summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-15 13:50:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-04-15 16:16:35 +0200
commita0f9f8ddaaa4ca14c9cc37259e2ac5dce63b3c77 (patch)
tree95627520f077d90bc8de328fc524786bdd0d533d /vcl/win
parentb9c806b9e3631d76b8ceaa6208497aba60c75f83 (diff)
tdf#148448 pick a warning color more likely to be readable in dark theme
I can't see anything that is useful which could be used to derive this so just pick a better hard coded color Change-Id: Ia351e636ed3a44e9af79147b2d9dfcf347bd8ea9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133068 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/window/salframe.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index bbfd7843502a..6f3b3ca507e5 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -2695,6 +2695,10 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings )
aMenuBarTextColor = ImplWinColorToSal( color );
aMenuBarRolloverTextColor = ImplWinColorToSal( color );
CloseThemeData(hTheme);
+
+ // tdf#148448 pick a warning color more likely to be readable as a
+ // background in a dark theme
+ aStyleSettings.SetWarningColor(Color(0xf5, 0x79, 0x00));
}
else
{