gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 01/08: colorSchemeContrast


From: gnunet
Subject: [taler-taler-ios] 01/08: colorSchemeContrast
Date: Thu, 07 Dec 2023 00:44:18 +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 e5f3da13dd190b3e34e59bcebc17dfd7016946c3
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Dec 6 14:22:16 2023 +0100

    colorSchemeContrast
---
 TalerWallet1/Views/Balances/BalanceRowView.swift            | 1 -
 TalerWallet1/Views/HelperViews/BarGraph.swift               | 4 ++--
 TalerWallet1/Views/Settings/SettingsView.swift              | 4 +---
 TalerWallet1/Views/Transactions/TransactionDetailView.swift | 1 -
 4 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/TalerWallet1/Views/Balances/BalanceRowView.swift 
b/TalerWallet1/Views/Balances/BalanceRowView.swift
index 37222f0..c851611 100644
--- a/TalerWallet1/Views/Balances/BalanceRowView.swift
+++ b/TalerWallet1/Views/Balances/BalanceRowView.swift
@@ -12,7 +12,6 @@ struct BalanceButton: View {
 
     @Environment(\.colorSchemeContrast) private var colorSchemeContrast
     @AppStorage("iconOnly") var iconOnly: Bool = false
-//    @AppStorage("moreContrast") var moreContrast: Bool = false
 
     var body: some View {
         let balanceTitleStr = String(localized: "Balance:", comment: "Main 
view")
diff --git a/TalerWallet1/Views/HelperViews/BarGraph.swift 
b/TalerWallet1/Views/HelperViews/BarGraph.swift
index 673f6ad..92c6e69 100644
--- a/TalerWallet1/Views/HelperViews/BarGraph.swift
+++ b/TalerWallet1/Views/HelperViews/BarGraph.swift
@@ -13,7 +13,7 @@ struct BarGraphHeader: View {
     let currency: String
 
     @EnvironmentObject private var model: WalletModel
-//    @AppStorage("moreContrast") var moreContrast: Bool = false
+    @Environment(\.colorSchemeContrast) private var colorSchemeContrast
 
     @State private var completedTransactions: [Transaction] = []
 
@@ -21,7 +21,7 @@ struct BarGraphHeader: View {
         HStack (alignment: .center, spacing: 10) {
             Text(currency)
                 .accessibilityFont(.title2)
-//                .foregroundColor(moreContrast ? .primary : .secondary)
+//                .foregroundColor(colorSchemeContrast == .increased ? 
.primary : .secondary)
             BarGraph(transactions: $completedTransactions,
                      maxBars: MAXBARS, barHeight: 10)       // TODO: barHeight 
relative to fontSize
         }
diff --git a/TalerWallet1/Views/Settings/SettingsView.swift 
b/TalerWallet1/Views/Settings/SettingsView.swift
index 5451179..2cf9e81 100644
--- a/TalerWallet1/Views/Settings/SettingsView.swift
+++ b/TalerWallet1/Views/Settings/SettingsView.swift
@@ -22,12 +22,12 @@ struct SettingsView: View {
 
     @EnvironmentObject private var controller: Controller
     @EnvironmentObject private var model: WalletModel
+//    @Environment(\.colorSchemeContrast) private var colorSchemeContrast
 #if DEBUG
     @AppStorage("developerMode") var developerMode: Bool = true
 #else
     @AppStorage("developerMode") var developerMode: Bool = false
 #endif
-//    @AppStorage("moreContrast") var moreContrast: Bool = false
     @AppStorage("useHaptics") var useHaptics: Bool = true
     @AppStorage("playSounds") var playSounds: Int = 1
     @AppStorage("talerFont") var talerFont: Int = 0
@@ -102,8 +102,6 @@ struct SettingsView: View {
 #if DEBUG
                 Text("https://bank.taler.grothoff.org/";)
 #endif
-//                SettingsToggle(name: String(localized: "More Contrast"), 
value: $moreContrast, id1: "contrast",
-//                               description: hideDescriptions ? nil : 
String(localized: "If you don't like grey"))
                 if controller.hapticCapability.supportsHaptics {
                     SettingsToggle(name: String(localized: "Haptics"), value: 
$useHaptics, id1: "haptics",
                             description: hideDescriptions ? nil : 
String(localized: "Vibration Feedback"))
diff --git a/TalerWallet1/Views/Transactions/TransactionDetailView.swift 
b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
index 666c4e1..d795ab5 100644
--- a/TalerWallet1/Views/Transactions/TransactionDetailView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
@@ -36,7 +36,6 @@ struct TransactionDetailView: View {
 
     @Environment(\.colorSchemeContrast) private var colorSchemeContrast
     @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
-//    @AppStorage("moreContrast") var moreContrast: Bool = false
 #if DEBUG
     @AppStorage("developerMode") var developerMode: Bool = true
 #else

-- 
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]