vcl/win/window/salframe.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 49701230a9a5e87475237a0392155c4c679a1cb0 Author: Caolán McNamara <[email protected]> AuthorDate: Wed Feb 1 15:23:10 2023 +0000 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Wed Feb 1 20:03:59 2023 +0000 tdf#148085 get a more readable hyperlink color under windows dark mode Change-Id: I392206eb9fcff7fca39c6efee747486f4dfa925e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146459 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index 2cc3404b771c..a271c4e5e27f 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -2700,6 +2700,13 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings ) aMenuBarRolloverTextColor = ImplWinColorToSal( color ); CloseThemeData(hTheme); + if (hTheme = OpenThemeData(mhWnd, L"Textstyle")) + { + GetThemeColor(hTheme, TEXT_HYPERLINKTEXT, TS_HYPERLINK_NORMAL, TMT_TEXTCOLOR, &color); + aStyleSettings.SetLinkColor(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));
