mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-10 13:00:07 +02:00
👌 Use app colors for status
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
@@ -313,9 +313,9 @@ extension BrewFormula {
|
|||||||
|
|
||||||
var iconColor: Color {
|
var iconColor: Color {
|
||||||
if self.hasUpgrade {
|
if self.hasUpgrade {
|
||||||
return .blue
|
return Color("StatusColorBlue")
|
||||||
} else if self.isInstalled {
|
} else if self.isInstalled {
|
||||||
return .green
|
return Color("StatusColorGreen")
|
||||||
}
|
}
|
||||||
return Color.gray.opacity(0.3)
|
return Color.gray.opacity(0.3)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user