diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-08-27 21:18:58 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-31 15:11:44 +0200 |
commit | c62aedf35f6754a714d98f4d4f48ff86a8c7fc8b (patch) | |
tree | b15804a367deddeb9f024b9633590b2beb055faf /svx | |
parent | c496da6bac302d235d6114c0d00b0a119701877a (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.
(cherry picked from commit fa1807ad5457d10f8fa073c209a27547e8922c8c)
Conflicts:
include/svx/numvset.hxx
svx/source/dialog/svxbmpnumvalueset.cxx
Change-Id: Icdc5021c3ac614fe1d490fd513a407a81dbc169e
Reviewed-on: https://gerrit.libreoffice.org/18068
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/svxbmpnumvalueset.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx index 5c8157d15e81..cbee541a9127 100644 --- a/svx/source/dialog/svxbmpnumvalueset.cxx +++ b/svx/source/dialog/svxbmpnumvalueset.cxx @@ -141,9 +141,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(); @@ -187,10 +186,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(nPageType != NUM_PAGETYPE_NUM) { @@ -402,7 +398,6 @@ VCL_BUILDER_FACTORY_ARGS(SvxNumValueSet, WB_TABSTOP) void SvxNumValueSet::init(sal_uInt16 nType) { - aLineColor = COL_LIGHTGRAY; nPageType = nType; bHTMLMode = false; pVDev = NULL; |