Skip to content

This theme fixes titlebar min max close buttons for Firefox in linux.

License

Notifications You must be signed in to change notification settings

birbkeks/Firefox-Titlebar-Button-Fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

Firefox-Titlebar-Button-Fix

This theme fixes titlebar min max close buttons for Firefox on linux.

Table of contents

  1. What is this bug?
  2. How to install?
  3. Showcase
  4. Compatibility

What is this bug?

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)

How to install?

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.

image

  1. Go to Settings -> Extensions & Themes and change the theme to anything other than "System theme — auto".
  2. Enable toolkit.legacyUserProfileCustomizations.stylesheets from about:config,
    otherwise Firefox will ignore userChrome.css file.
  3. Create chrome folder inside of your profile directory.
  4. Download userChrome.css from releases.

Important

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.
  1. Drag and drop userChrome.css into the chrome folder you made.
  2. Restart the browser.

Showcase

Default Dark theme


Firefox-GX Theme

Compatibility

Compatibility with other userChrome.css themes

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!

Compatibility with Desktop Environments

I tested this on only KDE.

About

This theme fixes titlebar min max close buttons for Firefox in linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published