Bug 151936 - Changing text color of form control (textbox) doesn't work
Summary: Changing text color of form control (textbox) doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Effects Form-Controls
  Show dependency treegraph
 
Reported: 2022-11-06 16:57 UTC by tobyps
Modified: 2024-09-15 16:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
textfield with buggy colorpicker (9.22 KB, application/vnd.oasis.opendocument.text)
2022-11-22 07:26 UTC, tobyps
Details
dark UI and dark background needed to see strange color picker behavior (26.30 KB, image/png)
2022-11-23 13:45 UTC, tobyps
Details
Video of Steps to Reproduce (1.38 MB, video/x-matroska)
2022-11-26 09:46 UTC, tobyps
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tobyps 2022-11-06 16:57:14 UTC
Description:
As I use Dark Mode I have to manually change the font color to get the correct colors in pdf.

Changing the color from standard (due to dark mode this ist white in writer) to black does not change anything. Instead I have to change it to another color eg red and then to black. Then the change takes effect.

I found this workaround here: 
https://ask.libreoffice.org/t/change-text-color-of-form-input-field/60520

But I consider this a Bug, and as I didn't find it here, I opened this.

Steps to Reproduce:
1.create a field in writer (dark Mode necessary?)
2. change the color


Actual Results:
color does not change

Expected Results:
color should change 


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 Dieter 2022-11-22 07:00:45 UTC
Thank you for reporting the bug. Could you please specify the step "create a field in writer", because in summary you say, it' a "form inputfield". That seems to be something different than a field, inserted with Insert -> Field

=> NEEDINFO
Comment 2 tobyps 2022-11-22 07:26:11 UTC
Created attachment 183712 [details]
textfield with buggy colorpicker

Hi,
it's "Formular" (form) -> "Textfeld" (text field or form inputfield).
As I'm using german I don't know the official translation.

I also added an example, so you can see which field I use.

The font color ist indicated as black but in Dark Mode it is white.
But changing then to automatic background or picking black again doesnt change the color until you picked a different color eg red.

I hope this helps.
Comment 3 Dieter 2022-11-22 21:08:05 UTC
Steps to reproduce
1. Options -> LibreOffice -> Application Colors ->  Scheme "LibreOffice Dark" -> OK
2. Open attachment 183712 [details] -> Background of Form Control is white (= default), font is black

Not sure, if background should be black and font color white, but I can't confirm the problem you decribe. It's also not a problem to change to a different color or back to automatic (perhaps with problem described in bug 132827).

So perhaps, I have wrong steps or perhaps your user profile is corrupted. Please test in SafeMode.
Comment 4 tobyps 2022-11-23 13:45:44 UTC
Created attachment 183733 [details]
dark UI and dark background needed to see strange color picker behavior

Hi, 
I can reproduce the behavior in a fresh Win11 VM and new LO install.

But I wasn't clear on the settings.

Dark UI ist necessary but so is activating the experimental settings and also change the "Anwendungsfarben" (Programcolors?) to dark.

I attach a Screenshot so you can see my setup.

Then creating the textbox, writing something in it (makes it easier to see the behavior), and then trying to change the color shows my problem. 
The color picker starts with black though the current color is white and unless you change to another color apart from black he doesn't take the black color.

Hope this helps
Comment 5 Dieter 2022-11-24 20:55:51 UTC
I've tried again with following steps:
1. Change to Windows dark modus
2. Tools -> Options -> Personalisation -> Dark Theme
3. Tools -> Options -> Application Colours -> Scheme "LibreOffice Dark"
4. Open attachment 183733 [details]
5. In Form controls toolbar activate Design Mode
6. Select textbox -> Control properties (contect menu) -> Change background colour to black and font colour to white
7. Deactivate Desingn Mode and write some text; text is white (expected)
8. Activate Design Mode
6. Select textbox -> Control properties (contect menu) -> font colour to a black -> works as expected

Please correct my steps, if they're wrong.
Comment 6 tobyps 2022-11-26 09:46:29 UTC
Created attachment 183802 [details]
Video of Steps to Reproduce

Hi,
I think you missed one step, activating the experimental features. 
Without them I don't get the UI completely dark.

I attached a small screengrab, hope it works.
Comment 7 Dieter 2022-11-27 13:29:42 UTC
Thank you for the screencast. That helped. I confirm it with

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

1. Change to Windows dark modus
2. Tools -> Options -> LibreOffice -> View -> Icon Theme Breeze (SVG + Dark) -> Apply
3. Tools -> Options -> Application Colours -> Scheme "LibreOffice Dark" -> Apply -> OK
4. Tools -> Options -> LibreOffice -> Advanced -> Enable experimental features -> Restart
5. In form control menu or toolbar activate designe mode and add textbox
6. Leave design mode and add some text (text is white)
7. Activate design mode and select textbox -> Control properties (context menu) -> Font -> Font Effects: font colour is black (for me not expected)
8. Select font colour black => OK

Actual result
Font colour is still white

Expected result
Font Colour changes to black

Workaround:
9. Font -> Font Effects -> Select font colour red => OK. (Result: Text is now red; expected)
10. Font -> Font Effects -> Select font colour black => OK: (Result: Text is now black; expected)
Comment 8 Buovjaga 2024-09-15 15:47:04 UTC
(In reply to Dieter from comment #7)
> Thank you for the screencast. That helped. I confirm it with
> 
> Version: 7.4.3.2 (x64) / LibreOffice Community
> Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
> CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL:
> win
> Locale: de-DE (de_DE); UI: en-GB
> Calc: CL
> 
> 1. Change to Windows dark modus
> 2. Tools -> Options -> LibreOffice -> View -> Icon Theme Breeze (SVG + Dark)
> -> Apply
> 3. Tools -> Options -> Application Colours -> Scheme "LibreOffice Dark" ->
> Apply -> OK
> 4. Tools -> Options -> LibreOffice -> Advanced -> Enable experimental
> features -> Restart
> 5. In form control menu or toolbar activate designe mode and add textbox
> 6. Leave design mode and add some text (text is white)
> 7. Activate design mode and select textbox -> Control properties (context
> menu) -> Font -> Font Effects: font colour is black (for me not expected)
> 8. Select font colour black => OK

Not reproduced on Linux at least, please re-test. At step 6 text is black.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fb39ae1bc7e4b1cbfc3108efca52ec310faf7363
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 14 September 2024
Comment 9 Dieter 2024-09-15 16:51:59 UTC
(In reply to Buovjaga from comment #8)
> Not reproduced on Linux at least, please re-test. At step 6 text is black.

Yes, RESOLVED WORKSFORME

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6c640ee2662318f32a22d8293ad7498109681933
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded