[Libreoffice-bugs] [Bug 144863] New: Input components created in dark mode in Ubuntu retain dark mode properties when exported to PDF as a fillable form.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Oct 2 01:14:08 UTC 2021


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

            Bug ID: 144863
           Summary: Input components created in dark mode in Ubuntu retain
                    dark mode properties when exported to PDF as a
                    fillable form.
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: ksc3.14159 at gmail.com

Description:
(Don't know if this is technically a bug, but it certainly doesn't work as I
would expect.)  

When operating LibreOffice draw in dark mode I created several text boxes, but
by default they had a black background.  I did not realize at the time that
this was because I was in dark mode.  As I wanted a white background for my
text boxes, I manually changed the color.  However, after exporting the PDF and
attempting to fill out information, I found that the text entered turned a
light gray that was impossible to read.  In testing this bug, I experimented
with checkboxes to see if the problem was purely related to text boxes and
found that not only did the black background remain in the boxes, but an
invisible, light gray label was created - invisible on the white page
background until exported.  Then the entire rectangular background of the
checkbox component was filled in black, making the label legible.  I have not
tested radio buttons.

This may also affect other operating systems; someone should check that. 

Steps to Reproduce:
For text boxes:
1. Go into dark mode.
2. Click "Text Box" and create a text box.  Note:  Do NOT use F2 or use "Create
Text Box"!  That's the wrong kind.
3. Right click on text box and select "Control Properties..."
4. Change background color to white.  
5. Select [...] next to "Font".
6. Change tab to "Font Effects".
7. Check that the font color is black (or whatever your "Automatic" color is). 
This bug only seems to occur if the font color is set by "Automatic".  
8. Go to File -> Export As... -> Export as PDF....  Make sure "Create PDF Form"
is checked and press Export. 
9. (Optional) Return to standard or light mode.
10. Open PDF.
11. Type "Hi!" or some other input into the text box and press enter.

For check boxes:

1. Go into dark mode.
2. Create a check box.
3. Expand component rectangle to the right.
4. Repeat steps 8-10 above.

Actual Results:
For text boxes:

Light gray, nearly invisible text in white text box

For check boxes:

Dark gray background behind checkbox component in PDF which did not appear in
Draw.

Expected Results:
For text boxes:

Text in "Automatic" color (black, for me) in white text box.  

Ideally, I would not want Draw to default to dark gray backgrounds for new
input components just because I'm working in dark mode. 

For check boxes:

Dark gray background should have appeared in LibreOffice Draw, not only when
exported.  Label should be in the "Automatic" color as well.  

Alternatively, when exported, dark background should apply ONLY to the
checkbox, not to the label. 


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
If one changes the background color of the check box component to white, the
black background does not appear in the exported PDF.  This is why the first
expected result for check boxes is that the black background would appear in
LibreOffice Draw, not that it would NOT appear at all upon export.

However, the color of the checkbox itself does not change in Draw when its
background color is set to white; it remains dark gray. So if it is desirable
that only the checkbox change, not the label, then this latter issue is the
problem.  

(Personally I think I'd prefer it only changing the checkbox and not the label,
but that may not be how the program is intended to work.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20211002/ac50cfad/attachment.htm>


More information about the Libreoffice-bugs mailing list