summaryrefslogtreecommitdiff
path: root/vcl/unx/kde4/KDESalFrame.cxx
diff options
context:
space:
mode:
authorChristian Dywan <christian.dywan@lanedo.com>2011-04-28 19:31:28 +0200
committerJan Holesovsky <kendy@suse.cz>2011-04-30 00:39:59 +0200
commit51940f50c936cec04c3891d8d80559a5bf1f022d (patch)
treed7a476cf25e4ea2a08c351d3d09934be764419b7 /vcl/unx/kde4/KDESalFrame.cxx
parentfe4b4f71bbd256bb76abfa3391df02c7190b0aa0 (diff)
Unify light gray checked color special case
It's the same hack on all platforms using it.
Diffstat (limited to 'vcl/unx/kde4/KDESalFrame.cxx')
-rw-r--r--vcl/unx/kde4/KDESalFrame.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx
index 220859bc7e01..a2f4b72b4edd 100644
--- a/vcl/unx/kde4/KDESalFrame.cxx
+++ b/vcl/unx/kde4/KDESalFrame.cxx
@@ -263,18 +263,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetFaceColor( aBack );
style.SetInactiveTabColor( aBack );
style.SetDialogColor( aBack );
-
- if( aBack == COL_LIGHTGRAY )
- style.SetCheckedColor( Color( 0xCC, 0xCC, 0xCC ) );
- else
- {
- Color aColor2 = style.GetLightColor();
- style.
- SetCheckedColor( Color( (sal_uInt8)(((sal_uInt16)aBack.GetRed()+(sal_uInt16)aColor2.GetRed())/2),
- (sal_uInt8)(((sal_uInt16)aBack.GetGreen()+(sal_uInt16)aColor2.GetGreen())/2),
- (sal_uInt8)(((sal_uInt16)aBack.GetBlue()+(sal_uInt16)aColor2.GetBlue())/2)
- ) );
- }
+ style.SetCheckedColorSpecialCase( );
// Selection
style.SetHighlightColor( aHigh );