diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-03 12:37:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-03 12:48:21 +0100 |
commit | 491bb212fae98c93197401cbd10aff8e24dc541f (patch) | |
tree | 65eb3483327fcde068f4543140af1c648dd0d8db /svx | |
parent | c98e1b127be779cbe9b388afa043f8d3c8798183 (diff) |
allow changing the fill color user for tab previews
Change-Id: Ie20e900fe9e1f9bfdcd5784b380aa4574d52c001
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index e8fd30c46d88..b878b3b7ed51 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -3571,13 +3571,14 @@ void SvxRuler::Command( const CommandEvent& rCEvt ) const Size aSz(RULER_TAB_WIDTH+2, RULER_TAB_HEIGHT+2); aDev.SetOutputSize(aSz); aDev.SetBackground(Wallpaper(Color(COL_WHITE))); + Color aFillColor(aDev.GetSettings().GetStyleSettings().GetShadowColor()); const Point aPt(aSz.Width() / 2, aSz.Height() / 2); for ( sal_uInt16 i = RULER_TAB_LEFT; i < RULER_TAB_DEFAULT; ++i ) { sal_uInt16 nStyle = bRTL ? i|RULER_TAB_RTL : i; nStyle |= (sal_uInt16)(bHorz ? WB_HORZ : WB_VERT); - DrawTab(&aDev, aPt, nStyle); + DrawTab(&aDev, aFillColor, aPt, nStyle); aMenu.InsertItem(i+1, String(ResId(RID_SVXSTR_RULER_START+i, DIALOG_MGR())), Image(aDev.GetBitmap(Point(), aSz), Color(COL_WHITE))); |