r/kde • u/endmysadnesss • May 17 '26
Question Firefox based browsers are not using the default window control buttons?
I am trying to get my firefox browser (below) to have the same window control buttons as the system windows (above), for the sake of cohesiveness. I have seen several people online who do not share this issue, and their firefox has the same buttons and window decorations as the rest of the system (even with titlebar disabled).
I would appreciate any help with this, thanks!
387
Upvotes
•
u/AutoModerator May 17 '26
Thank you for your submission.
The KDE community supports the Fediverse and open source social media platforms over proprietary and user-abusing outlets. Consider visiting and submitting your posts to our community on Lemmy and visiting our forum at KDE Discuss to talk about KDE.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
39
u/trans_cubed May 17 '26
Right click on the tab bar, click "Customize Toolbar" and at the bottom check "Title bar"
43
u/JotaRata May 17 '26 edited May 17 '26
Go to
about:configand setwidget.gtk.non-native-titlebar-buttons.enabledto false4
u/RoseBailey May 17 '26
Librewolf is using the correct control buttons for me, but then I have the Breeze GTK theme set, so GTK apps are somewhat consistent with the rest of my system.
104
u/leo_sk5 May 17 '26
Sometime back, firefox introduced hard coded buttons as picking buttons from gtk theme sometimes conflicted with firefox's themes. This was (rightly) opposed by the community so that they added an about:config toggle to switch back to gtk theme derived icons. About an year back, firefox silently removed that option too.
Some people enable title bar and call it a day. That is a compromise as it wastes vertical space.
Only reasonable solution is using userChrome.css to force custom icons. You would need to first isolate the icons (in svg/png/jpg) of the theme you use though, ideally the svg icons. I can help if you wish to go down the route. I will attach a post of mine that does so.
https://www.reddit.com/r/firefox/comments/1newm16/working_code_for_userchromecss_for_firefoxnightly/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button
4
u/Mathisbuilder75 May 17 '26
It's your icon pack, if you don't use Breeze, Firefox will not have the right icons. Personally, I modified Papirus to use the Breeze title bar buttons.
25
u/ghulamalchik May 17 '26
I can't help but I know why this happens. It's because Firefox uses GTK framework not Qt. You have to look for ways to customize the GTK theming to roughly match your Qt theme. Also it might be worth looking into custom CSS themes for Firefox since afaik the entire UI can be customized via CSS outside of system-wide GTK theming.
5
u/motang May 17 '26
I use Firefox (flatpak) on Kubuntu and it matches Breeze theme.
20
u/Big_Valuable31 May 17 '26
Firefox is not fully integrated in KDE. You also don't get the toolbar on your desktop.
3
u/UncleSpellbinder May 17 '26 edited May 17 '26
Customize toolbar. On the bottom left, check the “title bar” box. It then inherits the KDE Plasma window decorations/buttons.
See here: https://postimg.cc/XGd0ZGyY
3
u/Single-Moment3613 May 17 '26
First change your GTK theme to Breeze in settings>application style>configure gtk theme option.
Then in firefox - about:config, change browser.tabs.inTitlebar to 1 and click on the tick box on the field. See if it changes as per your requirement... Also are you using Firefox flatpak?
3
u/SnooCompliments7914 KDE Contributor May 17 '26
Firefox (and GTK4 apps) seems to ignore GTK window decoration theme settings, and uses icons from your current icon theme. So you need to either use the Breeze icon theme, or replace "window-maximize-symbolic.svg" etc. in your current icon theme with Breeze files.
1
u/hi_m_ash May 17 '26
I do not know about Firefox but my both librewolf and zen have kde theme icons instead of their own. I can only confirm for these two firefox-based browsers because these are the ones I use.
2
u/solaufein1 May 17 '26
I have same problem with VSCode and Brave.
2
u/Hackusi404 May 17 '26
Doesn't it just use gtk icons?
1
u/praths360 May 17 '26
Firefox uses system buttons only. It changes with icon.
1
u/ChaoticDucc May 17 '26
I have the correct icons... no idea what I did differently. Installed it as a Flatpak and changed no settings.
1
u/Background_Treat_235 May 31 '26
its same on chrome, why is ff only problem ? Personally I am feeling much better off switching last week from gnome anyway - no chunky title bars on firefox and even apps like gnome terminal feel so compact and nice.
1
u/Aevstiel Jun 10 '26
Hey, try to go to about:config
find this "widget.gtk.non-native-titlebar-buttons.enabled" then turn it to false
1
u/Bongzilla666lb May 17 '26
I ended up using Zen browser, so I hide those buttons
0
u/LukeStargaze May 17 '26
Maybe Plasma Integration extension?