gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 183/204: Section header


From: gnunet
Subject: [taler-taler-ios] 183/204: Section header
Date: Thu, 05 Dec 2024 23:52:31 +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 4e8fe2e4375fed4abba5e4957ace24c1047608ed
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Dec 4 07:03:21 2024 +0100

    Section header
---
 .../Views/Transactions/TransactionsListView.swift   | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionsListView.swift 
b/TalerWallet1/Views/Transactions/TransactionsListView.swift
index 09a31c3..90af966 100644
--- a/TalerWallet1/Views/Transactions/TransactionsListView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionsListView.swift
@@ -26,6 +26,8 @@ struct TransactionsListView: View {
     let reloadAllAction: (_ stack: CallStack) async -> ()
 
     @EnvironmentObject private var controller: Controller
+    @Environment(\.colorScheme) private var colorScheme
+    @Environment(\.colorSchemeContrast) private var colorSchemeContrast
     @AppStorage("myListStyle") var myListStyle: MyListStyle = .automatic
     @State private var viewId = UUID()
 
@@ -37,12 +39,19 @@ struct TransactionsListView: View {
         let count = transactions.count
         ScrollViewReader { scrollView in
             List {
-                TransactionsArraySliceV(symLog: symLog,
-                                         stack: stack.push(),
-                                         scope: scope,
-                                  transactions: $transactions,
-                               reloadAllAction: reloadAllAction)
-                    .padding(.leading, ICONLEADING)
+                Section {
+                    TransactionsArraySliceV(symLog: symLog,
+                                             stack: stack.push(),
+                                             scope: scope,
+                                      transactions: $transactions,
+                                   reloadAllAction: reloadAllAction)
+                        .padding(.leading, ICONLEADING)
+                } header: {
+                    let header = scope.url?.trimURL ?? scope.currency
+                    Text(header)
+                        .talerFont(.title3)
+                        .foregroundColor(WalletColors().secondary(colorScheme, 
colorSchemeContrast))
+                }
             }
             .id(viewId)
             .listStyle(myListStyle.style).anyView

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