Bug 164838 - Broken Dark Application Theme (Flatpak build)
Summary: Broken Dark Application Theme (Flatpak build)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
24.8.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Sahil Gautam (allotropia)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UI-Theming
  Show dependency treegraph
 
Reported: 2025-01-24 08:19 UTC by domspar500
Modified: 2025-03-09 14:43 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Dark text on dark page on dark background (190.69 KB, image/png)
2025-02-10 09:55 UTC, Feike
Details
some elements don't play ball (110.23 KB, image/png)
2025-02-10 10:02 UTC, Feike
Details
pre-print example, afdrukvoorbeeld, does something funky (100.61 KB, image/png)
2025-02-10 10:06 UTC, Feike
Details

Note You need to log in before you can comment on or make changes to this bug.
Description domspar500 2025-01-24 08:19:47 UTC
Description:
Dark application theme won't work anymore. It's always light (except for the icons). 

Steps to Reproduce:
1.Set LibreOffice to automatic theme
2.Enable dark system theme
3.Open LibreOffice

Actual Results:
The icons change to the dark theme, but the toolbar and all UI elements are light. 

Expected Results:
Should be dark like it was before


Reproducible: Always


User Profile Reset: No

Additional Info:
This is only a problem with the Flatpak. Before the Flatpak never had a problem with the dark theme. I switched to the Snap (v. 24.8.3.2) because the dark theme works there. I prefer Flatpaks though. 
Also, I'm running Ubuntu 24.10 with up-to-date at time of writing.
Comment 1 Feike 2025-02-10 09:52:36 UTC
When I reproduce:
1.A. set the Libreoffice theme to automatic
1.B. close Libreoffice
2. enable dark system theme in Cosmic-settings
3. re-open libreoffice

Actual result:
The ui ellements are in white theme, but the page is totally black. The background is black and the text written is black. So, I isn't written "black-on-white" but "black-on-black" → un-usable!
Comment 2 Feike 2025-02-10 09:55:19 UTC
Created attachment 199102 [details]
Dark text on dark page on dark background
Comment 3 Feike 2025-02-10 10:02:17 UTC
Created attachment 199103 [details]
some elements don't play ball
Comment 4 Feike 2025-02-10 10:03:28 UTC
So I changed the settings back to light theme, because of the bug, but some elements don't play ball...
Comment 5 Feike 2025-02-10 10:06:06 UTC
Created attachment 199104 [details]
pre-print example, afdrukvoorbeeld, does something funky
Comment 6 Feike 2025-02-10 10:07:15 UTC
When I close pre-print example, (afdrukvoorbeeld), the page is black on black again...
Comment 7 Sahil Gautam (allotropia) 2025-02-11 10:04:14 UTC
@Feike can you reproduce this issue on some desktop environment other than cosmic desktop env? i have been trying to reproduce this for the last three hours, but no luck. i use void linux with DWM, so I installed gnome to test it. after many attempts with gnome's settings, lxappearance, nwg-look, i couldn't change the desktop env theme to light theme, i tried kde-plasma, and changing the DE theme to light doesn't change the flatpak application's theme (which is expected as flatpak LO uses gtk whereas plasma is qt based).

then i tried to reproduce it in an ubuntu vm, no luck there either. will try it again in my free time later :). tagging @buovjaga.
Comment 8 VBB 2025-03-07 12:23:15 UTC
I can reproduce it on fedora workstation. I also filled this issue in flathub repo: https://github.com/flathub/org.libreoffice.LibreOffice/issues/316
Comment 9 Sahil Gautam (allotropia) 2025-03-07 12:50:37 UTC
(In reply to VBB from comment #8)
> I can reproduce it on fedora workstation. I also filled this issue in
> flathub repo:
> https://github.com/flathub/org.libreoffice.LibreOffice/issues/316

I recently fixed this issue for other platforms (patch https://gerrit.libreoffice.org/c/core/+/182263). the fix will be out in the next release of 25.2. I am yet to test it for flatpak (if this patch solves the issue for flatpak or not)