summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-10-07 17:49:18 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2016-12-20 14:19:16 +0100
commit98e45efa6ab58c67fb3940b9f6fc4b65542d4d6f (patch)
tree3c6812c08e637e573f23f7e12ab1a42e828345c1 /vcl
parent97b2970d09af2c94698b25b9e7f0d47fcc7d4f74 (diff)
KDE4 set shadow colors
These are used to paint Writers ruler text and marks. Makes both readable with disabled and inactive text colors. Change-Id: I39766d623164230a7379623c16e0463cbaaf0af8
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/kde4/KDESalFrame.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx
index 06a0abd7b9bc..43dcb35d76ef 100644
--- a/vcl/unx/kde4/KDESalFrame.cxx
+++ b/vcl/unx/kde4/KDESalFrame.cxx
@@ -334,6 +334,10 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetScrollBarSize( QApplication::style()->pixelMetric( QStyle::PM_ScrollBarExtent ) );
style.SetMinThumbSize( QApplication::style()->pixelMetric( QStyle::PM_ScrollBarSliderMin ));
+ // These colors are used for the ruler text and marks
+ style.SetShadowColor(toColor(pal.color(QPalette::Disabled, QPalette::WindowText)));
+ style.SetDarkShadowColor(toColor(pal.color(QPalette::Inactive, QPalette::WindowText)));
+
rSettings.SetStyleSettings( style );
}