feat: add icons to settings capsule tabs

This commit is contained in:
nimbold
2026-06-04 05:47:55 +03:30
parent fd349bfd3b
commit 2f5e593d0b
2 changed files with 12 additions and 3 deletions
+7 -3
View File
@@ -12,9 +12,13 @@ struct SettingsPaneContainer: View {
Button {
activeTab = filter
} label: {
Text(filter.rawValue)
.padding(.horizontal, 12)
.padding(.vertical, 6)
HStack(spacing: 6) {
Image(systemName: filter.symbolName)
Text(filter.rawValue)
}
.padding(.horizontal, 14)
.padding(.vertical, 8)
.font(.system(size: 13, weight: .medium))
}
.buttonStyle(.plain)
.background(activeTab == filter ? Color.accentColor : Color.clear)