Firefox UserChrome

I don’t like the look of the new Proton theme in Firefox. So I’ve created the following userChrome.css to make it look a bit nicer. This theme is based heavily on https://github.com/Tnings/MacosVibrant with changes to make it look nice in non-Mac systems. Basically, I removed the transparency, set the inactive tables to have no background to make it easier to see the active tab, and modified some spacing issues.

Bugs: I’ve noticed that the bookmark toolbar sometimes does not recenter itself when a tab is closed.

To first tell Firefox to look for user stylesheets, type about:config in the URL bar and press the “Accept the Risk and Continue” button. Start typing toolkit.legacyUserProfileCustomizations.stylesheets and then just set it to true by double-clicking on it or pressing the two arrow button on the right.

To install, go to your Firefox profile folder by typing “about:support” in the URL bar and clicking on the Open Directory button in the Profile Directory row. Create a folder name chrome and inside that folder add the following text to a new file named userChrome.css

/* Based on MacosVibrant by Tnings https://github.com/Tnings/MacosVibrant  */

#main-window
{
    /*background: transparent !important;*/
}

#TabsToolbar,
.table-widget-empty-text
{
    -moz-appearance: -moz-mac-vibrant-titlebar-light !important;
 }

#TabsToolbar:-moz-lwtheme-brighttext,
.table-widget-empty-text:-moz-lwtheme-brighttext
{
    -moz-appearance: -moz-mac-vibrant-titlebar-dark !important;
 }

.tabbrowser-tab[selected="true"] .tab-label:-moz-lwtheme-brighttext
{
    color:white !important;
}

.tabbrowser-tab .tab-label:-moz-lwtheme-brighttext
{
    color:rgba(255,255,255,0.7) !important;
}


.tabbrowser-tab[selected="true"] .tab-background:-moz-lwtheme-brighttext
{
    box-shadow: inset 0em -4em 0em var(--toolbar-bgcolor) !important;
}

#navigator-toolbox {
    background-color: transparent !important;
}

/* menubar + bookmarks */

:root #nav-bar,
#PersonalToolbar,
#titlebar
{
 -moz-appearance: -moz-mac-vibrant-titlebar-dark !important;
 -moz-font-smoothing-background-color: -moz-mac-vibrant-titlebar-dark !important;
}

#TabsToolbar, #nav-bar, #PersonalToolbar {
 -moz-appearance: -moz-mac-vibrancy-dark !important;
}

/* simplify tabs */

#titlebar #TabsToolbar {
	padding: 0px 0px 0px 0px !important;
	background: rgba(var(--accent-color), 1) !important;
}
.titlebar-spacer[type="pre-tabs"] {
	/* border: 0 !important; */
	display: none;
}

#tabbrowser-tabs:not([movingtab]) > .tabbrowser-tab[beforeselected-visible]::after, #tabbrowser-tabs[movingtab] > .tabbrowser-tab[visuallyselected]::before, .tabbrowser-tab[visuallyselected]::after {
    opacity: 0 !important;
}
.tab-line {
    height: 0px !important;
}

.tabbrowser-tab {
    margin-right: 7px !important;
    /* margin-left: 4px !important; */
}
.tabbrowser-tab:not([visuallyselected="true"]), .tabbrowser-tab:-moz-lwtheme {
  background-color: #33333300 !important;
}

.tabbrowser-tab:not([selected="true"]):not([multiselected="true"]) .tab-background {
  opacity: 0 !important;
} 

tab[selected="true"] .tab-content {

}
tab[selected="true"] .tab-background {

}

.tabbrowser-tab::after, .tabbrowser-tab::before {
    border-left: 0 !important;
    opacity: 0 !important;
}

.tab-close-button {
	transition: all 0.3s ease !important;
  border-radius: 30px !important;
  transform: translate(-3px,0px);
}
.tab-close-button:hover {
    fill-opacity: 0.2 !important;
}

.tabbrowser-tab > .tab-stack > .tab-background {
	border-radius: 50px !important;
}
.tabbrowser-tab > .tab-stack > .tab-background:not([selected="true"]) {
	transition: all 0.3s ease !important;
}
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected="true"]) {
    border-color: #000 !important;
    border-color: rgba(0,0,0, 1) !important;
}


/* urlbar */
#urlbar-background
{
    margin-top: 0px !important;
    margin-bottom: 0px !important;

    padding: 1px !important;

    background: #404040 !important;
    box-shadow: inset 0px 0px 1px 0px #e3e3e3 !important;
    border-radius: 30px !important;
    border-color: #1a1a1a !important;
}

#urlbar:-moz-lwtheme, #navigator-toolbox #searchbar:-moz-lwtheme
{
    color: #FFFFFF !important;
}

/* bookmarks */
.bookmark-item{
  border-radius: 30px !important;
  transform: translate(0,-1px);
}

.bookmark-item:hover{
  background-color: transparent !important;
}

.bookmark-item > .toolbarbutton-icon
{

  display: flex !important;
  justify-content: center !important;

	border-radius: 100% !important;
	padding: 6px !important;
	height: 28px !important;
	width: 28px !important; 
	color: #f9f9fb !important;
	background-color: rgba(80,80,80,0.1) !important;

  transition-property: background-color;
  transition-duration: 0.5s;

}

.bookmark-item:hover > .toolbarbutton-icon
{
	background-color: rgba(100,100,100,0.9) !important;
}

.bookmark-item:active
{
	color: rgba(160,160,160,0.9) !important;
}

#tabs-newtab-button .toolbarbutton-icon {
  border-radius: 30px !important;

  transition-property: background-color;
  transition-duration: 0.5s;
}

#tabs-newtab-button:hover .toolbarbutton-icon {
  background-color: rgba(130,130,130,0.5) !important;
}

#tabs-newtab-button:active .toolbarbutton-icon {
  background-color:  rgba(180,180,180,0.7) !important;
  color: rgba(110,110,110,0.7) !important;
}

.toolbarbutton-badge-stack{
  border-radius: 30px !important;
}

#tracking-protection-icon-container{
  border-radius: 30px !important;
}

#identity-icon-box{
  border-radius: 30px !important;
}

#identity-permission-box{
  border-radius: 30px !important;
}

#star-button-box{
  border-radius: 30px !important;
}

#reload-button{
   border-radius: 30px !important;
}

#notification-popup-box{
  border-radius: 30px !important;
}

#back-button:hover{
  border-radius: 30px !important;
}

#forward-button:hover{
  border-radius: 30px !important;
}

#PlacesToolbarItems {
  display: flex !important;
  justify-content: center !important;
}

tab[pending], #alltabs-popup menuitem[pending] {
  background-color:  rgba(80, 80, 80,0.3)  !important;
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s