Skip to content

Commit

Permalink
Use only one size of icons
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacSchemm committed Apr 17, 2017
1 parent 609e163 commit c06a91f
Show file tree
Hide file tree
Showing 7 changed files with 217 additions and 16 deletions.
Binary file removed chrome/button-1.png
Binary file not shown.
31 changes: 16 additions & 15 deletions chrome/button.css
Expand Up @@ -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);}
.webrtc-permissions-ui-button image {
width: 24px;
height: 24px;
}
[iconsize="small"] .webrtc-permissions-ui-button image {
width: 16px;
height: 16px;
}
Binary file added chrome/icon-override.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified chrome/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions icon-override.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion install.rdf
Expand Up @@ -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"
Expand Down

0 comments on commit c06a91f

Please sign in to comment.