Kaydet (Commit) f4c9a29d authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Caolán McNamara

Resolves: #122707# Show a frame around toolbars in sidebar panels.

(cherry picked from commit f6159d52)

Conflicts:
	sfx2/source/sidebar/Theme.cxx
	svx/source/sidebar/text/TextPropertyPanel.hrc

Change-Id: I0163d3766923a5a333214f09db4837435590d753
üst 4935422b
......@@ -399,28 +399,32 @@ void Theme::UpdateTheme (void)
*/
// Gradient style
Color aGradientStop2 (aBaseBackgroundColor);
aGradientStop2.IncreaseLuminance(17);
Color aToolBoxBorderColor (aBaseBackgroundColor);
aToolBoxBorderColor.DecreaseLuminance(12);
setPropertyValue(
maPropertyIdToNameMap[Paint_ToolBoxBackground],
Any(Tools::VclToAwtGradient(Gradient(
GradientStyle_LINEAR,
Color(0xf2f2f2),
Color(0xfefefe)
aBaseBackgroundColor.GetRGBColor(),
aGradientStop2.GetRGBColor()
))));
setPropertyValue(
maPropertyIdToNameMap[Paint_ToolBoxBorderTopLeft],
mbIsHighContrastMode
? Any(util::Color(sal_uInt32(0x00ff00)))
: Any(util::Color(sal_uInt32(0xf2f2f2))));
: Any(util::Color(aToolBoxBorderColor.GetRGBColor())));
setPropertyValue(
maPropertyIdToNameMap[Paint_ToolBoxBorderCenterCorners],
mbIsHighContrastMode
? Any(util::Color(sal_uInt32(0x00ff00)))
: Any(util::Color(sal_uInt32(0xf2f2f2))));
: Any(util::Color(aToolBoxBorderColor.GetRGBColor())));
setPropertyValue(
maPropertyIdToNameMap[Paint_ToolBoxBorderBottomRight],
mbIsHighContrastMode
? Any(util::Color(sal_uInt32(0x00ff00)))
: Any(util::Color(sal_uInt32(0xf2f2f2))));
: Any(util::Color(aToolBoxBorderColor.GetRGBColor())));
setPropertyValue(
maPropertyIdToNameMap[Rect_ToolBoxPadding],
Any(awt::Rectangle(2,2,2,2)));
......
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