You are not logged in.

#1 2023-02-02 17:01:23

hyper-dot
Member
Registered: 2022-01-24
Posts: 8

[Solved] Filepicker of google-chrome is not following the gtk theme.

Hi everyone !
I am having issues with the themes of filepicker window. I am using Gruvbox Dark Border Less gtk theme. When the file picker is opened from Discord or Firefox it follows gtk theme and is dark. But when I open it from google chrome it is white. I tried using different themes but it didn't work. So I decided to post the issue here.

There are 3 folders in my .config folder related to gtk theme.

1. gtk-2.0
          - gtkfilechooser.ini
2. gtk-3.0
         - bookmarks
         - settings.ini
3. gtk-4.0 (empty folder)


My gtkfilechooser.ini

[Filechooser Settings]
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=270
GeometryY=123
GeometryWidth=825
GeometryHeight=549
SortColumn=name
SortOrder=ascending
StartupMode=recent

My settings.ini file in gtk-3.0

[Settings]
gtk-theme-name=Gruvbox-Dark-BL
gtk-icon-theme-name=Win11-dark
gtk-font-name=JetBrains Mono NL SemiBold 10
gtk-cursor-theme-name=WhiteSur-cursors
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintful

The bookmarks file is related to thunar which includes locations of different folders that I have bookmarked.

Note : When I tried to get detail of the window that I get when I open that filepicker from google chrome then its class was xdg-desktop-portal-gnome.

Last edited by hyper-dot (2023-02-02 17:13:54)

Offline

#2 2023-02-02 17:06:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,257

Re: [Solved] Filepicker of google-chrome is not following the gtk theme.

I'd assume the gnome portal picker defaults to GTK4 and you'd need to find a GTK4 theme that matches what you want.

Offline

#3 2023-02-02 17:10:18

hyper-dot
Member
Registered: 2022-01-24
Posts: 8

Re: [Solved] Filepicker of google-chrome is not following the gtk theme.

I found the solution ! I am using hyprland and I had accidently installed xdg-desktop-portal-gnome. So google-chrome's that instance was using that. I uninstalled it and installed only xdg-desktop-portal-wlr and xdg-desktop-portal-hyprland. And it worked !!

Offline

#4 2023-02-02 17:11:49

hyper-dot
Member
Registered: 2022-01-24
Posts: 8

Re: [Solved] Filepicker of google-chrome is not following the gtk theme.

V1del wrote:

I'd assume the gnome portal picker defaults to GTK4 and you'd need to find a GTK4 theme that matches what you want.


THank you for your suggestion.

I found what i wanted while writing this problem in detail ! I am using hyprland and I had accidently installed xdg-desktop-portal-gnome. So google-chrome's that instance was using that. I uninstalled it and installed only xdg-desktop-portal-wlr and xdg-desktop-portal-hyprland. And it worked !!

Offline

Board footer

Powered by FluxBB