Update CompactPriceView.swift

This commit is contained in:
Marcos Rodriguez Vélez 2024-11-20 14:13:08 -04:00 committed by GitHub
parent 3bd9272dd6
commit 3023b720ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ struct CompactPriceView: View {
Text(dataSource)
}
.font(.subheadline)
.foregroundColor(secondaryTextColor)
.foregroundColor(systemButtonTextColor)
.multilineTextAlignment(.center)
.accessibilityElement(children: .combine)
}
@ -39,8 +39,8 @@ struct CompactPriceView: View {
colorScheme == .dark ? .cyan : .blue
}
// Improved secondary text color for better readability
var secondaryTextColor: Color {
colorScheme == .dark ? .white : .black
// Use the system button text color for the secondary text
var systemButtonTextColor: Color {
Color.accentColor
}
}