mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Temp glass UI
This commit is contained in:
parent
0638c08b75
commit
bc6b472960
5 changed files with 14 additions and 7 deletions
|
|
@ -367,7 +367,7 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, ASScroll
|
|||
self.scrollWrapperNode = CaptionScrollWrapperNode()
|
||||
self.scrollWrapperNode.layer.allowsGroupOpacity = true
|
||||
self.scrollWrapperNode.clipsToBounds = true
|
||||
self.scrollWrapperEffect = VariableBlurEffect(layer: self.scrollWrapperNode.layer, isTransparent: true, maxBlurRadius: 3.0)
|
||||
self.scrollWrapperEffect = VariableBlurEffect(layer: self.scrollWrapperNode.layer, isTransparent: true, maxBlurRadius: 1.0)
|
||||
self.scrollWrapperNode.backgroundColor = .clear
|
||||
self.scrollWrapperNode.isOpaque = false
|
||||
|
||||
|
|
|
|||
|
|
@ -1637,6 +1637,8 @@ private class ImageRecognitionOverlayContentNode: GalleryOverlayContentNode {
|
|||
} else {
|
||||
transition.setAlpha(view: self.backgroundContainer, alpha: 1.0)
|
||||
}
|
||||
} else {
|
||||
transition.setAlpha(view: self.backgroundContainer, alpha: 0.0)
|
||||
}
|
||||
|
||||
var buttonPosition: CGPoint
|
||||
|
|
|
|||
|
|
@ -544,6 +544,7 @@ private final class GiftAuctionViewSheetContent: CombinedComponent {
|
|||
var isUpcoming = false
|
||||
var isEnded = false
|
||||
var tableItems: [TableComponent.Item] = []
|
||||
|
||||
if let auctionState = state.giftAuctionState, case let .generic(gift) = component.auctionContext.gift {
|
||||
startTime = auctionState.startDate
|
||||
endTime = auctionState.endDate
|
||||
|
|
@ -1019,13 +1020,13 @@ private final class GiftAuctionViewSheetContent: CombinedComponent {
|
|||
var variant3: GiftItemComponent.Subject = .starGift(gift: gift, price: "")
|
||||
if !state.previewModels.isEmpty {
|
||||
if state.previewModels.count > 0 {
|
||||
variant1 = .preview(attributes: [state.previewModels[0]], rarity: 0)
|
||||
variant1 = .preview(attributes: [state.previewModels[0]], rarity: nil)
|
||||
}
|
||||
if state.previewModels.count > 1 {
|
||||
variant2 = .preview(attributes: [state.previewModels[1]], rarity: 0)
|
||||
variant2 = .preview(attributes: [state.previewModels[1]], rarity: nil)
|
||||
}
|
||||
if state.previewModels.count > 2 {
|
||||
variant3 = .preview(attributes: [state.previewModels[2]], rarity: 0)
|
||||
variant3 = .preview(attributes: [state.previewModels[2]], rarity: nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1082,7 +1083,7 @@ private final class GiftAuctionViewSheetContent: CombinedComponent {
|
|||
guard let state, let attributes = state.giftUpgradeAttributes else {
|
||||
return
|
||||
}
|
||||
let variantsController = component.context.sharedContext.makeGiftUpgradeVariantsScreen(context: component.context, gift: .generic(gift), attributes: attributes, selectedAttributes: nil, focusedAttribute: nil)
|
||||
let variantsController = component.context.sharedContext.makeGiftUpgradeVariantsScreen(context: component.context, gift: .generic(gift), onlyCrafted: false, attributes: attributes, selectedAttributes: nil, focusedAttribute: nil)
|
||||
environment.controller()?.push(variantsController)
|
||||
}, animateScale: false),
|
||||
availableSize: CGSize(width: context.availableSize.width - 64.0, height: context.availableSize.height),
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@ private final class GiftAuctionWearPreviewSheetContent: CombinedComponent {
|
|||
context: component.context,
|
||||
theme: theme,
|
||||
strings: strings,
|
||||
subject: .preview(attributes: attributes, rarity: 0),
|
||||
subject: .preview(attributes: attributes, rarity: nil),
|
||||
ribbon: GiftItemComponent.Ribbon(text: strings.Gift_WearPreview_Upgraded, color: ribbonColor),
|
||||
animateChanges: true,
|
||||
mode: .thumbnail
|
||||
|
|
|
|||
|
|
@ -3369,7 +3369,11 @@ private final class ChatReadReportContextItemNode: ASDisplayNode, ContextMenuCus
|
|||
}
|
||||
}
|
||||
} else {
|
||||
self.textNode.attributedText = NSAttributedString(string: " ", font: textFont, textColor: self.presentationData.theme.contextMenu.primaryColor)
|
||||
var actualFont = textFont
|
||||
if self.item.message.id.peerId.namespace == Namespaces.Peer.CloudUser {
|
||||
actualFont = Font.regular(floor(self.presentationData.listsFontSize.baseDisplaySize * 0.8))
|
||||
}
|
||||
self.textNode.attributedText = NSAttributedString(string: " ", font: actualFont, textColor: self.presentationData.theme.contextMenu.primaryColor)
|
||||
}
|
||||
|
||||
let textSize = self.textNode.updateLayout(CGSize(width: calculatedWidth - sideInset - rightTextInset - iconSize.width - 4.0, height: .greatestFiniteMagnitude))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue