ios, android: improve preference change chat items layout (#1454)

This commit is contained in:
JRoberts
2022-11-28 20:03:39 +04:00
committed by GitHub
parent e5f07993a7
commit 3a755286c1
9 changed files with 59 additions and 37 deletions
@@ -15,8 +15,8 @@ struct CIChatFeatureView: View {
var iconColor: Color
var body: some View {
HStack(alignment: .bottom, spacing: 0) {
Image(systemName: feature.icon + ".fill")
HStack(alignment: .bottom, spacing: 4) {
Image(systemName: feature.iconFilled)
.foregroundColor(iconColor)
chatEventText(chatItem)
}
+8 -1
View File
@@ -263,7 +263,14 @@ public enum Feature: String, Decodable {
public var icon: String {
switch self {
case .fullDelete: return "trash.slash"
case .voice: return "speaker.wave.2"
case .voice: return "mic"
}
}
public var iconFilled: String {
switch self {
case .fullDelete: return "trash.slash.fill"
case .voice: return "mic.fill"
}
}