Skip to content

Commit

Permalink
wip: Auto generate dark mode icon variants
Browse files Browse the repository at this point in the history
I'm not super happy with this, as it has some artifacting, doesn't look
perfect, and doesn't work for all my icons.

Unfortunately, I've lost track of my original sketch file for the icons
(I do have access to a recent one but it only has the last couple
browsers I added and a hacked version of the frame) so I can't generate
proper versions of these.

Related to #6
  • Loading branch information
apexskier committed Jun 20, 2020
1 parent 86ab0e2 commit a692555
Show file tree
Hide file tree
Showing 21 changed files with 282 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
{
"images" : [
"images": [
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "1x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x"
},
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "2x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x"
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
"properties": {
"template-rendering-intent": "template"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
{
"images" : [
"images": [
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "1x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x"
},
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "2x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x"
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
"properties": {
"template-rendering-intent": "template"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
{
"images" : [
"images": [
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "1x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x"
},
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "2x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x"
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
"properties": {
"template-rendering-intent": "template"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
{
"images" : [
"images": [
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "1x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x"
},
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "2x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x"
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
"properties": {
"template-rendering-intent": "template"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
{
"images" : [
"images": [
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "1x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x"
},
{
"idiom" : "mac",
"filename" : "[email protected]",
"scale" : "2x"
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x"
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "1x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
},
{
"idiom": "mac",
"filename": "[email protected]",
"scale": "2x",
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
]
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
"properties": {
"template-rendering-intent": "template"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
{
"images" : [
{
"idiom" : "mac",
"filename" : "[email protected]",
"idiom" : "mac",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "mac",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "mac",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "mac",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
{
"images" : [
{
"idiom" : "mac",
"filename" : "[email protected]",
"idiom" : "mac",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "mac",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "mac",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "mac",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
Expand Down
Loading

0 comments on commit a692555

Please sign in to comment.