Simplify grey colors with an adaptable color in xcassets

Closes: #805
This commit is contained in:
Bryan Montz
2023-03-25 11:31:08 -05:00
committed by William Casarin
parent 7674f42596
commit e11147b217
4 changed files with 41 additions and 21 deletions

View File

@@ -14,7 +14,6 @@ struct MutedEventView: View {
let selected: Bool
@State var shown: Bool
@Environment(\.colorScheme) var colorScheme
init(damus_state: DamusState, event: NostrEvent, scroller: ScrollViewProxy?, selected: Bool) {
self.damus_state = damus_state
@@ -28,14 +27,10 @@ struct MutedEventView: View {
return !should_show_event(contacts: damus_state.contacts, ev: event)
}
var FillColor: Color {
colorScheme == .light ? Color("DamusLightGrey") : Color("DamusDarkGrey")
}
var MutedBox: some View {
ZStack {
RoundedRectangle(cornerRadius: 20)
.foregroundColor(FillColor)
.foregroundColor(Color("DamusAdaptableGrey"))
HStack {
Text("Post from a user you've blocked", comment: "Text to indicate that what is being shown is a post from a user who has been blocked.")