add circular checkmark to share ext labels list cell

This commit is contained in:
Satindar Dhillon 2022-07-21 10:59:06 -07:00
parent 03fac22c29
commit fdc1b28cf1
3 changed files with 47 additions and 4 deletions

View file

@ -230,14 +230,18 @@ struct ApplyLabelsListView: View {
TextChip(feedItemLabel: label)
Spacer()
if isSelected(label) {
Image(systemName: "checkmark")
Image(systemName: "checkmark.circle.fill")
.foregroundColor(.checkmarkBlue)
} else {
Image(systemName: "circle")
.foregroundColor(.appGraySolid)
}
}
.contentShape(Rectangle())
}
)
#if os(macOS)
.buttonStyle(PlainButtonStyle())
#endif
.listRowSeparator(.hidden)
.buttonStyle(PlainButtonStyle())
}
}
Button(

View file

@ -16,6 +16,7 @@ public extension Color {
static var appButtonBackground: Color { Color("_buttonBackground", bundle: .module) }
static var appTextDefault: Color { Color("_utilityTextDefault", bundle: .module) }
static var appPrimaryBackground: Color { Color("_appPrimaryBackground", bundle: .module) }
static var checkmarkBlue: Color { Color("_checkmarkBlue", bundle: .module) }
// Apple system UIColor equivalents
#if os(iOS)

View file

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