diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2021-05-12 20:01:05 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-30 06:09:49 +0200 |
commit | a2c8195f465a2e4346169d2b586c34e8fbed253c (patch) | |
tree | 2ad0a45dfebaaa63e26f96ce244486cf1d0598e4 /vcl/source/treelist | |
parent | 229136b7c9363bc758c9e925ccfd0c9bb34ceaec (diff) |
tdf#74702 vcl: introduce GetSystemTextColor()
Also rename DrawFlags to SystemDrawColorFlags, added a unit test.
Change-Id: I3cb74b278e43561d1055b3b55b9730cdbdea51aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113559
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source/treelist')
-rw-r--r-- | vcl/source/treelist/headbar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/treelist/headbar.cxx b/vcl/source/treelist/headbar.cxx index 91cb86cc73ca..ae0928231f96 100644 --- a/vcl/source/treelist/headbar.cxx +++ b/vcl/source/treelist/headbar.cxx @@ -875,7 +875,7 @@ void HeaderBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle } void HeaderBar::Draw( OutputDevice* pDev, const Point& rPos, - DrawFlags nFlags ) + SystemTextColorFlags nFlags ) { Point aPos = pDev->LogicToPixel( rPos ); Size aSize = GetSizePixel(); @@ -885,7 +885,7 @@ void HeaderBar::Draw( OutputDevice* pDev, const Point& rPos, pDev->Push(); pDev->SetMapMode(); pDev->SetFont( aFont ); - if ( nFlags & DrawFlags::Mono ) + if ( nFlags & SystemTextColorFlags::Mono ) pDev->SetTextColor( COL_BLACK ); else pDev->SetTextColor( GetTextColor() ); |