fix: add ShapeStyle extension for brand colors to resolve ambiguous dot-syntax
This commit is contained in:
parent
8ecd533429
commit
3fbb44d22c
1 changed files with 11 additions and 0 deletions
|
|
@ -3,6 +3,17 @@ import SwiftUI
|
|||
/// Payfrit brand colors — matches Android colors.xml exactly
|
||||
/// Primary: #22B24B (Payfrit Green)
|
||||
/// Dark: #1A8A3A
|
||||
|
||||
// MARK: - ShapeStyle convenience (resolves ambiguous dot-syntax in foregroundStyle/background)
|
||||
extension ShapeStyle where Self == Color {
|
||||
static var warningOrange: Color { Color.warningOrange }
|
||||
static var errorRed: Color { Color.errorRed }
|
||||
static var successGreen: Color { Color.successGreen }
|
||||
static var infoBlue: Color { Color.infoBlue }
|
||||
static var payfritGreen: Color { Color.payfritGreen }
|
||||
static var payfritGreenDark: Color { Color.payfritGreenDark }
|
||||
}
|
||||
|
||||
extension Color {
|
||||
// MARK: - Brand
|
||||
static let payfritGreen = Color(red: 0x22/255.0, green: 0xB2/255.0, blue: 0x4B/255.0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue