summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2022-12-20 13:37:53 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2023-01-09 15:57:45 +0000
commit555dfdd35f662489df481485e5cd866f67e27a70 (patch)
tree562840d72b1a11132151ff3ec9f10cd913ac1274 /basctl
parent75d3c2d855182dfdbd2a9319f09fbd2326dbd146 (diff)
tdf#152531 Fix background color of Dialog Editor in dark mode
Change-Id: I7006ff472dae5ce8d4b52c108f742c3c6d9b0b61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144603 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> (cherry picked from commit 9c6aa7f2918819af670c6d6ed25645c725c91667) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145220 Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/dlged.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 306555489df5..77ed2e8042db 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -550,8 +550,9 @@ void DlgEditor::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle
// #i79128# ...and use correct OutDev for that
if (pTargetPaintWindow)
{
+ Color maBackColor = rRenderContext.GetSettings().GetStyleSettings().GetLightColor();
OutputDevice& rTargetOutDev = pTargetPaintWindow->GetTargetOutputDevice();
- rTargetOutDev.DrawWallpaper(aPaintRect, Wallpaper(COL_WHITE));
+ rTargetOutDev.DrawWallpaper(aPaintRect, Wallpaper(maBackColor));
}
// do paint (unbuffered) and mark repaint end