diff options
author | Andre Fischer <af@apache.org> | 2013-04-26 06:45:40 +0000 |
---|---|---|
committer | Andre Fischer <af@apache.org> | 2013-04-26 06:45:40 +0000 |
commit | ae86d3036171e63bfe193e678c9c05a1ec1a12bb (patch) | |
tree | ac71f2b7dcb04de5ff0724e20f72a476cbc28463 /sfx2/source/sidebar/Theme.cxx | |
parent | 6818706a832b4f6281cdf31d274b4a72c0ff2d58 (diff) |
122144: Use same color for all sidebar backgrounds.
Notes
merged as: 0a9249f1e00a2792707e31976a7d45ae05240cef
Diffstat (limited to 'sfx2/source/sidebar/Theme.cxx')
-rw-r--r-- | sfx2/source/sidebar/Theme.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index aa578f3ac035..7ff4d940ad45 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -218,7 +218,9 @@ void Theme::UpdateTheme (void) #define Alternatives(n,hc,sys) (mbIsHighContrastMode ? hc : (bUseSystemColors ? sys : n)) - const Color aBaseBackgroundColor (rStyle.GetDialogColor()); + Color aBaseBackgroundColor (rStyle.GetDialogColor()); + // UX says this should be a little brighter, but that looks off when compared to the other windows. + //aBaseBackgroundColor.IncreaseLuminance(7); Color aBorderColor (aBaseBackgroundColor); aBorderColor.DecreaseLuminance(15); Color aSecondColor (aBaseBackgroundColor); @@ -226,7 +228,7 @@ void Theme::UpdateTheme (void) setPropertyValue( maPropertyIdToNameMap[Paint_DeckBackground], - Any(sal_Int32(rStyle.GetMenuColor().GetRGBColor()))); + Any(sal_Int32(aBaseBackgroundColor.GetRGBColor()))); setPropertyValue( maPropertyIdToNameMap[Paint_DeckTitleBarBackground], @@ -263,9 +265,7 @@ void Theme::UpdateTheme (void) rStyle.GetFloatTitleHeight())))); setPropertyValue( maPropertyIdToNameMap[Paint_PanelBackground], - Any(sal_Int32(rStyle.GetDialogColor().GetRGBColor()))); - // Any(sal_Int32(mbIsHighContrastMode ? 0x000000 : - // 0xffffff))); + Any(sal_Int32(aBaseBackgroundColor.GetRGBColor()))); setPropertyValue( maPropertyIdToNameMap[Paint_PanelTitleBarBackground], |