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.)
(In reply to ksc3.14159 from comment #0) > 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. Addition to correct step 2 would be View - Toolbars - Form Controls. I reproduce. Arch Linux 64-bit Version: 7.5.0.0.alpha0+ / LibreOffice Community Build ID: ffc23650d988051bf9fe43edeb4e16096907b080 CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: gtk3 Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 19 October 2022
*** Bug 151935 has been marked as a duplicate of this bug. ***
Problem still exists and is independent of OS. I encountered the same problem in Writer on Win10.
As far as I can see we got these cases working with the fix for bug 150786 *** This bug has been marked as a duplicate of bug 150786 ***
(In reply to Caolán McNamara from comment #4) > As far as I can see we got these cases working with the fix for bug 150786 > > *** This bug has been marked as a duplicate of bug 150786 *** Last commit was 4 Oct while my repro was with a build from 19 Oct.
I wasn't able to reproduce with trunk, but could when I reverted the patch of the associated other issue
(In reply to Caolán McNamara from comment #6) > I wasn't able to reproduce with trunk, but could when I reverted the patch > of the associated other issue Possibly it's some additional patch committed in the past 7 days, because I still repro a black background in the text box when entering PDF form filling mode in Okular. Exported in safe mode, file created from scratch. I'll do a new build tomorrow. Arch Linux 64-bit Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 85a5233275ab83fe0d6b943b298695387d97accd CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: gtk3 Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 1 November 2022
Bah, sorry for the noise: it is just Okular's own dark mode kicking in. It doesn't matter if we create the form in light or dark mode in LibreOffice, Okular will adjust the box background depending on the colour theme. *** This bug has been marked as a duplicate of bug 150786 ***