Automatic font color remains black on Dark Mode

As stated in the title: the automatic font color remains black and is illegible against the dark page.

I’m using the following build on Ubuntu 24.04:

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded

I’m having the same issue on Fedora 42

Version: 25.2.4.3 (X86_64)
Build ID: 520(Build:3)
CPU threads: 16; OS: Linux 6.15; UI render: default; VCL: kf6 (cairo+wayland)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Please, try playing a bit with the options in Menu>Tools>Options>LibreOffice>Appearance

Thanks, @mariosv! I changed the font color there to a light one. However, the font color then does not automatically change to dark when highlighted with a lighter colour, as it used to do in previous builds.