Kaydet (Commit) fa1807ad authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

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
üst e2be23d1
......@@ -57,7 +57,6 @@ enum class NumberingPageType
class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet
{
Color aLineColor;
NumberingPageType ePageType;
bool bHTMLMode;
Rectangle aOrgRect;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment