Shared media improvements

This commit is contained in:
Ali 2021-10-26 14:24:21 +04:00
parent a7e59cecf4
commit c95766858d
4 changed files with 5 additions and 5 deletions

View File

@ -802,7 +802,7 @@ public final class SparseItemGridScrollingArea: ASDisplayNode {
let indicatorSize = self.dateIndicator.update( let indicatorSize = self.dateIndicator.update(
transition: .immediate, transition: .immediate,
component: AnyComponent(SparseItemGridScrollingIndicatorComponent( component: AnyComponent(SparseItemGridScrollingIndicatorComponent(
backgroundColor: theme.list.itemHighlightedBackgroundColor, backgroundColor: theme.list.itemBlocksBackgroundColor,
shadowColor: .black, shadowColor: .black,
foregroundColor: theme.list.itemPrimaryTextColor, foregroundColor: theme.list.itemPrimaryTextColor,
dateString: dateString dateString: dateString

View File

@ -209,8 +209,8 @@ public final class SparseMessageList {
var removeIndices: [Int] = [] var removeIndices: [Int] = []
for i in 0 ..< sparseItems.items.count { for i in 0 ..< sparseItems.items.count {
switch sparseItems.items[i] { switch sparseItems.items[i] {
case let .anchor(id, _, message): case let .anchor(id, _, _):
if message != nil, idsSet.contains(id) { if idsSet.contains(id) {
removeIndices.append(i) removeIndices.append(i)
} }
default: default:

View File

@ -389,7 +389,7 @@ public func makeDefaultDarkPresentationTheme(extendingThemeReference: Presentati
controlColor: UIColor(rgb: 0x98989e) controlColor: UIColor(rgb: 0x98989e)
), ),
mediaPlaceholderColor: UIColor(rgb: 0xffffff).mixedWith(UIColor(rgb: 0x1c1c1d), alpha: 0.9), 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), pageIndicatorInactiveColor: UIColor(white: 1.0, alpha: 0.3),
inputClearButtonColor: UIColor(rgb: 0x8b9197), inputClearButtonColor: UIColor(rgb: 0x8b9197),
itemBarChart: PresentationThemeItemBarChart(color1: UIColor(rgb: 0xffffff), color2: UIColor(rgb: 0x929196), color3: UIColor(rgb: 0x333333)), itemBarChart: PresentationThemeItemBarChart(color1: UIColor(rgb: 0xffffff), color2: UIColor(rgb: 0x929196), color3: UIColor(rgb: 0x333333)),

View File

@ -644,7 +644,7 @@ public func makeDefaultDarkTintedPresentationTheme(extendingThemeReference: Pres
controlColor: mainSecondaryTextColor.withAlphaComponent(0.5) controlColor: mainSecondaryTextColor.withAlphaComponent(0.5)
), ),
mediaPlaceholderColor: UIColor(rgb: 0xffffff).mixedWith(mainBackgroundColor, alpha: 0.9), 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), pageIndicatorInactiveColor: mainSecondaryTextColor.withAlphaComponent(0.4),
inputClearButtonColor: mainSecondaryColor, inputClearButtonColor: mainSecondaryColor,
itemBarChart: PresentationThemeItemBarChart(color1: accentColor, color2: mainSecondaryTextColor.withAlphaComponent(0.5), color3: accentColor.withMultiplied(hue: 1.038, saturation: 0.329, brightness: 0.33)), itemBarChart: PresentationThemeItemBarChart(color1: accentColor, color2: mainSecondaryTextColor.withAlphaComponent(0.5), color3: accentColor.withMultiplied(hue: 1.038, saturation: 0.329, brightness: 0.33)),