commit 05c3e06555527d210808e4a384cbefd02874cbee
parent 0a19328a79f548fef35a9b41efe6f46c87741971
Author: Marc Stibane <marc@taler.net>
Date: Thu, 17 Jul 2025 15:57:39 +0200
tint buttons with talerColor
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/Buttons.swift b/TalerWallet1/Views/HelperViews/Buttons.swift
@@ -147,6 +147,7 @@ struct PlusButton : View {
Button(action: action) {
Image(systemName: "plus")
}
+ .tint(WalletColors().talerColor)
.talerFont(.title)
.accessibilityLabel(accessibilityLabelStr)
}
@@ -159,6 +160,7 @@ struct BackButton : View {
Button(action: action) {
Image(ICONNAME_INCOMING + ICONNAME_FILL)
}
+ .tint(WalletColors().talerColor)
.talerFont(.largeTitle)
.accessibilityLabel(Text("Back", comment: "a11y"))
}
@@ -179,6 +181,7 @@ struct ForwardButton : View {
: ICONNAME_OUTGOING
Image(imageName)
}
+ .tint(WalletColors().talerColor)
.talerFont(.largeTitle)
.accessibilityLabel(Text("Continue", comment: "a11y"))
}
@@ -191,6 +194,7 @@ struct ArrowUpButton : View {
Button(action: action) {
Image(systemName: "arrow.up.to.line")
}
+ .tint(WalletColors().talerColor)
.talerFont(.title2)
.accessibilityLabel(Text("Scroll up", comment: "a11y"))
}
@@ -203,6 +207,7 @@ struct ArrowDownButton : View {
Button(action: action) {
Image(systemName: "arrow.down.to.line")
}
+ .tint(WalletColors().talerColor)
.talerFont(.title2)
.accessibilityLabel(Text("Scroll down", comment: "a11y"))
}
@@ -216,6 +221,7 @@ struct ReloadButton : View {
Button(action: action) {
Image(systemName: "arrow.clockwise")
}
+ .tint(WalletColors().talerColor)
.talerFont(.title)
.accessibilityLabel(Text("Reload", comment: "a11y"))
.disabled(disabled)
diff --git a/TalerWallet1/Views/HelperViews/CopyShare.swift b/TalerWallet1/Views/HelperViews/CopyShare.swift
@@ -55,6 +55,7 @@ struct CopyButton: View {
}
}
}
+ .tint(WalletColors().talerColor)
.talerFont(.body)
.disabled(!isEnabled)
}
@@ -92,6 +93,7 @@ struct ShareButton: View {
Text(title)
}
}
+ .tint(WalletColors().talerColor)
.talerFont(.body)
.disabled(!isEnabled)
}