summaryrefslogtreecommitdiff
path: root/sfx2/source/control/templatecontaineritem.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-06-30 17:53:49 +0200
committerJan Holesovsky <kendy@collabora.com>2015-06-30 17:57:39 +0200
commit1cf7e272f7731978695f4bcd8fbdf85766d4f14e (patch)
treed237e0fa85087b415fb28d328d354480e3d841dd /sfx2/source/control/templatecontaineritem.cxx
parent7387cdbc41924a85cc48e6b68563c91e35b3915c (diff)
tdf#90452: Templates should adhere to the recent docs colors too.
Change-Id: I5df89581796eca4e48e0a305d4319e4674f8dd87
Diffstat (limited to 'sfx2/source/control/templatecontaineritem.cxx')
-rw-r--r--sfx2/source/control/templatecontaineritem.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sfx2/source/control/templatecontaineritem.cxx b/sfx2/source/control/templatecontaineritem.cxx
index 16e05d124651..b4f2f6322e0e 100644
--- a/sfx2/source/control/templatecontaineritem.cxx
+++ b/sfx2/source/control/templatecontaineritem.cxx
@@ -22,7 +22,6 @@
#include <sfx2/templateviewitem.hxx>
#include <vcl/button.hxx>
#include <vcl/graph.hxx>
-#include <svtools/optionsdrawinglayer.hxx>
using namespace basegfx;
using namespace basegfx::tools;
@@ -75,10 +74,7 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
aFillColor = pAttrs->aHighlightColor;
if (mbHover)
- {
- const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer;
- fTransparence = aSvtOptionsDrawinglayer.GetTransparentSelectionPercent() * 0.01;
- }
+ fTransparence = pAttrs->fHighlightTransparence;
aSeq[nCount++] = drawinglayer::primitive2d::Primitive2DReference( new PolyPolygonSelectionPrimitive2D(
B2DPolyPolygon(Polygon(maDrawArea,5,5).getB2DPolygon()),
@@ -88,9 +84,9 @@ void TemplateContainerItem::Paint (drawinglayer::processor2d::BaseProcessor2D *p
true));
// Create rounded rectangle border
- aSeq[nCount++] = drawinglayer::primitive2d::Primitive2DReference( new PolygonStrokePrimitive2D(
- Polygon(maThumbnailArea,5,5).getB2DPolygon(),
- LineAttribute(BColor(0.8, 0.8, 0.8), 2.0)));
+ aSeq[nCount++] = drawinglayer::primitive2d::Primitive2DReference(new PolygonStrokePrimitive2D(
+ Polygon(maThumbnailArea, 5, 5).getB2DPolygon(),
+ LineAttribute(BColor(0.5, 0.5, 0.5), 2.0)));
// Paint the thumbnails side by side on a 2x2 grid
long nThumbPadding = 4;