This theme fixes titlebar min max close buttons for Firefox on linux.
If you put your cursor at the very top right corner, titlebar close button doesn't get selected unlike every other browser, or Firefox on Windows 7/8/10/11 etc.
(none of the chromium based browsers have this problem on linux)
Unfortunately this fix has two different versions for different browsers based on Firefox.
Please make sure to download the right files.
You can find your profile directory from about:support
.
- Go to Settings -> Extensions & Themes and change the theme to anything other than "System theme — auto".
- Enable
toolkit.legacyUserProfileCustomizations.stylesheets
fromabout:config
,
otherwise Firefox will ignore userChrome.css file. - Create
chrome
folder inside of your profile directory. - Download userChrome.css from releases.
Important
- Make sure to download userChrome.css file for the right browser!
- userChrome.css file is different for Firefox & LibreWolf and Waterfox, Floorp, GNU IceCat & Ghostery!
Note
- On Floorp you also need to change a another option from Settings -> Design -> Browser appeareance and choose something other than "Firefox Photon・Lepton UI" and "GNOME Theme (deprecated)"
- Palemoon is not supported because it only uses your system's titlebar.
- Discontinued Firefox based browsers like Cliqz are also not supported.
- Drag and drop userChrome.css into the chrome folder you made.
- Restart the browser.
Firefox-GX Theme
I only tested this fix with Firefox-GX and it works great but you need to copy all of the userChrome.css code from this repo and paste it into Firefox-GX's userChrome.css file.
It should look something like this:
<-- Paste Firefox-Titlebar-Button-Fix code here -->
/* ############# Required files ############## */
@import url('components/ogx_root.css');
@import url('components/ogx_root-personal.css');
@import url('components/ogx_containers.css');
@import url('components/ogx_tabs-bar.css');
@import url('components/ogx_urlbar-searchbar.css');
@import url('components/ogx_windows-controls.css');
@import url('components/ogx_customize-styles.css');
@import url('components/ogx_sound.css');
@import url('components/ogx_arrowpanel.css');
@import url('components/ogx_contextual-menu.css');
@import url('components/ogx_notifications.css');
@import url('components/ogx_close-button.css');
@import url('components/ogx_button-styles.css');
@import url('components/ogx_library.css');
@import url('components/ogx_menu.css');
@import url('components/ogx_icons.css');
/* ############## Extra Files ############### */
@import url('components/ogx_left-sidebar.css');
@import url('components/ogx_oneline.css');
@import url('components/ogx_tab-shapes.css');
@import url('components/ogx_tree-tabs.css');
@import url('components/ogx_autohide_bookmark-bar.css');
@import url('components/ogx_main-image.css');
/* ############# Your Personal File ############## */
@import url('components/ogx_tricks.css');
Do not use this code because Firefox-GX's code might be different in the future!
I tested this on only KDE.