summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-09-14 21:18:22 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-09-16 23:45:10 +0200
commit77fd06e18d29daca5194342fe630f4d595f7bd10 (patch)
tree1d3997ad7ea3f057a91a54681a44c6c412ecd13b /svtools
parentf9c77344c6352bd8fd4acc1fd87d55f8f5087061 (diff)
Remove shadows in tabs to make them look more flat.
Change-Id: I7c125c10538a641ec723d95be987ad77cdebc9ba
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/tabbar.cxx73
1 files changed, 2 insertions, 71 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 6535462b2bcb..771667cef072 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1137,48 +1137,6 @@ public:
mrParent.DrawPolygon(maPoly);
}
- void drawLeftShadow()
- {
- Point p1 = maPoly[0], p2 = maPoly[1];
- p1.X()++;
- p2.X()++;
- p2.Y()--;
- mrParent.DrawLine(p1, p2);
- }
-
- void drawRightShadow()
- {
- Point p1 = maPoly[2];
- Point p2 = maPoly[3];
- p1.X()--;
- p2.X()--;
- mrParent.DrawLine(p1, p2);
- }
-
- void drawTopInnerShadow()
- {
- Point p1 = maPoly[0], p2 = maPoly[3];
- p1.Y()++;
- p2.Y()++;
- mrParent.DrawLine(p1, p2);
- }
-
- void drawBottomShadow(bool bColored)
- {
- Point p1 = maPoly[1], p2 = maPoly[2];
- p1.X() += 1;
- p1.Y() -= 1;
- p2.X() -= 1;
- p2.Y() -= 1;
- mrParent.DrawLine(p1, p2);
- if (bColored)
- {
- p1 += Point(-1, -1);
- p2 += Point(1, -1);
- mrParent.DrawLine(p1, p2);
- }
- }
-
void drawText(const OUString& aText)
{
Rectangle aRect = maRect;
@@ -1197,7 +1155,8 @@ public:
void drawOverTopBorder(bool b3DTab)
{
- Point p1 = maPoly[0], p2 = maPoly[3];
+ Point p1 = maPoly[0];
+ Point p2 = maPoly[3];
p1.X() += 1;
p2.X() -= 1;
Rectangle aDelRect(p1, p2);
@@ -1229,34 +1188,6 @@ public:
}
drawOuterFrame();
-
- // If this is the current tab, draw the left inner shadow the default color,
- // otherwise make it the same as the custom background color
- Color aColor = mpStyleSettings->GetLightColor();
- if (mbCustomColored && !mbSelected)
- aColor = maCustomColor;
-
- mrParent.SetLineColor(aColor);
- drawLeftShadow();
-
- if ( !mbSelected )
- drawTopInnerShadow();
-
- mrParent.SetLineColor( mpStyleSettings->GetShadowColor() );
- drawRightShadow();
- if ( mbCustomColored && mbSelected )
- {
- mrParent.SetLineColor(maCustomColor);
- drawBottomShadow(true);
- }
- else
- drawBottomShadow(false);
-
- // Draw the outer frame once more. In some environments, the outer frame
- // gets overpainted.
- mrParent.SetLineColor( mpStyleSettings->GetDarkShadowColor() );
- mrParent.SetFillColor();
- drawOuterFrame();
}
void drawPlusImage()