Use neutral backgrounds for resolved attention cards
This commit is contained in:
@@ -17,7 +17,7 @@ struct AttentionCard<Content: View>: View {
|
|||||||
.padding(.horizontal, 12)
|
.padding(.horizontal, 12)
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.background(open ? Palette.warnTint : Palette.warnFaint, in: RoundedRectangle(cornerRadius: 10))
|
.background(open ? Palette.warnTint : Palette.surface, in: RoundedRectangle(cornerRadius: 10))
|
||||||
.overlay(RoundedRectangle(cornerRadius: 10).stroke(open ? Palette.warn.opacity(0.55) : Palette.border))
|
.overlay(RoundedRectangle(cornerRadius: 10).stroke(open ? Palette.warn.opacity(0.55) : Palette.border))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ enum Palette {
|
|||||||
static let dangerTint = dynamic(0xfdecea, 0x3a1f1d)
|
static let dangerTint = dynamic(0xfdecea, 0x3a1f1d)
|
||||||
static let warn = dynamic(0x855600, 0xf2c66d)
|
static let warn = dynamic(0x855600, 0xf2c66d)
|
||||||
static let warnTint = dynamic(0xfdf3dc, 0x352a14)
|
static let warnTint = dynamic(0xfdf3dc, 0x352a14)
|
||||||
static let warnFaint = dynamic(0xfcf8ec, 0x221f19)
|
|
||||||
static let ok = dynamic(0x1a7f37, 0x7fd88f)
|
static let ok = dynamic(0x1a7f37, 0x7fd88f)
|
||||||
static let okTint = dynamic(0xe5f4e9, 0x1b3322)
|
static let okTint = dynamic(0xe5f4e9, 0x1b3322)
|
||||||
static let task0 = dynamic(0xa4273f, 0xfe9fa6)
|
static let task0 = dynamic(0xa4273f, 0xfe9fa6)
|
||||||
|
|||||||
Reference in New Issue
Block a user