From c5ff1dd4a43b2cbcdb2cae403a27e07333acef95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20V=C3=A9lez?= Date: Wed, 20 Nov 2024 08:58:59 -0400 Subject: [PATCH] Update CompactPriceView.swift --- ios/Widgets/PriceWidget/CompactPriceView.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ios/Widgets/PriceWidget/CompactPriceView.swift b/ios/Widgets/PriceWidget/CompactPriceView.swift index 5c6db03f9..0c1edef4a 100644 --- a/ios/Widgets/PriceWidget/CompactPriceView.swift +++ b/ios/Widgets/PriceWidget/CompactPriceView.swift @@ -26,7 +26,7 @@ struct CompactPriceView: View { Text(dataSource) } .font(.subheadline) - .foregroundColor(.secondary) + .foregroundColor(secondaryTextColor) .multilineTextAlignment(.center) .accessibilityElement(children: .combine) } @@ -38,4 +38,9 @@ struct CompactPriceView: View { var priceTextColor: Color { colorScheme == .dark ? .cyan : .blue } -} + + // Improved secondary text color for better readability + var secondaryTextColor: Color { + colorScheme == .dark ? .white : .black + } +} \ No newline at end of file