Aris-t2 / ClassicThemeRestorer

Classic Theme Restorer for Australis UI (Firefox/Waterfox/Basilisk versions 45.x-56.x only!)
Mozilla Public License 2.0
181 stars 36 forks source link

Can not change feed-button icon by CSS rule. #41

Closed Cye3s closed 9 years ago

Cye3s commented 9 years ago

I try to add this code to Stylish to change the RSS icon on URL bar: @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

feed-button .toolbarbutton-icon {

list-style-image:url("chrome://browser/skin/places/livemark-item.png") !important; -moz-image-region:rect(0 16px 16px 0) !important; }

But did not work (Windows 7, Firefox 37.0.2, Classic Theme Restorer 1.3.1.1)

Aris-t2 commented 9 years ago

The css rule is too weak to override CTRs default rule. Try this incl. /*AGENT_SHEET*/ line in Stylish:

/*AGENT_SHEET*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#urlbar #urlbar-icons #feed-button .toolbarbutton-icon {
  list-style-image:url("chrome://browser/skin/places/livemark-item.png") !important;
  -moz-image-region:rect(0 16px 16px 0) !important;
}

1

Cye3s commented 9 years ago

Thanks! It works well.