mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
ios, android: improve preference change chat items layout (#1454)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user