mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-16 06:28:27 +02:00
5720: Remove useless color, fix some issue with AvatarImage border
This commit is contained in:
@@ -47,10 +47,4 @@ public struct ColorValues: Colors {
|
||||
public let background: UIColor
|
||||
|
||||
public let namesAndAvatars: [UIColor]
|
||||
|
||||
// MARK: - Others colors
|
||||
|
||||
public let white: UIColor
|
||||
|
||||
public let purple: UIColor
|
||||
}
|
||||
|
||||
@@ -67,12 +67,4 @@ public protocol Colors {
|
||||
/// - Names in chat timeline
|
||||
/// - 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,12 +49,6 @@ 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)
|
||||
@@ -69,7 +63,5 @@ 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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,12 +47,6 @@ import UIKit
|
||||
public let background: UIColor
|
||||
|
||||
public let namesAndAvatars: [UIColor]
|
||||
|
||||
// MARK: - Others colors
|
||||
|
||||
public let white: UIColor
|
||||
|
||||
public let purple: UIColor
|
||||
|
||||
init(values: ColorValues) {
|
||||
accent = values.accent
|
||||
@@ -68,8 +62,6 @@ import UIKit
|
||||
navigation = values.navigation
|
||||
background = values.background
|
||||
namesAndAvatars = values.namesAndAvatars
|
||||
white = values.white
|
||||
purple = values.purple
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,9 +42,7 @@ 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,9 +43,7 @@ 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