Closed Bug 1945666 Opened 6 months ago Closed 5 months ago

Firefox snap does not respect themes in Kubuntu

Categories

(Core :: Widget: Gtk, defect)

Firefox 131
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: jtd.burton, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

Set up a new installation of Kubuntu, which comes with the snap version of Firefox preloaded. Applied the "Breeze" theme in system settings.

Actual results:

Firefox, and only Firefox, continues to use the default theme for mouse cursors and minimise/maximise/close buttons.

There is some discussion of this issue and a partial solution here: https://www.reddit.com/r/Ubuntu/comments/1g2x6b4/firefox_snap_falling_back_to_aidwata_cursor_theme/

Running sudo snap connect firefox:icon-themes icon-theme-breeze solved the cursor issue, but window management buttons remain unthemed.

Expected results:

Firefox should respect GUI themes like other applications.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Should this connection be done automatically?

Flags: needinfo?(seb128)
Flags: needinfo?(nathan.teodosio)

I started a Kubuntu ISO and collected the output attached above, where we can see that although gtk-theme-breeze is installed, it is gtk-common-themes that is connected by default.

As unfortunately Gnome is the default Ubuntu desktop, that makes sense. I do not think there is a way for Snap to connect to different theme related snaps depending on the desktop in use, but I'll ask around.

Firefox, and only Firefox, continues to use the default theme for mouse cursors and minimise/maximise/close buttons.

That is not really true, any snap will continue to use the default theme for mouse cursors. As for the window buttons, that only happens if Firefox is set to take over the title bar, which you can disable by clicking with the right mouse button in the title bar, then choosing "customize toolbar" and selecting the "title bar" check-box.

If I understand correctly, the behavior with the title bar un-checked is dictated by the client side decorations, abbreviated CSD, and then that's on Firefox. I reckon since Firefox is built with GTK it uses Gnome's CSD and that's why the window buttons in that case won't match your system's. (On the other hand does that mean that every program have to choose what CSD style it will use? That can't be right, I'll ask around too.)

Flags: needinfo?(nathan.teodosio)

On Launchpad's side: https://bugs.launchpad.net/systemsettings/+bug/2100478

As there is nothing upstream Firefox can do about this I think the bug should be closed in this tracker.

Status: UNCONFIRMED → RESOLVED
Closed: 5 months ago
Flags: needinfo?(seb128)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: