mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add circular checkmark to share ext labels list cell
This commit is contained in:
parent
03fac22c29
commit
fdc1b28cf1
3 changed files with 47 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue