mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Use .element.accent instead of elementGreen colour asset. (#79)
Remove local copy of Element Green
This commit is contained in:
@@ -21,6 +21,10 @@ struct MessageComposer: View {
|
||||
action()
|
||||
} label: {
|
||||
Image(uiImage: Asset.Images.timelineComposerSendMessage.image)
|
||||
.background(Circle()
|
||||
.foregroundColor(.element.globalWhite)
|
||||
.padding(2)
|
||||
)
|
||||
}
|
||||
.padding(.bottom, 6.0)
|
||||
.disabled(disabled)
|
||||
|
||||
@@ -32,7 +32,7 @@ struct MessageComposerTextField: View {
|
||||
}
|
||||
|
||||
private var borderColor: Color {
|
||||
Color(uiColor: Asset.Colors.elementGreen.color)
|
||||
.element.accent
|
||||
}
|
||||
|
||||
private var borderWidth: CGFloat {
|
||||
|
||||
@@ -31,7 +31,7 @@ struct EventBasedTimelineView: View {
|
||||
Image(uiImage: avatar)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.overlay(Circle().stroke(Color(uiColor: Asset.Colors.elementGreen.color)))
|
||||
.overlay(Circle().stroke(Color.element.accent))
|
||||
} else {
|
||||
PlaceholderAvatarImage(firstCharacter: String(firstLetter))
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ struct FormattedBodyText: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.tint(Color(uiColor: Asset.Colors.elementGreen.color))
|
||||
.tint(.element.accent)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ struct PlaceholderAvatarImage: View {
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Color(.sRGB, red: 0.05, green: 0.74, blue: 0.55, opacity: 1.0)
|
||||
Color.element.accent
|
||||
Text(firstCharacter)
|
||||
.padding(4)
|
||||
.foregroundColor(.white)
|
||||
|
||||
Reference in New Issue
Block a user