mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Further design updates to the timeline. (#524)
- Decryption banner on the timeline - Bubble colours - Background insets - Multiline composer corner radius - Read marker - GIF indicator - Reactions shape - Use RoomTimelineViewLabelStyle everywhere possible - Only set a line limit on reply quotes, allow all the lines for regular quotes. - Message label icons - Yes/No button casing - Make sender profiles immutable. - Enable copy link and invite buttons. - Fix layout loop detecting multiline composer text. - Add animation to the encryption banner.
This commit is contained in:
@@ -67,22 +67,19 @@ public struct ElementColors {
|
||||
|
||||
// MARK: - Temp
|
||||
|
||||
private var tempActionBlack: UIColor { UIColor(red: 20 / 255, green: 20 / 255, blue: 20 / 255, alpha: 1.0) }
|
||||
|
||||
public var tempActionBackground: Color {
|
||||
public var bubblesYou: Color {
|
||||
Color(UIColor { collection in
|
||||
collection.userInterfaceStyle == .light ? tempActionBlack : .white
|
||||
// Note: Light colour doesn't currently match Figma.
|
||||
collection.userInterfaceStyle == .light ? .element.systemGray5 : UIColor(red: 0.16, green: 0.18, blue: 0.21, alpha: 1)
|
||||
})
|
||||
}
|
||||
|
||||
public var tempActionForeground: Color {
|
||||
public var bubblesNotYou: Color {
|
||||
Color(UIColor { collection in
|
||||
collection.userInterfaceStyle == .light ? .white : tempActionBlack
|
||||
// Note: Light colour doesn't currently match Figma.
|
||||
collection.userInterfaceStyle == .light ? .element.systemGray6 : .element.system
|
||||
})
|
||||
}
|
||||
|
||||
public var tempActionBackgroundTint: Color { tempActionBackground.opacity(0.2) }
|
||||
public var tempActionForegroundTint: Color { tempActionForeground.opacity(0.2) }
|
||||
}
|
||||
|
||||
// MARK: UIKit
|
||||
|
||||
Reference in New Issue
Block a user