commit 158b189316636befc7dbff9727c937bfaf30c24c
parent 63cd1609f24380f36558d50bb73881bec1fc222b
Author: Marc Stibane <marc@taler.net>
Date: Mon, 8 Apr 2024 15:55:08 +0200
errorColor
Diffstat:
2 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Assets.xcassets/Error.colorset/Contents.json b/TalerWallet1/Assets.xcassets/Error.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "display-p3",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "24",
+ "green" : "35",
+ "red" : "175"
+ }
+ },
+ "idiom" : "universal"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "color" : {
+ "color-space" : "display-p3",
+ "components" : {
+ "alpha" : "1.000",
+ "blue" : "36",
+ "green" : "52",
+ "red" : "234"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/TalerWallet1/Helper/WalletColors.swift b/TalerWallet1/Helper/WalletColors.swift
@@ -64,6 +64,9 @@ public struct WalletColors {
// used in TransactionRowView
gray1
}
+ func errorColor() -> Color {
+ Color("Error")
+ }
func pendingColor(_ incoming: Bool) -> Color {
incoming ? Color("PendingIncoming")
: Color("PendingOutgoing")