diff --git a/submodules/AttachmentTextInputPanelNode/Sources/AttachmentTextInputActionButtonsNode.swift b/submodules/AttachmentTextInputPanelNode/Sources/AttachmentTextInputActionButtonsNode.swift index c150b32d94..ff2646b87a 100644 --- a/submodules/AttachmentTextInputPanelNode/Sources/AttachmentTextInputActionButtonsNode.swift +++ b/submodules/AttachmentTextInputPanelNode/Sources/AttachmentTextInputActionButtonsNode.swift @@ -152,8 +152,10 @@ final class AttachmentTextInputActionButtonsNode: ASDisplayNode, ChatSendMessage } titleOffset -= 2.0 buttonInset = 14.0 + self.iconNode.isHidden = true } else { segments.append(.text(0, NSAttributedString(string: text, font: Font.semibold(17.0), textColor: interfaceState.theme.chat.inputPanel.actionControlForegroundColor))) + self.iconNode.isHidden = false } self.textNode.segments = segments diff --git a/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift b/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift index 2bd8f13ac7..bee29b5e40 100644 --- a/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift +++ b/submodules/TelegramUI/Components/GlassBarButtonComponent/Sources/GlassBarButtonComponent.swift @@ -64,7 +64,7 @@ public final class GlassBarButtonComponent: Component { private let containerView: UIView private let genericContainerView: UIView private let genericBackgroundView: SimpleGlassView - private let glassContainerView: GlassBackgroundContainerView + private let glassContainerView: UIView private var glassBackgroundView: GlassBackgroundView? private var componentView: ComponentView? @@ -74,7 +74,7 @@ public final class GlassBarButtonComponent: Component { self.containerView = UIView() self.genericContainerView = UIView() self.genericBackgroundView = SimpleGlassView() - self.glassContainerView = GlassBackgroundContainerView() + self.glassContainerView = UIView() super.init(frame: frame) @@ -189,9 +189,9 @@ public final class GlassBarButtonComponent: Component { transition.setAlpha(view: self.genericContainerView, alpha: genericAlpha) transition.setFrame(view: self.genericContainerView, frame: bounds) - transition.setAlpha(view: self.glassContainerView, alpha: glassAlpha) + //transition.setAlpha(view: self.glassContainerView, alpha: glassAlpha) transition.setFrame(view: self.glassContainerView, frame: bounds) - self.glassContainerView.update(size: bounds.size, isDark: component.isDark, transition: transition) + //self.glassContainerView.update(size: bounds.size, isDark: component.isDark, transition: transition) transition.setFrame(view: self.genericBackgroundView, frame: bounds) @@ -204,7 +204,7 @@ public final class GlassBarButtonComponent: Component { glassBackgroundTransition = .immediate glassBackgroundView = GlassBackgroundView() glassBackgroundView.isUserInteractionEnabled = false - self.glassContainerView.contentView.addSubview(glassBackgroundView) + self.glassContainerView.addSubview(glassBackgroundView) self.glassBackgroundView = glassBackgroundView transition.animateAlpha(view: glassBackgroundView, from: 0.0, to: 1.0)