mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Animation updates
This commit is contained in:
@@ -635,22 +635,20 @@ public struct PresentationThemeBubbleShadow {
|
||||
}
|
||||
|
||||
public final class PresentationThemeBubbleColorComponents {
|
||||
public let fill: UIColor
|
||||
public let gradientFill: UIColor
|
||||
public let fill: [UIColor]
|
||||
public let highlightedFill: UIColor
|
||||
public let stroke: UIColor
|
||||
public let shadow: PresentationThemeBubbleShadow?
|
||||
|
||||
public init(fill: UIColor, gradientFill: UIColor? = nil, highlightedFill: UIColor, stroke: UIColor, shadow: PresentationThemeBubbleShadow?) {
|
||||
public init(fill: [UIColor], highlightedFill: UIColor, stroke: UIColor, shadow: PresentationThemeBubbleShadow?) {
|
||||
self.fill = fill
|
||||
self.gradientFill = gradientFill ?? fill
|
||||
self.highlightedFill = highlightedFill
|
||||
self.stroke = stroke
|
||||
self.shadow = shadow
|
||||
}
|
||||
|
||||
public func withUpdated(fill: UIColor? = nil, gradientFill: UIColor? = nil, highlightedFill: UIColor? = nil, stroke: UIColor? = nil) -> PresentationThemeBubbleColorComponents {
|
||||
return PresentationThemeBubbleColorComponents(fill: fill ?? self.fill, gradientFill: gradientFill ?? self.gradientFill, highlightedFill: highlightedFill ?? self.highlightedFill, stroke: stroke ?? self.stroke, shadow: self.shadow)
|
||||
public func withUpdated(fill: [UIColor]? = nil, highlightedFill: UIColor? = nil, stroke: UIColor? = nil) -> PresentationThemeBubbleColorComponents {
|
||||
return PresentationThemeBubbleColorComponents(fill: fill ?? self.fill, highlightedFill: highlightedFill ?? self.highlightedFill, stroke: stroke ?? self.stroke, shadow: self.shadow)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user