diff --git a/chrome/button-1.png b/chrome/button-1.png deleted file mode 100644 index f816517..0000000 Binary files a/chrome/button-1.png and /dev/null differ diff --git a/chrome/button.css b/chrome/button.css index 14ca0fd..844961f 100644 --- a/chrome/button.css +++ b/chrome/button.css @@ -2,19 +2,20 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#webrtc-permissions-ui-toggle-1, -#wrapper-webrtc-permissions-ui-toggle-1 - {list-style-image: url("chrome://webrtc-permissions-ui-toggle/content/button-1.png");} +.webrtc-permissions-ui-button +{ + list-style-image: url("chrome://webrtc-permissions-ui-toggle/content/icon.png"); + -moz-image-region: rect(0px 48px 48px 0px); +} +.webrtc-permissions-ui-button.setting-true image { + list-style-image: url("chrome://webrtc-permissions-ui-toggle/content/icon-override.png"); +} -/* common style for all custom buttons */ -.webrtc-permissions-ui-button - {-moz-image-region: rect( 0px 24px 24px 0px);} - -.webrtc-permissions-ui-button.setting-true - {-moz-image-region: rect(24px 24px 48px 0px);} - -[iconsize="small"] .webrtc-permissions-ui-button - {-moz-image-region: rect( 0px 40px 16px 24px);} - -[iconsize="small"] .webrtc-permissions-ui-button.setting-true - {-moz-image-region: rect(24px 40px 40px 24px);} \ No newline at end of file +.webrtc-permissions-ui-button image { + width: 24px; + height: 24px; +} +[iconsize="small"] .webrtc-permissions-ui-button image { + width: 16px; + height: 16px; +} diff --git a/chrome/icon-override.png b/chrome/icon-override.png new file mode 100644 index 0000000..0e582d9 Binary files /dev/null and b/chrome/icon-override.png differ diff --git a/chrome/icon.png b/chrome/icon.png index fb41487..0dbdbca 100644 Binary files a/chrome/icon.png and b/chrome/icon.png differ diff --git a/icon-override.svg b/icon-override.svg new file mode 100644 index 0000000..5600416 --- /dev/null +++ b/icon-override.svg @@ -0,0 +1,102 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..0bae68e --- /dev/null +++ b/icon.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/install.rdf b/install.rdf index e00dd2a..42b2b77 100644 --- a/install.rdf +++ b/install.rdf @@ -11,7 +11,7 @@ em:creator="Isaac Schemm" em:id="webrtc-permissions-ui-toggle@lakora.us" - em:version="1.1.0" + em:version="1.1.1" em:homepageURL="https://github.com/IsaacSchemm/webrtc-permissions-ui-toggle" em:iconURL="chrome://webrtc-permissions-ui-toggle/content/icon.png"