gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 10/24: increasedContrast


From: gnunet
Subject: [taler-taler-ios] 10/24: increasedContrast
Date: Tue, 05 Dec 2023 16:26:06 +0100

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit ce739ae632b8c75e3f37344bd222afffac0d079c
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Nov 29 16:17:49 2023 +0100

    increasedContrast
---
 TalerWallet1/Views/Transactions/TransactionRowView.swift | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift 
b/TalerWallet1/Views/Transactions/TransactionRowView.swift
index 67e41e7..aafc403 100644
--- a/TalerWallet1/Views/Transactions/TransactionRowView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionRowView.swift
@@ -46,6 +46,8 @@ struct TransactionRowContentV: View {
     let done: Bool
     let foreColor:Color
 
+    @Environment(\.colorSchemeContrast) private var colorSchemeContrast
+
     public static func width(titles: (String, String?), isHorizontal: Bool,
                              sizeCategory: ContentSizeCategory) -> CGFloat {
         let imageFont = TalerFont.uiFont(.largeTitle)
@@ -74,16 +76,21 @@ struct TransactionRowContentV: View {
         let iconBadge = IconBadge(foreColor: foreColor, done: done, incoming: 
incoming,
                               shouldConfirm: shouldConfirm, needsKYC: needsKYC)
         let doneOrPending = done || pending
+        let increasedContrast = colorSchemeContrast == .increased
+        let textColor = doneOrPending ? .primary :
+                    increasedContrast ? .secondary : WalletColors().gray3
         HStack(spacing: 8) {
             iconBadge
             VStack(alignment: .leading) {
                 Text(centerTop)
-                    .strikethrough(!doneOrPending)
+                    .foregroundColor(textColor)
+                    .strikethrough(!doneOrPending, color: .red)
                     .accessibilityFont(.headline)
 //                  .fontWeight(.medium)      iOS 16
                     .padding(.bottom, -2.0)
+                    .accessibilityLabel(doneOrPending ? centerTop : centerTop 
+  ", canceled")
                 Text(centerBottom)
-//                    .strikethrough(!doneOrPending)
+                    .foregroundColor(textColor)
                     .accessibilityFont(.callout)
             }
         }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]