diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2020-05-24 00:49:27 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-06-04 18:36:05 +0200 |
commit | c39738eabfb9edde552832581bf85e717b00cc79 (patch) | |
tree | fda1f121fada6e344fa8d46f2d70ae49002b144a /vcl | |
parent | 54e35feef17580cfcbf0a2db1272fb05c85e2348 (diff) |
tdf#74702 vcl: extract GetMonochromeButtonColor()
Change-Id: I67e430ae1e0834f087a2066ed7bf660ec1309a28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94726
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/decoview.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 2d418a0ad486..fab8f183ca9d 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -509,10 +509,7 @@ void ImplDrawButton( OutputDevice *const pDev, tools::Rectangle aFillRect, } // Hack: in monochrome mode on printers we like to have grey buttons - if ( pDev->GetOutDevType() == OUTDEV_PRINTER ) - pDev->SetFillColor( COL_LIGHTGRAY ); - else - pDev->SetFillColor( COL_WHITE ); + pDev->SetFillColor(pDev->GetMonochromeButtonColor()); pDev->DrawRect( aFillRect ); } else |