ff124 fixes
- fix scrollbar coloring - fix resizer coloring (moved to script) - fix menubar menu items not being offset when open - fix missing inset border on open bookmarks bar folders
This commit is contained in:
		
							parent
							
								
									ccae90fb3e
								
							
						
					
					
						commit
						842c8e9446
					
				
					 3 changed files with 211 additions and 151 deletions
				
			
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										31
									
								
								chrome/resizer.uc.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								chrome/resizer.uc.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,31 @@
 | 
				
			||||||
 | 
					(() => {
 | 
				
			||||||
 | 
					  const colorKeys = ["ThreeDFace", "ThreeDShadow", "ThreeDHighlight"];
 | 
				
			||||||
 | 
					  const colors = (() => {
 | 
				
			||||||
 | 
					    const colors = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const elem = document.createElement("div");
 | 
				
			||||||
 | 
					    document.body.appendChild(elem);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    for (const key of colorKeys) {
 | 
				
			||||||
 | 
					      elem.style.color = key;
 | 
				
			||||||
 | 
					      colors[key] = window.getComputedStyle(elem).color;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    document.body.removeChild(elem);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return colors;
 | 
				
			||||||
 | 
					  })();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  const css = `#main-window:not([sizemode="maximized"]) #browser-bottombox::after {
 | 
				
			||||||
 | 
					  background-image: url('data:image/svg+xml,<svg width="13" height="13" version="1.1" viewBox="0 0 3.4396 3.4396" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g><g><rect x="2.9104" y="0.0000" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.6458" y=".26458" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.3812" y=".52917" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.1167" y=".79375" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.8521" y="1.0583" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.5875" y="1.3229" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.3229" y="1.5875" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.0583" y="1.8521" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x=".79375" y="2.1167" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x=".52917" y="2.3812" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x=".26458" y="2.6458" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="0.0000" y="2.9104" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.9104" y=".26458" width=".26458" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.6458" y=".52917" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.3812" y=".79375" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.1167" y="1.0583" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.8521" y="1.3229" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.5875" y="1.5875" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.3229" y="1.8521" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.0583" y="2.1167" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x=".79375" y="2.3812" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x=".52917" y="2.6458" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x=".26458" y="2.9104" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.9104" y="1.0583" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.6458" y="1.3229" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.3812" y="1.5875" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.1167" y="1.8521" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.8521" y="2.1167" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.5875" y="2.3812" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.3229" y="2.6458" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="1.0583" y="2.9104" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.9104" y="1.3229" width=".26458" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.6458" y="1.5875" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.3812" y="1.8521" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.1167" y="2.1167" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.8521" y="2.3812" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.5875" y="2.6458" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="1.3229" y="2.9104" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.9104" y="2.1167" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.6458" y="2.3812" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.3812" y="2.6458" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.1167" y="2.9104" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x="2.9104" y="2.3812" width=".26458" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.6458" y="2.6458" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="2.3812" y="2.9104" width=".52917" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="3.1750" y="0.0000" width=".26458" height="3.4396" fill="${colors.ThreeDFace}"/><rect x="0.0000" y="3.1750" width="3.1750" height=".26458" fill="${colors.ThreeDFace}"/></g></g></svg>');
 | 
				
			||||||
 | 
					}`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(
 | 
				
			||||||
 | 
					    Ci.nsIStyleSheetService,
 | 
				
			||||||
 | 
					  );
 | 
				
			||||||
 | 
					  const uri = Services.io.newURI(
 | 
				
			||||||
 | 
					    "data:text/css;charset=UTF=8," + encodeURIComponent(css),
 | 
				
			||||||
 | 
					  );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
 | 
				
			||||||
 | 
					})();
 | 
				
			||||||
| 
						 | 
					@ -1,148 +1,172 @@
 | 
				
			||||||
(function () {
 | 
					(function () {
 | 
				
			||||||
  var css = `@media all and (-moz-overlay-scrollbars) {
 | 
					  const colorKeys = [
 | 
				
			||||||
      scrollbar[root="true"] {
 | 
					    "ThreeDFace",
 | 
				
			||||||
          position: relative;
 | 
					    "ThreeDShadow",
 | 
				
			||||||
          z-index: 2147483647;
 | 
					    "ThreeDDarkShadow",
 | 
				
			||||||
      }
 | 
					    "ThreeDLightShadow",
 | 
				
			||||||
 | 
					    "ThreeDHighlight",
 | 
				
			||||||
 | 
					    "ButtonText",
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					  const colors = (() => {
 | 
				
			||||||
 | 
					    const colors = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      scrollbar:not([active="true"]),
 | 
					    const elem = document.createElement("div");
 | 
				
			||||||
      scrollbar[disabled="true"] {
 | 
					    document.body.appendChild(elem);
 | 
				
			||||||
          visibility: hidden;
 | 
					
 | 
				
			||||||
      }
 | 
					    for (const key of colorKeys) {
 | 
				
			||||||
 | 
					      elem.style.color = key;
 | 
				
			||||||
 | 
					      colors[key] = window.getComputedStyle(elem).color;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    document.body.removeChild(elem);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    return colors;
 | 
				
			||||||
 | 
					  })();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  const css = `@media all and (-moz-overlay-scrollbars) {
 | 
				
			||||||
 | 
					  scrollbar[root="true"] {
 | 
				
			||||||
 | 
					      position: relative;
 | 
				
			||||||
 | 
					      z-index: 2147483647;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbar
 | 
					  scrollbar:not([active="true"]),
 | 
				
			||||||
  {
 | 
					  scrollbar[disabled="true"] {
 | 
				
			||||||
      color-scheme: light !important;
 | 
					      visibility: hidden;
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					 | 
				
			||||||
      -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
 | 
					 | 
				
			||||||
      cursor: default;
 | 
					 | 
				
			||||||
      min-width: 16px !important;
 | 
					 | 
				
			||||||
      background-color: ThreeDHighlight !important;
 | 
					 | 
				
			||||||
      opacity: 1 !important;
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  thumb
 | 
					scrollbar
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      color-scheme: light !important;
 | 
					  color-scheme: light !important;
 | 
				
			||||||
      -moz-default-appearance: none !important;
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      position: relative !important;
 | 
					  -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
 | 
				
			||||||
      background-color: -moz-Dialog !important;
 | 
					  cursor: default;
 | 
				
			||||||
      min-height: 8px !important;
 | 
					  min-width: 16px !important;
 | 
				
			||||||
      pointer-events: auto !important;
 | 
					  background-color: ${colors.ThreeDHighlight} !important;
 | 
				
			||||||
      border: 0 !important;
 | 
					  opacity: 1 !important;
 | 
				
			||||||
      box-shadow: inset -1px -1px 0 WindowFrame, inset 1px 1px 0 -moz-Dialog, inset -2px -2px 0 ThreeDShadow, inset 2px 2px 0 ThreeDHighlight !important;
 | 
					}
 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  thumb[orient="horizontal"] {
 | 
					thumb
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					{
 | 
				
			||||||
      min-height: 16px !important;
 | 
					  color-scheme: light !important;
 | 
				
			||||||
      min-width: 8px !important;
 | 
					  -moz-default-appearance: none !important;
 | 
				
			||||||
      max-width: 100% !important;
 | 
					  position: relative !important;
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-color: ${colors.ThreeDFace} !important;
 | 
				
			||||||
  }
 | 
					  min-height: 8px !important;
 | 
				
			||||||
 | 
					  pointer-events: auto !important;
 | 
				
			||||||
 | 
					  border: 0 !important;
 | 
				
			||||||
 | 
					  box-shadow: inset -1px -1px 0 ${colors.ThreeDDarkShadow}, inset 1px 1px 0 ${colors.ThreeDLightShadow}, inset -2px -2px 0 ${colors.ThreeDShadow}, inset 2px 2px 0 ${colors.ThreeDHighlight} !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbarbutton
 | 
					thumb[orient="horizontal"] {
 | 
				
			||||||
  {
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      color-scheme: light !important;
 | 
					  min-height: 16px !important;
 | 
				
			||||||
      min-width: 16px !important;
 | 
					  min-width: 8px !important;
 | 
				
			||||||
      min-height: 16px !important;
 | 
					  max-width: 100% !important;
 | 
				
			||||||
      -moz-default-appearance: none !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-color: -moz-Dialog !important;
 | 
					}
 | 
				
			||||||
      box-shadow: inset -1px -1px 0 WindowFrame, inset 1px 1px 0 -moz-Dialog, inset -2px -2px 0 ThreeDShadow, inset 2px 2px 0 ThreeDHighlight !important;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbarbutton:not(.disabled):hover:active
 | 
					scrollbarbutton
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      background-color: -moz-dialog !important;
 | 
					  color-scheme: light !important;
 | 
				
			||||||
      border: 1px solid ThreeDShadow !important;
 | 
					  min-width: 16px !important;
 | 
				
			||||||
      box-shadow: none !important;
 | 
					  min-height: 16px !important;
 | 
				
			||||||
  }
 | 
					  -moz-default-appearance: none !important;
 | 
				
			||||||
 | 
					  background-color: ${colors.ThreeDFace} !important;
 | 
				
			||||||
 | 
					  box-shadow: inset -1px -1px 0 ${colors.ThreeDDarkShadow}, inset 1px 1px 0 ${colors.ThreeDLightShadow}, inset -2px -2px 0 ${colors.ThreeDShadow}, inset 2px 2px 0 ${colors.ThreeDHighlight} !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  slider,
 | 
					scrollbarbutton:not(.disabled):hover:active
 | 
				
			||||||
  slider[orient="vertical"]
 | 
					{
 | 
				
			||||||
  {
 | 
					  background-color: ${colors.ThreeDFace} !important;
 | 
				
			||||||
      color-scheme: light !important;
 | 
					  border: 1px solid ${colors.ThreeDShadow} !important;
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					  box-shadow: none !important;
 | 
				
			||||||
      background-color: ThreeDHighlight !important;
 | 
					}
 | 
				
			||||||
      background-repeat: repeat !important;
 | 
					 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMiIgaGVpZ2h0PSIyIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAuNTI5MTcgLjUyOTE3IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnPjxnPjxyZWN0IHg9Ii4yNjQ1OCIgeT0iMC4wMDAwIiB3aWR0aD0iLjI2NDU4IiBoZWlnaHQ9Ii4yNjQ1OCIgZmlsbD0iVGhyZWVEU2hhZG93Ii8+PHJlY3QgeD0iMC4wMDAwIiB5PSIuMjY0NTgiIHdpZHRoPSIuMjY0NTgiIGhlaWdodD0iLjI2NDU4IiBmaWxsPSJUaHJlZURTaGFkb3ciLz48cmVjdCB4PSIwLjAwMDAiIHk9IjAuMDAwMCIgd2lkdGg9Ii4yNjQ1OCIgaGVpZ2h0PSIuMjY0NTgiIGZpbGw9IlRocmVlREhpZ2hsaWdodCIvPjxyZWN0IHg9Ii4yNjQ1OCIgeT0iLjI2NDU4IiB3aWR0aD0iLjI2NDU4IiBoZWlnaHQ9Ii4yNjQ1OCIgZmlsbD0iVGhyZWVESGlnaGxpZ2h0Ii8+PC9nPjwvZz48L3N2Zz4=") !important;
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollcorner
 | 
					slider,
 | 
				
			||||||
  {
 | 
					slider[orient="vertical"]
 | 
				
			||||||
      color-scheme: light !important;
 | 
					{
 | 
				
			||||||
      -moz-default-appearance: none !important;
 | 
					  color-scheme: light !important;
 | 
				
			||||||
      -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      width: 16px;
 | 
					  background-color: ${colors.ThreeDHighlight} !important;
 | 
				
			||||||
      cursor: default;
 | 
					  background-repeat: repeat !important;
 | 
				
			||||||
      background-color: -moz-dialog; !important;
 | 
					  background-image: url('data:image/svg+xml,<svg width="2" height="2" version="1.1" viewBox="0 0 .52917 .52917" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g><g><rect x=".26458" y="0.0000" width=".26458" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="0.0000" y=".26458" width=".26458" height=".26458" fill="${colors.ThreeDShadow}"/><rect x="0.0000" y="0.0000" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/><rect x=".26458" y=".26458" width=".26458" height=".26458" fill="${colors.ThreeDHighlight}"/></g></g></svg>') !important;
 | 
				
			||||||
  }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbarbutton[type="increment"]
 | 
					scrollcorner
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					  color-scheme: light !important;
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  -moz-default-appearance: none !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4KICA8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSI3IiB5PSI0IiB4PSI1IiBmaWxsPSJDYW52YXNUZXh0Ii8+PHJlY3Qgd2lkdGg9IjEiIGhlaWdodD0iNSIgeT0iNSIgeD0iNiIgZmlsbD0iQ2FudmFzVGV4dCIvPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjMiIHk9IjYiIHg9IjciIGZpbGw9IkNhbnZhc1RleHQiLz48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB5PSI3IiB4PSI4IiBmaWxsPSJDYW52YXNUZXh0Ii8+CiAgCiAgCjwvc3ZnPg==") !important;
 | 
					  -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
 | 
				
			||||||
      background-position: center center !important;
 | 
					  width: 16px;
 | 
				
			||||||
  }
 | 
					  cursor: default;
 | 
				
			||||||
 | 
					  background-color: ${colors.ThreeDFace} !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]
 | 
					scrollbarbutton[type="increment"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTUiIHdpZHRoPSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4KICA8cmVjdCBoZWlnaHQ9IjEiIHdpZHRoPSI3IiB4PSIzIiB5PSI1IiBmaWxsPSJDYW52YXNUZXh0Ii8+PHJlY3QgaGVpZ2h0PSIxIiB3aWR0aD0iNSIgeT0iNiIgeD0iNCIgZmlsbD0iQ2FudmFzVGV4dCIvPjxyZWN0IGhlaWdodD0iMSIgd2lkdGg9IjMiIHg9IjUiIHk9IjciIGZpbGw9IkNhbnZhc1RleHQiLz48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4PSI2IiB5PSI4IiBmaWxsPSJDYW52YXNUZXh0Ii8+CiAgCiAgCjwvc3ZnPg==") !important;
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><rect width="1" height="7" y="4" x="5" fill="${colors.ButtonText}"/><rect width="1" height="5" y="5" x="6" fill="${colors.ButtonText}"/><rect width="1" height="3" y="6" x="7" fill="${colors.ButtonText}"/><rect width="1" height="1" y="7" x="8" fill="${colors.ButtonText}"/></svg>') !important;
 | 
				
			||||||
      background-position: center center !important;
 | 
					  background-position: center center !important;
 | 
				
			||||||
  }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbarbutton[type="decrement"]
 | 
					scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTUiIHdpZHRoPSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4KICA8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSI3IiB5PSI0IiB4PSI4IiBmaWxsPSJDYW52YXNUZXh0Ii8+PHJlY3Qgd2lkdGg9IjEiIGhlaWdodD0iNSIgeT0iNSIgeD0iNyIgZmlsbD0iQ2FudmFzVGV4dCIvPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjMiIHk9IjYiIHg9IjYiIGZpbGw9IkNhbnZhc1RleHQiLz48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB5PSI3IiB4PSI1IiBmaWxsPSJDYW52YXNUZXh0Ii8+CiAgCiAgCjwvc3ZnPg==") !important;
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 15 15"><rect height="1" width="7" x="3" y="5" fill="${colors.ButtonText}"/><rect height="1" width="5" y="6" x="4" fill="${colors.ButtonText}"/><rect height="1" width="3" x="5" y="7" fill="${colors.ButtonText}"/><rect width="1" height="1" x="6" y="8" fill="${colors.ButtonText}"/></svg>') !important;
 | 
				
			||||||
      background-position: center center !important;
 | 
					  background-position: center center !important;
 | 
				
			||||||
  }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]
 | 
					scrollbarbutton[type="decrement"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      -moz-default-appearance: none;
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4KCTxyZWN0IGhlaWdodD0iMSIgd2lkdGg9IjciIHk9IjgiIHg9IjMiIGZpbGw9IkNhbnZhc1RleHQiLz48cmVjdCBoZWlnaHQ9IjEiIHdpZHRoPSI1IiB4PSI0IiB5PSI3IiBmaWxsPSJDYW52YXNUZXh0Ii8+PHJlY3QgaGVpZ2h0PSIxIiB3aWR0aD0iMyIgeT0iNiIgeD0iNSIgZmlsbD0iQ2FudmFzVGV4dCIvPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHk9IjUiIHg9IjYiIGZpbGw9IkNhbnZhc1RleHQiLz4KCQoJCjwvc3ZnPg==") !important;
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 15 15"><rect width="1" height="7" y="4" x="8" fill="${colors.ButtonText}"/><rect width="1" height="5" y="5" x="7" fill="${colors.ButtonText}"/><rect width="1" height="3" y="6" x="6" fill="${colors.ButtonText}"/><rect width="1" height="1" y="7" x="5" fill="${colors.ButtonText}"/></svg>') !important;
 | 
				
			||||||
      background-position: center center !important;
 | 
					  background-position: center center !important;
 | 
				
			||||||
  }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbarbutton[type="increment"][disabled="true"]
 | 
					scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  -moz-default-appearance: none;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4NCgk8cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjciIHk9IjQiIHg9IjUiLz48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIyIiBmaWxsPSJUaHJlZURIaWdobGlnaHQiIHg9IjYiIHk9IjEwIi8+PHJlY3Qgd2lkdGg9IjEiIGhlaWdodD0iMiIgZmlsbD0iVGhyZWVESGlnaGxpZ2h0IiB4PSI3IiB5PSI5Ii8+PHJlY3Qgd2lkdGg9IjEiIGhlaWdodD0iMiIgZmlsbD0iVGhyZWVESGlnaGxpZ2h0IiB4PSI4IiB5PSI4Ii8+PHJlY3Qgd2lkdGg9IjEiIGZpbGw9IlRocmVlREhpZ2hsaWdodCIgaGVpZ2h0PSIxIiB5PSI4IiB4PSI5Ii8+PHJlY3QgZmlsbD0iVGhyZWVEU2hhZG93IiB3aWR0aD0iMSIgaGVpZ2h0PSI1IiB5PSI1IiB4PSI2Ii8+PHJlY3QgZmlsbD0iVGhyZWVEU2hhZG93IiB3aWR0aD0iMSIgaGVpZ2h0PSIzIiB5PSI2IiB4PSI3Ii8+PHJlY3QgZmlsbD0iVGhyZWVEU2hhZG93IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB5PSI3IiB4PSI4Ii8+DQoJDQoJDQo8L3N2Zz4=");
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-position: center center !important;
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><rect height="1" width="7" y="8" x="3" fill="${colors.ButtonText}"/><rect height="1" width="5" x="4" y="7" fill="${colors.ButtonText}"/><rect height="1" width="3" y="6" x="5" fill="${colors.ButtonText}"/><rect width="1" height="1" y="5" x="6" fill="${colors.ButtonText}"/></svg>') !important;
 | 
				
			||||||
  }
 | 
					  background-position: center center !important;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"]
 | 
					scrollbarbutton[type="increment"][disabled="true"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTUiIHdpZHRoPSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4NCgk8cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIGhlaWdodD0iMSIgd2lkdGg9IjciIHg9IjMiIHk9IjUiLz48cmVjdCBmaWxsPSJUaHJlZURIaWdobGlnaHQiIGhlaWdodD0iMSIgd2lkdGg9IjIiIHk9IjYiIHg9IjkiLz48cmVjdCBmaWxsPSJUaHJlZURIaWdobGlnaHQiIGhlaWdodD0iMSIgd2lkdGg9IjIiIHk9IjciIHg9IjgiLz48cmVjdCBmaWxsPSJUaHJlZURIaWdobGlnaHQiIGhlaWdodD0iMSIgd2lkdGg9IjIiIHg9IjciIHk9IjgiLz48cmVjdCBmaWxsPSJUaHJlZURIaWdobGlnaHQiIGhlaWdodD0iMSIgd2lkdGg9IjEiIHg9IjciIHk9IjkiLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIGhlaWdodD0iMSIgd2lkdGg9IjUiIHk9IjYiIHg9IjQiLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIGhlaWdodD0iMSIgd2lkdGg9IjMiIHg9IjUiIHk9IjciLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHg9IjYiIHk9IjgiLz4NCgkNCgkNCjwvc3ZnPg==");
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><rect fill="${colors.ThreeDShadow}" width="1" height="7" y="4" x="5"/><rect width="1" height="2" fill="${colors.ThreeDHighlight}" x="6" y="10"/><rect width="1" height="2" fill="${colors.ThreeDHighlight}" x="7" y="9"/><rect width="1" height="2" fill="${colors.ThreeDHighlight}" x="8" y="8"/><rect width="1" fill="${colors.ThreeDHighlight}" height="1" y="8" x="9"/><rect fill="${colors.ThreeDShadow}" width="1" height="5" y="5" x="6"/><rect fill="${colors.ThreeDShadow}" width="1" height="3" y="6" x="7"/><rect fill="${colors.ThreeDShadow}" width="1" height="1" y="7" x="8"/></svg>');
 | 
				
			||||||
      background-position: center center !important;
 | 
					  background-position: center center !important;
 | 
				
			||||||
  }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbarbutton[type="decrement"][disabled="true"]
 | 
					scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTUiIHdpZHRoPSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4NCgk8cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjciIHk9IjQiIHg9IjgiLz48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSI3IiBmaWxsPSJUaHJlZURIaWdobGlnaHQiIHk9IjUiIHg9IjkiLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjUiIHk9IjUiIHg9IjciLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjMiIHk9IjYiIHg9IjYiLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHk9IjciIHg9IjUiLz4NCgkNCgkNCjwvc3ZnPg==");
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 15 15"><rect fill="${colors.ThreeDShadow}" height="1" width="7" x="3" y="5"/><rect fill="${colors.ThreeDHighlight}" height="1" width="2" y="6" x="9"/><rect fill="${colors.ThreeDHighlight}" height="1" width="2" y="7" x="8"/><rect fill="${colors.ThreeDHighlight}" height="1" width="2" x="7" y="8"/><rect fill="${colors.ThreeDHighlight}" height="1" width="1" x="7" y="9"/><rect fill="${colors.ThreeDShadow}" height="1" width="5" y="6" x="4"/><rect fill="${colors.ThreeDShadow}" height="1" width="3" x="5" y="7"/><rect fill="${colors.ThreeDShadow}" width="1" height="1" x="6" y="8"/></svg>');
 | 
				
			||||||
      background-position: center center !important;
 | 
					  background-position: center center !important;
 | 
				
			||||||
  }
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"]
 | 
					scrollbarbutton[type="decrement"][disabled="true"]
 | 
				
			||||||
  {
 | 
					{
 | 
				
			||||||
      background-repeat: no-repeat !important;
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
      background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4NCgk8cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIGhlaWdodD0iMSIgd2lkdGg9IjciIHk9IjgiIHg9IjMiLz48cmVjdCBmaWxsPSJUaHJlZURIaWdobGlnaHQiIHdpZHRoPSI3IiBoZWlnaHQ9IjEiIHk9IjkiIHg9IjQiLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIGhlaWdodD0iMSIgd2lkdGg9IjUiIHg9IjQiIHk9IjciLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIGhlaWdodD0iMSIgd2lkdGg9IjMiIHk9IjYiIHg9IjUiLz48cmVjdCBmaWxsPSJUaHJlZURTaGFkb3ciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHk9IjUiIHg9IjYiLz4NCgkNCgkNCjwvc3ZnPg==") !important;
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 15 15"><rect fill="${colors.ThreeDShadow}" width="1" height="7" y="4" x="8"/><rect width="1" height="7" fill="${colors.ThreeDHighlight}" y="5" x="9"/><rect fill="${colors.ThreeDShadow}" width="1" height="5" y="5" x="7"/><rect fill="${colors.ThreeDShadow}" width="1" height="3" y="6" x="6"/><rect fill="${colors.ThreeDShadow}" width="1" height="1" y="7" x="5"/></svg>');
 | 
				
			||||||
      background-position: center !important;
 | 
					  background-position: center center !important;
 | 
				
			||||||
  }`;
 | 
					}
 | 
				
			||||||
  var sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(
 | 
					
 | 
				
			||||||
    Ci.nsIStyleSheetService
 | 
					scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"]
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  background-repeat: no-repeat !important;
 | 
				
			||||||
 | 
					  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><rect fill="${colors.ThreeDShadow}" height="1" width="7" y="8" x="3"/><rect fill="${colors.ThreeDHighlight}" width="7" height="1" y="9" x="4"/><rect fill="${colors.ThreeDShadow}" height="1" width="5" x="4" y="7"/><rect fill="${colors.ThreeDShadow}" height="1" width="3" y="6" x="5"/><rect fill="${colors.ThreeDShadow}" width="1" height="1" y="5" x="6"/></svg>') !important;
 | 
				
			||||||
 | 
					  background-position: center !important;
 | 
				
			||||||
 | 
					}`;
 | 
				
			||||||
 | 
					  const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(
 | 
				
			||||||
 | 
					    Ci.nsIStyleSheetService,
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
  var uri = Services.io.newURI(
 | 
					  const uri = Services.io.newURI(
 | 
				
			||||||
    "data:text/css;charset=UTF=8," + encodeURIComponent(css)
 | 
					    "data:text/css;charset=UTF=8," + encodeURIComponent(css),
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
 | 
					  sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue