mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-16 06:28:27 +02:00
5720: Rework some location sharing related view
This commit is contained in:
@@ -47,4 +47,10 @@ public struct ColorValues: Colors {
|
||||
public let background: UIColor
|
||||
|
||||
public let namesAndAvatars: [UIColor]
|
||||
|
||||
// MARK: - Others colors
|
||||
|
||||
public let white: UIColor
|
||||
|
||||
public let purple: UIColor
|
||||
}
|
||||
|
||||
@@ -68,4 +68,11 @@ public protocol Colors {
|
||||
/// - Avatars default states that include first name letter
|
||||
var namesAndAvatars: [ColorType] { get }
|
||||
|
||||
// MARK: - Others colors
|
||||
|
||||
/// White
|
||||
var white: ColorType { get }
|
||||
|
||||
/// Purple
|
||||
var purple: ColorType { get }
|
||||
}
|
||||
|
||||
@@ -49,6 +49,12 @@ public struct ColorSwiftUI: Colors {
|
||||
|
||||
public let namesAndAvatars: [Color]
|
||||
|
||||
// MARK: - Others colors
|
||||
|
||||
public let white: Color
|
||||
|
||||
public let purple: Color
|
||||
|
||||
init(values: ColorValues) {
|
||||
accent = Color(values.accent)
|
||||
alert = Color(values.alert)
|
||||
@@ -63,5 +69,7 @@ public struct ColorSwiftUI: Colors {
|
||||
navigation = Color(values.navigation)
|
||||
background = Color(values.background)
|
||||
namesAndAvatars = values.namesAndAvatars.map({ Color($0) })
|
||||
white = Color(values.white)
|
||||
purple = Color(values.purple)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,12 @@ import UIKit
|
||||
|
||||
public let namesAndAvatars: [UIColor]
|
||||
|
||||
// MARK: - Others colors
|
||||
|
||||
public let white: UIColor
|
||||
|
||||
public let purple: UIColor
|
||||
|
||||
init(values: ColorValues) {
|
||||
accent = values.accent
|
||||
alert = values.alert
|
||||
@@ -62,6 +68,8 @@ import UIKit
|
||||
navigation = values.navigation
|
||||
background = values.background
|
||||
namesAndAvatars = values.namesAndAvatars
|
||||
white = values.white
|
||||
purple = values.purple
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,9 @@ public class DarkColors {
|
||||
UIColor(rgb:0x2DC2C5),
|
||||
UIColor(rgb:0x5C56F5),
|
||||
UIColor(rgb:0x74D12C)
|
||||
]
|
||||
],
|
||||
white: UIColor(rgb: 0xFFFFFF),
|
||||
purple: UIColor(rgb: 0x5C56F5)
|
||||
)
|
||||
|
||||
public static var uiKit = ColorsUIKit(values: values)
|
||||
|
||||
@@ -43,7 +43,9 @@ public class LightColors {
|
||||
UIColor(rgb:0x2DC2C5),
|
||||
UIColor(rgb:0x5C56F5),
|
||||
UIColor(rgb:0x74D12C)
|
||||
]
|
||||
],
|
||||
white: UIColor(rgb: 0xFFFFFF),
|
||||
purple: UIColor(rgb: 0x5C56F5)
|
||||
)
|
||||
|
||||
public static var uiKit = ColorsUIKit(values: values)
|
||||
|
||||
Reference in New Issue
Block a user