https://bugs.documentfoundation.org/show_bug.cgi?id=153808

            Bug ID: 153808
           Summary: Preview in the Bullets and Numbering is not painting
                    bullets/numbers in dark mode
           Product: LibreOffice
           Version: 7.6.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: rafael.palma.l...@gmail.com

Created attachment 185569
  --> https://bugs.documentfoundation.org/attachment.cgi?id=185569&action=edit
Screenshot showing the problem

In Impress, if you open the Bullets and Numbering dialog when using a dark
mode, you'll get a preview without bullets and numbers. See attached screenshot
for more details.

The reason is here:
https://opengrok.libreoffice.org/xref/core/cui/source/tabpages/numpages.cxx?r=71001798#2194

Notice that the color used as background of the output device is
GetFieldColor(), which in a dark theme is a dark color. Later in lcl_DrawBullet
we use this color to determine the bullet color:

aBulletColor = pVDev->GetFillColor().IsDark() ? COL_WHITE : COL_BLACK;

But since pDev is using a dark FieldColor, then COL_WHITE will be used over a
white background in the preview.

Since this is a preview of the document, we should instead use DOCCOLOR and
FONTCOLOR from svtools/colorcfg.hxx

System info

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: 50(Build:3)
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.5.0~rc3-0ubuntu0.22.10.1~lo1
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to