1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

👌 Use app colors for status

This commit is contained in:
2023-03-24 00:47:27 +01:00
parent 6b72d4da65
commit ff8eb4fa04
2 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.988",
"green" : "0.580",
"red" : "0.278"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.988",
"green" : "0.723",
"red" : "0.277"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@ -313,9 +313,9 @@ extension BrewFormula {
var iconColor: Color {
if self.hasUpgrade {
return .blue
return Color("StatusColorBlue")
} else if self.isInstalled {
return .green
return Color("StatusColorGreen")
}
return Color.gray.opacity(0.3)
}