Skip to content

Commit

Permalink
fix: 🖤 Update the menu bar status icon for Dark Mode (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Jun 24, 2024
1 parent 36402a0 commit d54919d
Show file tree
Hide file tree
Showing 13 changed files with 106 additions and 44 deletions.
21 changes: 0 additions & 21 deletions Reconnect/Assets.xcassets/Connected.imageset/Contents.json

This file was deleted.

21 changes: 0 additions & 21 deletions Reconnect/Assets.xcassets/Disconnected.imageset/Contents.json

This file was deleted.

52 changes: 52 additions & 0 deletions Reconnect/Assets.xcassets/StatusConnected.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"images" : [
{
"filename" : "StatusConnected.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "StatusConnectedDark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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
@@ -0,0 +1,52 @@
{
"images" : [
{
"filename" : "StatusDisconnected.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "StatusDisconnectedDark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Reconnect/ReconnectApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ struct ReconnectApp: App {
.environment(applicationModel)
} label: {
if server.isConnected {
Image("Connected")
Image("StatusConnected")
} else {
Image("Disconnected")
Image("StatusDisconnected")
}
}

Expand Down
Binary file added graphics/status/StatusConnected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/status/StatusConnectedDark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/status/StatusDisconnected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/status/StatusDisconnectedDark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d54919d

Please sign in to comment.