summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-03-23 16:02:38 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2019-03-24 01:54:09 +0100
commit24f1670927300afb0c9a6e06bdee969b844f2060 (patch)
tree84a5c92475ecf7556700d122af70061cdcd5208b
parent3a8bf7fdf6c07cfc5df919263676fdece658aada (diff)
tdf#124237 Qt5 get link colors from theme
... which includes normal and visited link colors. Change-Id: Id53850c4700f71d007b59289b135d3c031348f2d Reviewed-on: https://gerrit.libreoffice.org/69591 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r--vcl/qt5/Qt5Frame.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index b4d1a985e2ce..65055e8546a1 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -912,6 +912,8 @@ void Qt5Frame::UpdateSettings(AllSettings& rSettings)
Color aMid = toColor(pal.color(QPalette::Active, QPalette::Mid));
Color aHigh = toColor(pal.color(QPalette::Active, QPalette::Highlight));
Color aHighText = toColor(pal.color(QPalette::Active, QPalette::HighlightedText));
+ Color aLink = toColor(pal.color(QPalette::Active, QPalette::Link));
+ Color aVisitedLink = toColor(pal.color(QPalette::Active, QPalette::LinkVisited));
style.SetSkipDisabledInMenus(true);
@@ -956,6 +958,10 @@ void Qt5Frame::UpdateSettings(AllSettings& rSettings)
style.SetHighlightColor(aHigh);
style.SetHighlightTextColor(aHighText);
+ // Links
+ style.SetLinkColor(aLink);
+ style.SetVisitedLinkColor(aVisitedLink);
+
// Tooltip
style.SetHelpColor(toColor(QToolTip::palette().color(QPalette::Active, QPalette::ToolTipBase)));
style.SetHelpTextColor(