Skip to content

Commit 07ab14f

Browse files
author
Isaac
committed
Updates
1 parent 4b04a6c commit 07ab14f

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

submodules/TelegramPresentationData/Sources/DefaultDarkPresentationTheme.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ public func makeDefaultDarkPresentationTheme(extendingThemeReference: Presentati
678678
mediaRecordingDotColor: UIColor(rgb: 0xeb5545),
679679
mediaRecordingControl: inputPanelMediaRecordingControl
680680
)
681+
682+
let inputMediaBackgroundColor = UIColor(rgb: 0xffffff, alpha: 0.14).blitOver(.black, alpha: 1.0).withAlphaComponent(0.95).withMultipliedAlpha(0.7)
681683

682684
let inputMediaPanel = PresentationThemeInputMediaPanel(
683685
panelSeparatorColor: UIColor(rgb: 0x545458, alpha: 0.55),
@@ -695,14 +697,14 @@ public func makeDefaultDarkPresentationTheme(extendingThemeReference: Presentati
695697
panelContentOpaqueSearchOverlayColor: UIColor(rgb: 0x808080),
696698
panelContentOpaqueSearchOverlaySelectedColor: UIColor(rgb: 0x808080),
697699
panelContentOpaqueSearchOverlayHighlightColor: UIColor(rgb: 0x808080).withMultipliedAlpha(0.25),
698-
stickersBackgroundColor: UIColor(rgb: 0x000000),
700+
stickersBackgroundColor: inputMediaBackgroundColor,
699701
stickersSectionTextColor: UIColor(rgb: 0x7b7b7b),
700702
stickersSearchBackgroundColor: UIColor(rgb: 0x1c1c1d),
701703
stickersSearchPlaceholderColor: UIColor(rgb: 0x8d8e93),
702704
stickersSearchPrimaryColor: UIColor(rgb: 0xffffff),
703705
stickersSearchControlColor: UIColor(rgb: 0x8d8e93),
704-
gifsBackgroundColor: UIColor(rgb: 0x000000),
705-
backgroundColor: UIColor(rgb: 0x000000, alpha: 0.75)
706+
gifsBackgroundColor: inputMediaBackgroundColor,
707+
backgroundColor: inputMediaBackgroundColor
706708
)
707709

708710
let inputButtonPanel = PresentationThemeInputButtonPanel(

submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,10 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
640640

641641
self.context = context
642642

643-
self.enableBounceAnimations = true
643+
/*self.enableBounceAnimations = true
644644
if let data = context.currentAppConfiguration.with({ $0 }).data, data["ios_killswitch_input_bounce"] != nil {
645645
self.enableBounceAnimations = false
646-
}
646+
}*/
647647

648648
self.addSubnode(self.clippingNode)
649649

submodules/TelegramUI/Components/GlassBackgroundComponent/Sources/GlassBackgroundComponent.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,18 +803,18 @@ public extension GlassBackgroundView {
803803
return generateImage(size, rotatedContext: { size, context in
804804
context.clear(CGRect(origin: CGPoint(), size: size))
805805

806-
let maxColor = UIColor(white: 1.0, alpha: isDark ? 0.25 : 0.9)
806+
let maxColor = UIColor(white: 1.0, alpha: isDark ? 0.2 : 0.9)
807807
let minColor = UIColor(white: 1.0, alpha: 0.0)
808808

809809
context.setFillColor(fillColor.cgColor)
810810
context.fillEllipse(in: CGRect(origin: CGPoint(), size: size))
811811

812-
let lineWidth: CGFloat = isDark ? 0.66 : 0.66
812+
let lineWidth: CGFloat = isDark ? 0.33 : 0.66
813813

814814
context.saveGState()
815815

816-
let darkShadeColor = UIColor(white: isDark ? 1.0 : 0.0, alpha: 0.035)
817-
let lightShadeColor = UIColor(white: isDark ? 0.0 : 1.0, alpha: 0.035)
816+
let darkShadeColor = UIColor(white: isDark ? 1.0 : 0.0, alpha: isDark ? 0.0 : 0.035)
817+
let lightShadeColor = UIColor(white: isDark ? 0.0 : 1.0, alpha: isDark ? 0.0 : 0.035)
818818
let innerShadowBlur: CGFloat = 24.0
819819

820820
context.resetClip()

0 commit comments

Comments
 (0)