summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorandreas kainz <kainz.a@gmail.com>2020-09-24 17:04:02 +0200
committerAndreas Kainz <kainz.a@gmail.com>2020-09-24 20:37:39 +0200
commitcc2060fb21d48d775e5a85b9080c10589ab7287e (patch)
tree11cd095502c2c4dfeb3ce230509717760363fc36 /sfx2
parent4e7f0727f3b25c0f317e56e852aa4c2fd39ee355 (diff)
tdf#133690 Cleanup Sidebar theme
Change-Id: Ic639637d2556f0224c5c2ed85d632b7ca415ff3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103322 Tested-by: Jenkins Reviewed-by: Andreas Kainz <kainz.a@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/Theme.cxx28
1 files changed, 3 insertions, 25 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index ac38db8f21e2..ce32455b0093 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -167,27 +167,9 @@ void Theme::UpdateTheme()
maPropertyIdToNameMap[Paint_DeckTitleBarBackground],
Any(sal_Int32(aBaseBackgroundColor.GetRGBColor())));
setPropertyValue(
- maPropertyIdToNameMap[Int_DeckLeftPadding],
- Any(sal_Int32(2)));
- setPropertyValue(
- maPropertyIdToNameMap[Int_DeckTopPadding],
- Any(sal_Int32(2)));
- setPropertyValue(
- maPropertyIdToNameMap[Int_DeckRightPadding],
- Any(sal_Int32(2)));
- setPropertyValue(
- maPropertyIdToNameMap[Int_DeckBottomPadding],
- Any(sal_Int32(2)));
- setPropertyValue(
- maPropertyIdToNameMap[Int_DeckBorderSize],
- Any(sal_Int32(1)));
- setPropertyValue(
maPropertyIdToNameMap[Int_DeckSeparatorHeight],
Any(sal_Int32(1)));
setPropertyValue(
- maPropertyIdToNameMap[Int_ButtonCornerRadius],
- Any(sal_Int32(3)));
- setPropertyValue(
maPropertyIdToNameMap[Color_DeckTitleFont],
Any(sal_Int32(rStyle.GetFontColor().GetRGBColor())));
setPropertyValue(
@@ -202,11 +184,7 @@ void Theme::UpdateTheme()
setPropertyValue(
maPropertyIdToNameMap[Paint_PanelTitleBarBackground],
- Any(Tools::VclToAwtGradient(Gradient(
- GradientStyle::Linear,
- aSecondColor.GetRGBColor(),
- aBaseBackgroundColor.GetRGBColor()
- ))));
+ Any(sal_Int32(aSecondColor.GetRGBColor())));
setPropertyValue(
maPropertyIdToNameMap[Color_PanelTitleFont],
Any(sal_Int32(mbIsHighContrastMode ? 0x00ff00 : 0x262626)));
@@ -234,13 +212,13 @@ void Theme::UpdateTheme()
setPropertyValue(
maPropertyIdToNameMap[Int_TabMenuPadding],
- Any(sal_Int32(6)));
+ Any(sal_Int32(3)));
setPropertyValue(
maPropertyIdToNameMap[Color_TabMenuSeparator],
Any(sal_Int32(aBorderColor.GetRGBColor())));
setPropertyValue(
maPropertyIdToNameMap[Int_TabMenuSeparatorPadding],
- Any(sal_Int32(7)));
+ Any(sal_Int32(3)));
setPropertyValue(
maPropertyIdToNameMap[Int_TabItemWidth],