mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
added the "links" color from figma
This commit is contained in:
@@ -48,5 +48,7 @@ public struct ColorValues: Colors {
|
||||
|
||||
public let ems: UIColor
|
||||
|
||||
public let links: UIColor
|
||||
|
||||
public let namesAndAvatars: [UIColor]
|
||||
}
|
||||
|
||||
@@ -67,6 +67,10 @@ public protocol Colors {
|
||||
/// Global color: The EMS brand's purple colour.
|
||||
var ems: ColorType { get }
|
||||
|
||||
/// - Links
|
||||
/// - Hyperlinks
|
||||
var links: ColorType { get }
|
||||
|
||||
/// - Names in chat timeline
|
||||
/// - Avatars default states that include first name letter
|
||||
var namesAndAvatars: [ColorType] { get }
|
||||
|
||||
@@ -21,7 +21,7 @@ import SwiftUI
|
||||
Struct for holding colors for use in SwiftUI.
|
||||
*/
|
||||
public struct ColorSwiftUI: Colors {
|
||||
|
||||
|
||||
public let accent: Color
|
||||
|
||||
public let alert: Color
|
||||
@@ -48,8 +48,10 @@ public struct ColorSwiftUI: Colors {
|
||||
|
||||
public var ems: Color
|
||||
|
||||
public let namesAndAvatars: [Color]
|
||||
public let links: Color
|
||||
|
||||
public let namesAndAvatars: [Color]
|
||||
|
||||
init(values: ColorValues) {
|
||||
accent = Color(values.accent)
|
||||
alert = Color(values.alert)
|
||||
@@ -64,6 +66,7 @@ public struct ColorSwiftUI: Colors {
|
||||
navigation = Color(values.navigation)
|
||||
background = Color(values.background)
|
||||
ems = Color(values.ems)
|
||||
links = Color(values.links)
|
||||
namesAndAvatars = values.namesAndAvatars.map({ Color($0) })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,8 @@ import UIKit
|
||||
public let navigation: UIColor
|
||||
|
||||
public let background: UIColor
|
||||
|
||||
public let links: UIColor
|
||||
|
||||
public let namesAndAvatars: [UIColor]
|
||||
|
||||
@@ -61,6 +63,7 @@ import UIKit
|
||||
tile = values.tile
|
||||
navigation = values.navigation
|
||||
background = values.background
|
||||
links = values.links
|
||||
namesAndAvatars = values.namesAndAvatars
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user