Skip to content

Commit c06a91f

Browse files
committed
Use only one size of icons
1 parent 609e163 commit c06a91f

File tree

7 files changed

+217
-16
lines changed

7 files changed

+217
-16
lines changed

chrome/button-1.png

-637 Bytes
Binary file not shown.

chrome/button.css

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
#webrtc-permissions-ui-toggle-1,
6-
#wrapper-webrtc-permissions-ui-toggle-1
7-
{list-style-image: url("chrome://webrtc-permissions-ui-toggle/content/button-1.png");}
5+
.webrtc-permissions-ui-button
6+
{
7+
list-style-image: url("chrome://webrtc-permissions-ui-toggle/content/icon.png");
8+
-moz-image-region: rect(0px 48px 48px 0px);
9+
}
10+
.webrtc-permissions-ui-button.setting-true image {
11+
list-style-image: url("chrome://webrtc-permissions-ui-toggle/content/icon-override.png");
12+
}
813

9-
/* common style for all custom buttons */
10-
.webrtc-permissions-ui-button
11-
{-moz-image-region: rect( 0px 24px 24px 0px);}
12-
13-
.webrtc-permissions-ui-button.setting-true
14-
{-moz-image-region: rect(24px 24px 48px 0px);}
15-
16-
[iconsize="small"] .webrtc-permissions-ui-button
17-
{-moz-image-region: rect( 0px 40px 16px 24px);}
18-
19-
[iconsize="small"] .webrtc-permissions-ui-button.setting-true
20-
{-moz-image-region: rect(24px 40px 40px 24px);}
14+
.webrtc-permissions-ui-button image {
15+
width: 24px;
16+
height: 24px;
17+
}
18+
[iconsize="small"] .webrtc-permissions-ui-button image {
19+
width: 16px;
20+
height: 16px;
21+
}

chrome/icon-override.png

1.4 KB
Loading

chrome/icon.png

2.17 KB
Loading

icon-override.svg

Lines changed: 102 additions & 0 deletions
Loading

icon.svg

Lines changed: 98 additions & 0 deletions
Loading

install.rdf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
em:creator="Isaac Schemm"
1212

1313
em:id="webrtc-permissions-ui-toggle@lakora.us"
14-
em:version="1.1.0"
14+
em:version="1.1.1"
1515
em:homepageURL="https://github.com/IsaacSchemm/webrtc-permissions-ui-toggle"
1616

1717
em:iconURL="chrome://webrtc-permissions-ui-toggle/content/icon.png"

0 commit comments

Comments
 (0)