From 94932d121390c8a0e8d7cac7997a14ad49bb8676 Mon Sep 17 00:00:00 2001 From: Ruslan Kabatsayev Date: Tue, 17 Jul 2012 18:18:35 +0400 Subject: Make default dark shadow non-black Change-Id: If517926b12633a96ad8088e007cfcd6d84e5c919 --- vcl/source/app/settings.cxx | 2 ++ vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 1 + 2 files changed, 3 insertions(+) (limited to 'vcl') diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 9684e38511b8..aa6064f2e10d 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -474,8 +474,10 @@ void StyleSettings::Set3DColors( const Color& rColor ) { mpData->maLightColor = rColor; mpData->maShadowColor = rColor; + mpData->maDarkShadowColor=rColor; mpData->maLightColor.IncreaseLuminance( 64 ); mpData->maShadowColor.DecreaseLuminance( 64 ); + mpData->maDarkShadowColor.DecreaseLuminance( 100 ); sal_uLong nRed = mpData->maLightColor.GetRed(); sal_uLong nGreen = mpData->maLightColor.GetGreen(); sal_uLong nBlue = mpData->maLightColor.GetBlue(); diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index c9b1c30ff9ea..2f2158a99510 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -3805,6 +3805,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) std::fprintf( stderr, "MenuBarTextColor = %x (%d)\n", (int)aStyleSet.GetMenuBarTextColor().GetColor(), aStyleSet.GetMenuBarTextColor().GetLuminance() ); std::fprintf( stderr, "LightColor = %x (%d)\n", (int)aStyleSet.GetLightColor().GetColor(), aStyleSet.GetLightColor().GetLuminance() ); std::fprintf( stderr, "ShadowColor = %x (%d)\n", (int)aStyleSet.GetShadowColor().GetColor(), aStyleSet.GetShadowColor().GetLuminance() ); + std::fprintf( stderr, "DarkShadowColor = %x (%d)\n", (int)aStyleSet.GetDarkShadowColor().GetColor(), aStyleSet.GetDarkShadowColor().GetLuminance() ); #endif // Awful hack for menu separators in the Sonar and similar themes. -- cgit