mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Minor tweaks to the message composer. (#548)
This commit is contained in:
@@ -21,6 +21,7 @@ import SwiftUI
|
||||
|
||||
public extension Color {
|
||||
static let element = ElementColors()
|
||||
static let global = Color.global
|
||||
}
|
||||
|
||||
public struct ElementColors {
|
||||
@@ -128,25 +129,6 @@ public extension UIColor {
|
||||
let colorIndex = Int(contentId.hashCode % Int32(contentAndAvatars.count))
|
||||
return contentAndAvatars[colorIndex % contentAndAvatars.count]
|
||||
}
|
||||
|
||||
// MARK: - Temp
|
||||
|
||||
private var tempActionBlack: UIColor { UIColor(red: 20 / 255, green: 20 / 255, blue: 20 / 255, alpha: 1.0) }
|
||||
|
||||
public var tempActionBackground: UIColor {
|
||||
UIColor { collection in
|
||||
collection.userInterfaceStyle == .light ? self.tempActionBlack : .white
|
||||
}
|
||||
}
|
||||
|
||||
public var tempActionForeground: UIColor {
|
||||
UIColor { collection in
|
||||
collection.userInterfaceStyle == .light ? .white : self.tempActionBlack
|
||||
}
|
||||
}
|
||||
|
||||
public var tempActionBackgroundTint: UIColor { tempActionBackground.withAlphaComponent(0.2) }
|
||||
public var tempActionForegroundTint: UIColor { tempActionForeground.withAlphaComponent(0.2) }
|
||||
}
|
||||
|
||||
private extension String {
|
||||
|
||||
Reference in New Issue
Block a user