taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 6a02bca00bb901acedb83211f3df4e6d82b4e4f2
parent daa8138bb18184e836a2dc27724337266dc8bac1
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 11 Dec 2025 19:20:34 +0100

Don't start with a negative sentence

Diffstat:
MTalerWallet1/Views/Main/WalletEmptyView.swift | 16+++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Main/WalletEmptyView.swift b/TalerWallet1/Views/Main/WalletEmptyView.swift @@ -16,16 +16,20 @@ struct WalletEmptyView: View { private let symLog = SymLogV(0) let stack: CallStack + @Environment(\.colorScheme) private var colorScheme + @Environment(\.colorSchemeContrast) private var colorSchemeContrast @EnvironmentObject private var model: WalletModel @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic @State private var withDrawStarted = false var body: some View { let list = List { +#if false // EMPTY Section { Text("There is no digital cash in your wallet yet.") .talerFont(.title3) } +#endif Section { let qrButton = Image(systemName: QRBUTTON) // 􀎻 "qrcode.viewfinder" let settings = Image(systemName: SETTINGS) // 􀍟 "gear" @@ -34,9 +38,14 @@ struct WalletEmptyView: View { .listRowSeparator(.hidden) Text("You can also add a payment service manually in the \(settings) Settings tab.", comment: "« 􀍟 » 'gear'") .talerFont(.body) + } header: { + let firstHeader = String(localized: "Withdraw digital cash", comment: "section header") + Text(firstHeader) + .talerFont(.title3) + .foregroundColor(WalletColors().secondary(colorScheme, colorSchemeContrast)) } Section { - Text("Demo: get digital cash to experience how to pay with the money of the future.") + Text("Get digital cash to experience how to pay with the money of the future.") .talerFont(.body) .listRowSeparator(.hidden) let title = String(localized: "LinkTitle_Test_Money", defaultValue: "Get demo money") @@ -50,6 +59,11 @@ struct WalletEmptyView: View { } .buttonStyle(TalerButtonStyle(type: .prominent, narrow: false, disabled: withDrawStarted, aligned: .center)) .disabled(withDrawStarted) + } header: { + let secondHeader = String(localized: "Demo", comment: "section header") + Text(secondHeader) + .talerFont(.title3) + .foregroundColor(WalletColors().secondary(colorScheme, colorSchemeContrast)) } } .listStyle(myListStyle.style).anyView