summaryrefslogtreecommitdiff
path: root/svx/source/dialog/svxbmpnumvalueset.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2015-08-27 21:18:58 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2015-08-27 21:19:38 +0300
commitfa1807ad5457d10f8fa073c209a27547e8922c8c (patch)
tree4343d9aa2fd8ae743cfacbbd53ba337d32b2572c /svx/source/dialog/svxbmpnumvalueset.cxx
parente2be23d1718b363650bf1853d629df89347d906e (diff)
tdf#93558 Hardcode black text on white background
As agreed in the bug report, a preview shouldn't be themed by the OS theme. Change-Id: Icdc5021c3ac614fe1d490fd513a407a81dbc169e
Diffstat (limited to 'svx/source/dialog/svxbmpnumvalueset.cxx')
-rw-r--r--svx/source/dialog/svxbmpnumvalueset.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx
index 5d11b04cd47c..1d01cd92cf48 100644
--- a/svx/source/dialog/svxbmpnumvalueset.cxx
+++ b/svx/source/dialog/svxbmpnumvalueset.cxx
@@ -136,9 +136,8 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt )
25, 90,
};
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- const Color aBackColor = rStyleSettings.GetFieldColor();
- const Color aTextColor = rStyleSettings.GetFieldTextColor();
+ const Color aBackColor(COL_WHITE);
+ const Color aTextColor(COL_BLACK);
vcl::RenderContext* pDev = rUDEvt.GetRenderContext();
Rectangle aRect = rUDEvt.GetRect();
@@ -182,10 +181,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt )
pVDev->SetOutputSize( aRectSize );
aOrgRect = aRect;
pVDev->SetFillColor( aBackColor );
-
- if(aBackColor == aLineColor)
- aLineColor.Invert();
- pVDev->SetLineColor(aLineColor);
+ pVDev->SetLineColor(COL_LIGHTGRAY);
// Draw line only once
if(ePageType != NumberingPageType::OUTLINE)
{
@@ -397,7 +393,6 @@ VCL_BUILDER_FACTORY_ARGS(SvxNumValueSet, WB_TABSTOP)
void SvxNumValueSet::init(NumberingPageType eType)
{
- aLineColor = COL_LIGHTGRAY;
ePageType = eType;
bHTMLMode = false;
pVDev = NULL;