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>
This commit is contained in:
Rafael Lima 2022-12-20 13:37:53 +00:00
parent 522b3ce2ee
commit 9c6aa7f291

View file

@ -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