summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-08-17 15:28:18 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-08-18 14:34:14 +0200
commit0b4780143017b8d69f8c081f4b7dc6a685b9fbb1 (patch)
treed658fc7d0d360f7055c7d73cfe9da69f70bcd325 /sw
parent15f482b1e9aff47a366a1cb1666fb4aabea49912 (diff)
Headers/Footers: set only the main color and play with luminance for the other
Diffstat (limited to 'sw')
-rwxr-xr-xsw/source/core/layout/paintfrm.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index b699bfdf6839..1d27d0eeb2d2 100755
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -123,6 +123,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
+#include <basegfx/color/bcolortools.hxx>
using namespace ::editeng;
using namespace ::com::sun::star;
@@ -3316,7 +3317,9 @@ drawinglayer::primitive2d::Primitive2DSequence lcl_CreateHeaderFooterSeparatorPr
// Colors
basegfx::BColor aLineColor( 3.0 / 255.0, 105.0 / 255.0, 163.0 / 255.0 );
- basegfx::BColor aFillColor( 170.0 / 255.0, 220.0 / 255.0, 247.0 / 255.0 );
+ basegfx::BColor aHslLine = basegfx::tools::rgb2hsl( aLineColor );
+ aHslLine.setZ( aHslLine.getZ( ) * 2.5 );
+ basegfx::BColor aFillColor = basegfx::tools::hsl2rgb( aHslLine );
// Dashed line in twips
std::vector< double > aStrokePattern;