vcl/win/window/salframe.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit a0f9f8ddaaa4ca14c9cc37259e2ac5dce63b3c77 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Apr 15 13:50:10 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Apr 15 16:16:35 2022 +0200
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 <caol...@redhat.com> 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 {