summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/wall.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-06-25 13:32:39 +0000
committerKurt Zenker <kz@openoffice.org>2008-06-25 13:32:39 +0000
commit51f84e70306e6a2303175e9f9980177fa0b83556 (patch)
treeba69e4eec04bdd23f8e2c8fea8c681fe7a43e3aa /vcl/source/gdi/wall.cxx
parentcba795223f3a108379e31dd5b2d400229d56e0f0 (diff)
INTEGRATION: CWS vcl89 (1.9.16); FILE MERGED
2008/04/23 17:38:34 pl 1.9.16.1: #i87559# highcontrast should not draw black to white gradient
Diffstat (limited to 'vcl/source/gdi/wall.cxx')
-rw-r--r--vcl/source/gdi/wall.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index e7b8b2b6bacb..e0c69ce582f4 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wall.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
* This file is part of OpenOffice.org.
*
@@ -468,7 +468,11 @@ Gradient Wallpaper::ImplGetApplicationGradient() const
g.SetAngle( 900 );
g.SetStyle( GRADIENT_LINEAR );
g.SetStartColor( Application::GetSettings().GetStyleSettings().GetFaceColor() );
- g.SetEndColor( Application::GetSettings().GetStyleSettings().GetFaceGradientColor() );
+ // no 'extreme' gradient when high contrast
+ if( Application::GetSettings().GetStyleSettings().GetFaceColor().IsDark() )
+ g.SetEndColor( Application::GetSettings().GetStyleSettings().GetFaceColor() );
+ else
+ g.SetEndColor( Application::GetSettings().GetStyleSettings().GetFaceGradientColor() );
return g;
}