44

How to switch back to Firefox' old style of tabs?

 3 years ago
source link: https://superuser.com/questions/1653533/how-to-switch-back-to-firefox-old-style-of-tabs/1669549#1669549
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
How to switch back to Firefox' old style of tabs?

Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.

Sign up to join this community

Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked 2 months ago
Active 2 days ago
Viewed 18k times

The recent update (89 I think) causes all tabs to render in the same continuous shading, which makes it somehow more difficult to spot each tab's start and end (regardless of the favicon, I'm sorry, silly old proper borders just were easier on my eyes). How do I get that back? I tried this related answer's browser.proton.enabled=false to no avail, and re-enabling compact mode also did only partially restore the previous look and feel. How can I get good old tab shading and borders back?

asked Jun 3 at 19:30

In Firefox 91, restore the old tab style as follows:

  1. Open about:config.

  2. Search for toolkit.legacyUserProfileCustomizations.stylesheets.

  3. Double-click the value to set it to true.

  4. Open about:support.

  5. Search for Profile Directory (or Profile Folder).

  6. Click Open Directory (or Open Folder).

  7. Create a directory named chrome.

  8. Navigate into the chrome directory.

  9. Create a new file inside chrome named userChrome.css.

  10. Copy and paste the following code into userChrome.css:

     .tab-background {
       border-radius: 0px 0px !important;
       margin-bottom: 0px !important;
     }
    
     .tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
       background-color: color-mix(in srgb, currentColor 5%, transparent);
     }
    
     menupopup>menu,
     menupopup>menuitem {
       padding-block: 2px !important;
     }
    
     :root {
       --arrowpanel-menuitem-padding: 2px !important;
     }
    
  11. Save the file.

  12. Restart Firefox.

The old tab style is restored.

answered 2 days ago

Not surprisingly I'm not the only one disliking this, and fortunately there's already a fix called Lepton at https://github.com/black7375/Firefox-UI-Fix#installation-guide. It still doesn't feel 100% proper, but so much better already with simple tab separators.

answered Jun 3 at 19:43

Setting browser.proton.enabled to false in about:config did work for me.

answered Jun 8 at 13:26

Using userChrome.css. you can easily customize many aspects of Firefox. In the example below, inactive tabs are uniformly gray, the active tab is a gradient ascending from red to green, and the tab over which the cursor hovers is a gradient from light to dark gray.

  • Open your Firefox profile.

    • In Linux, Home\.mozilla\firefox\xxxxxxxx.default
    • In Windows, C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default
    • Mac OS, Users/<username>/Library/Application Support/Firefox/Profiles/xxxxxxxx.default.
  • If there is no folder Chrome, create it.

  • If there is no file userChrome.css in that folder, create it as a text document, i.e. with Notepad, Notepad++, or other text editor.

  • Copy and paste text below and save the file. (If you're editing an existing userChrome.css and the @namespace line exists, there's no need to duplicate it.)

  • Close and restart Firefox to see the new tab style.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    
    /* Tab: selected colors */
    #tabbrowser-tabs .tabbrowser-tab[selected] .tab-content { background: linear-gradient(to bottom,#AAFFAA,#FFAAFF) !important; }
    
    /* Tab: hovered colors */
    #tabbrowser-tabs .tabbrowser-tab:hover:not([selected]) .tab-content { background: linear-gradient(to bottom,#808080,#FFFFFF) !important; }
    

Feel free to modify the appearance to your taste. The style sheet code is easy to understand by inspection, and mistakes do no harm - just remove them and restart Firefox. See Mozilla here and here, for example, on tab coloring.

answered Jun 3 at 23:30

Your Answer

Sign up or log in

Sign up using Google
Sign up using Facebook
Sign up using Email and Password

Post as a guest

Name
Email

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged firefox tabs border ux or ask your own question.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK