mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
Update CompactPriceView.swift
This commit is contained in:
parent
3bd9272dd6
commit
3023b720ba
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user