Kaydet (Commit) 98e45efa authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

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
üst 97b2970d
...@@ -334,6 +334,10 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings ) ...@@ -334,6 +334,10 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetScrollBarSize( QApplication::style()->pixelMetric( QStyle::PM_ScrollBarExtent ) ); style.SetScrollBarSize( QApplication::style()->pixelMetric( QStyle::PM_ScrollBarExtent ) );
style.SetMinThumbSize( QApplication::style()->pixelMetric( QStyle::PM_ScrollBarSliderMin )); 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 ); rSettings.SetStyleSettings( style );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment