Kaydet (Commit) ae86d303 authored tarafından Andre Fischer's avatar Andre Fischer

122144: Use same color for all sidebar backgrounds.

üst 6818706a
...@@ -218,7 +218,9 @@ void Theme::UpdateTheme (void) ...@@ -218,7 +218,9 @@ void Theme::UpdateTheme (void)
#define Alternatives(n,hc,sys) (mbIsHighContrastMode ? hc : (bUseSystemColors ? sys : n)) #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); Color aBorderColor (aBaseBackgroundColor);
aBorderColor.DecreaseLuminance(15); aBorderColor.DecreaseLuminance(15);
Color aSecondColor (aBaseBackgroundColor); Color aSecondColor (aBaseBackgroundColor);
...@@ -226,7 +228,7 @@ void Theme::UpdateTheme (void) ...@@ -226,7 +228,7 @@ void Theme::UpdateTheme (void)
setPropertyValue( setPropertyValue(
maPropertyIdToNameMap[Paint_DeckBackground], maPropertyIdToNameMap[Paint_DeckBackground],
Any(sal_Int32(rStyle.GetMenuColor().GetRGBColor()))); Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
setPropertyValue( setPropertyValue(
maPropertyIdToNameMap[Paint_DeckTitleBarBackground], maPropertyIdToNameMap[Paint_DeckTitleBarBackground],
...@@ -263,9 +265,7 @@ void Theme::UpdateTheme (void) ...@@ -263,9 +265,7 @@ void Theme::UpdateTheme (void)
rStyle.GetFloatTitleHeight())))); rStyle.GetFloatTitleHeight()))));
setPropertyValue( setPropertyValue(
maPropertyIdToNameMap[Paint_PanelBackground], maPropertyIdToNameMap[Paint_PanelBackground],
Any(sal_Int32(rStyle.GetDialogColor().GetRGBColor()))); Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
// Any(sal_Int32(mbIsHighContrastMode ? 0x000000 :
// 0xffffff)));
setPropertyValue( setPropertyValue(
maPropertyIdToNameMap[Paint_PanelTitleBarBackground], maPropertyIdToNameMap[Paint_PanelTitleBarBackground],
......
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