[Libreoffice-commits] core.git: vcl/qt5

Jan-Marek Glogowski (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 24 00:54:31 UTC 2019


 vcl/qt5/Qt5Frame.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 24f1670927300afb0c9a6e06bdee969b844f2060
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Sat Mar 23 16:02:38 2019 +0000
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Sun Mar 24 01:54:09 2019 +0100

    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 at fbihome.de>

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(


More information about the Libreoffice-commits mailing list