Skip to content

Commit

Permalink
Use purple eye icon
Browse files Browse the repository at this point in the history
 * square version for add-ons list

 * purple on white version for on-page

Modify sizing and margins to fit the non-square proportions of the
inline version (16x9).
  • Loading branch information
dmarti authored and zombie committed Mar 13, 2018
1 parent 17d3581 commit ae8b07b
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bugzilla/common.js
Expand Up @@ -33,7 +33,7 @@ function setVisible(visible) {

function icon() {
const img = document.createElement("img");
img.src = browser.runtime.getURL("icon.png");
img.src = browser.runtime.getURL("icon-inline.svg");
img.title = "Blind Reviews";
img.className = "br-icon";
return img;
Expand Down
16 changes: 8 additions & 8 deletions github/blind.css
Expand Up @@ -14,10 +14,10 @@ body.br-blinded .br-author {
li.js-notification.br-blind div.AvatarStack::after,
body.br-blinded span.br-avatar {
width: 16px;
height: 16px;
background: url("../icon.png") 0/contain;
height: 9px;
background: url("../icon-inline.svg") 0/contain;
display: inline-block;
vertical-align: sub;
vertical-align: center;
}
body.br-blinded div.timeline-comment-avatar > span.br-avatar {
width: 42px;
Expand All @@ -42,14 +42,14 @@ body.br-blinded #br-toggle div>button::before {

#br-toggle > span > button {
float: left;
width: 24px;
height: 24px;
margin: -1px 1px 0 0;
background: url(../icon.png) 0/contain;
width: 32px;
height: 18px;
margin: 2px 2px 0 0;
background: url(../icon-inline.svg) 0/contain;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
body.br-blinded span.br-avatar, #br-toggle > span > button {
background: url(chrome-extension://__MSG_@@extension_id__/icon.png) 0/contain;
background: url(chrome-extension://__MSG_@@extension_id__/icon-inline.svg) 0/contain;
}
}
17 changes: 17 additions & 0 deletions icon-inline.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions icon-square.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed icon.png
Binary file not shown.
5 changes: 3 additions & 2 deletions manifest.json
Expand Up @@ -14,13 +14,14 @@
},

"icons": {
"96": "icon.png"
"48": "icon-square.svg",
"96": "icon-square.svg"
},

"permissions": ["storage"],

"web_accessible_resources": [
"icon.png"
"icon-inline.png"
],

"content_scripts": [
Expand Down

0 comments on commit ae8b07b

Please sign in to comment.