Score:1

google-chrome and chromium file picker don't pick the correct gtk theme

fr flag

I still wonder why this happens and does anyone have managed to find any workarounds for this issue. It's very annoying.

File picker or save dialog on google-chrome (111.0.5563.146) and chromium (111.0.5563.64): chromium

File picker and save dialog on Firefox, the correct theme one: firefox

Both chromium and google-chrome use proper GTK theme on their main windows, but not the file dialogs. chrome-prefs

My GTK theme supports GTK3 and GTK4. I am using Ubuntu 22.04.2 with GNOME 42.5 (X11).

This might not be the first time someone raises this issue up. I found some threads about this also on Xfce etc. Tried out all solutions, but I can't get one of them to work.

iamnytik avatar
ga flag
Can confirm this exact issue with both firefox and chromium(both being snap package and Version 112) .Can't replicate the issue on firefox .deb package.I'm running gnome 44
fsevenm avatar
fr flag
Mine, both are debian package. I kind of hating snap packages lol. But you can check my latest answer to this thread, not sure if it will work, specially on gnome 44.
Score:0
kw flag

I have the exact same issue on arch-xfce, only run into many dead ends, It seems to also be a recurring theme that the dialog is the thing dying on us. Another interesting behaviour I noted was that when i click save as something.html I would sometimes (rarely) get a random border. I am using a border theme called "border-only" and that causes the thing to go crazy!

I still have not found an answer.

This is most likely a gtk-chromium end issue tho :(.

I will try downgrading later.

Score:0
fr flag

Unfortunately, most likely there won't be any official fixes for this issue, at least for chrome. They are using libadwaita which GNOME applications are also switching to, does not comply with old style GTK theming.

But I found 2 ways to work around it. First one, to enforce it to use the old GTK style by setting up a global environment, GTK_THEME=<theme_name>. I found it from this thread. I am using this way as of now, I put the env key in my /etc/environment.

The other one, only if your GTK theme supports and has libadwaita styling. From this thread, it is possible to just symlink the styles to GTK4 configuration. For example, if using flat-remix-gtk theme, can do: ln -s /usr/share/themes/Flat-Remix-LibAdwaita-Red-Dark-Solid/* .config/gtk-4.0/ I also have tried this and it worked also.

Of course no guarantee both ways will work for you, and also depending on the GTK theme you are using, it might also look broken. So apply it with your own risk. I also need to restart my computer for it to take effect.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.