commit 893ed89b5a8d6198d06886fff7ca8f94deb26c36 parent 05cf2787aae46b8d0ead13d94ed6d6b6231201a0 Author: Marc Stibane <marc@taler.net> Date: Tue, 26 Sep 2023 09:55:00 +0200 unified style of buttons Diffstat:
5 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift b/TalerWallet1/Views/Exchange/ManualWithdraw.swift @@ -58,7 +58,9 @@ struct ManualWithdraw: View { // restrictAge: restrictAge) }) { Text("Confirm Withdrawal") // VIEW_WITHDRAW_ACCEPT - }.buttonStyle(TalerButtonStyle(type: .prominent)) + } + .buttonStyle(TalerButtonStyle(type: .prominent)) + .padding(.horizontal) } else { ToSButtonView(exchangeBaseUrl: exchange.exchangeBaseUrl, viewID: VIEW_WITHDRAW_TOS, diff --git a/TalerWallet1/Views/HelperViews/ToSButtonView.swift b/TalerWallet1/Views/HelperViews/ToSButtonView.swift @@ -27,6 +27,7 @@ struct ToSButtonView: View { }) { Text("Terms of Service") // VIEW_WITHDRAW_TOS }.buttonStyle(TalerButtonStyle(type: .prominent)) + .padding(.horizontal) } } diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift @@ -45,8 +45,9 @@ struct P2pPayURIView: View { incoming: false) }) { Text("Confirm Payment", comment:"pay P2P request/invoice") // SHEET_PAY_P2P - }.buttonStyle(TalerButtonStyle(type: .prominent)) - .padding() + } + .buttonStyle(TalerButtonStyle(type: .prominent)) + .padding(.horizontal) } else { WithdrawProgressView(message: url.host ?? "Yikes - no valid URL") .navigationTitle("Contacting Exchange") diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift @@ -46,8 +46,9 @@ struct P2pReceiveURIView: View { incoming: true) }) { Text("Accept P2P Receive") // SHEET_RCV_P2P_ACCEPT - }.buttonStyle(TalerButtonStyle(type: .prominent)) - .padding() + } + .buttonStyle(TalerButtonStyle(type: .prominent)) + .padding(.horizontal) } else { ToSButtonView(exchangeBaseUrl: nil, viewID: SHEET_RCV_P2P_TOS, diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift @@ -56,8 +56,9 @@ struct WithdrawURIView: View { url: url) }) { Text("Confirm Withdrawal") // SHEET_WITHDRAW_ACCEPT - }.buttonStyle(TalerButtonStyle(type: .prominent)) - .padding() + } + .buttonStyle(TalerButtonStyle(type: .prominent)) + .padding(.horizontal) } else { ToSButtonView(exchangeBaseUrl: exchangeBaseUrl, viewID: SHEET_WITHDRAW_TOS,