mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Shared media improvements
This commit is contained in:
parent
a7e59cecf4
commit
c95766858d
@ -802,7 +802,7 @@ public final class SparseItemGridScrollingArea: ASDisplayNode {
|
||||
let indicatorSize = self.dateIndicator.update(
|
||||
transition: .immediate,
|
||||
component: AnyComponent(SparseItemGridScrollingIndicatorComponent(
|
||||
backgroundColor: theme.list.itemHighlightedBackgroundColor,
|
||||
backgroundColor: theme.list.itemBlocksBackgroundColor,
|
||||
shadowColor: .black,
|
||||
foregroundColor: theme.list.itemPrimaryTextColor,
|
||||
dateString: dateString
|
||||
|
@ -209,8 +209,8 @@ public final class SparseMessageList {
|
||||
var removeIndices: [Int] = []
|
||||
for i in 0 ..< sparseItems.items.count {
|
||||
switch sparseItems.items[i] {
|
||||
case let .anchor(id, _, message):
|
||||
if message != nil, idsSet.contains(id) {
|
||||
case let .anchor(id, _, _):
|
||||
if idsSet.contains(id) {
|
||||
removeIndices.append(i)
|
||||
}
|
||||
default:
|
||||
|
@ -389,7 +389,7 @@ public func makeDefaultDarkPresentationTheme(extendingThemeReference: Presentati
|
||||
controlColor: UIColor(rgb: 0x98989e)
|
||||
),
|
||||
mediaPlaceholderColor: UIColor(rgb: 0xffffff).mixedWith(UIColor(rgb: 0x1c1c1d), alpha: 0.9),
|
||||
scrollIndicatorColor: UIColor(rgb: 0xffffff, alpha: 0.3),
|
||||
scrollIndicatorColor: UIColor(rgb: 0xffffff, alpha: 0.5),
|
||||
pageIndicatorInactiveColor: UIColor(white: 1.0, alpha: 0.3),
|
||||
inputClearButtonColor: UIColor(rgb: 0x8b9197),
|
||||
itemBarChart: PresentationThemeItemBarChart(color1: UIColor(rgb: 0xffffff), color2: UIColor(rgb: 0x929196), color3: UIColor(rgb: 0x333333)),
|
||||
|
@ -644,7 +644,7 @@ public func makeDefaultDarkTintedPresentationTheme(extendingThemeReference: Pres
|
||||
controlColor: mainSecondaryTextColor.withAlphaComponent(0.5)
|
||||
),
|
||||
mediaPlaceholderColor: UIColor(rgb: 0xffffff).mixedWith(mainBackgroundColor, alpha: 0.9),
|
||||
scrollIndicatorColor: UIColor(white: 1.0, alpha: 0.3),
|
||||
scrollIndicatorColor: UIColor(white: 1.0, alpha: 0.5),
|
||||
pageIndicatorInactiveColor: mainSecondaryTextColor.withAlphaComponent(0.4),
|
||||
inputClearButtonColor: mainSecondaryColor,
|
||||
itemBarChart: PresentationThemeItemBarChart(color1: accentColor, color2: mainSecondaryTextColor.withAlphaComponent(0.5), color3: accentColor.withMultiplied(hue: 1.038, saturation: 0.329, brightness: 0.33)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user