This commit is contained in:
Isaac 2025-10-04 01:52:24 +08:00
parent 4b04a6c69e
commit 07ab14f625
3 changed files with 11 additions and 9 deletions

View File

@ -679,6 +679,8 @@ public func makeDefaultDarkPresentationTheme(extendingThemeReference: Presentati
mediaRecordingControl: inputPanelMediaRecordingControl
)
let inputMediaBackgroundColor = UIColor(rgb: 0xffffff, alpha: 0.14).blitOver(.black, alpha: 1.0).withAlphaComponent(0.95).withMultipliedAlpha(0.7)
let inputMediaPanel = PresentationThemeInputMediaPanel(
panelSeparatorColor: UIColor(rgb: 0x545458, alpha: 0.55),
panelIconColor: UIColor(rgb: 0x808080),
@ -695,14 +697,14 @@ public func makeDefaultDarkPresentationTheme(extendingThemeReference: Presentati
panelContentOpaqueSearchOverlayColor: UIColor(rgb: 0x808080),
panelContentOpaqueSearchOverlaySelectedColor: UIColor(rgb: 0x808080),
panelContentOpaqueSearchOverlayHighlightColor: UIColor(rgb: 0x808080).withMultipliedAlpha(0.25),
stickersBackgroundColor: UIColor(rgb: 0x000000),
stickersBackgroundColor: inputMediaBackgroundColor,
stickersSectionTextColor: UIColor(rgb: 0x7b7b7b),
stickersSearchBackgroundColor: UIColor(rgb: 0x1c1c1d),
stickersSearchPlaceholderColor: UIColor(rgb: 0x8d8e93),
stickersSearchPrimaryColor: UIColor(rgb: 0xffffff),
stickersSearchControlColor: UIColor(rgb: 0x8d8e93),
gifsBackgroundColor: UIColor(rgb: 0x000000),
backgroundColor: UIColor(rgb: 0x000000, alpha: 0.75)
gifsBackgroundColor: inputMediaBackgroundColor,
backgroundColor: inputMediaBackgroundColor
)
let inputButtonPanel = PresentationThemeInputButtonPanel(

View File

@ -640,10 +640,10 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
self.context = context
self.enableBounceAnimations = true
/*self.enableBounceAnimations = true
if let data = context.currentAppConfiguration.with({ $0 }).data, data["ios_killswitch_input_bounce"] != nil {
self.enableBounceAnimations = false
}
}*/
self.addSubnode(self.clippingNode)

View File

@ -803,18 +803,18 @@ public extension GlassBackgroundView {
return generateImage(size, rotatedContext: { size, context in
context.clear(CGRect(origin: CGPoint(), size: size))
let maxColor = UIColor(white: 1.0, alpha: isDark ? 0.25 : 0.9)
let maxColor = UIColor(white: 1.0, alpha: isDark ? 0.2 : 0.9)
let minColor = UIColor(white: 1.0, alpha: 0.0)
context.setFillColor(fillColor.cgColor)
context.fillEllipse(in: CGRect(origin: CGPoint(), size: size))
let lineWidth: CGFloat = isDark ? 0.66 : 0.66
let lineWidth: CGFloat = isDark ? 0.33 : 0.66
context.saveGState()
let darkShadeColor = UIColor(white: isDark ? 1.0 : 0.0, alpha: 0.035)
let lightShadeColor = UIColor(white: isDark ? 0.0 : 1.0, alpha: 0.035)
let darkShadeColor = UIColor(white: isDark ? 1.0 : 0.0, alpha: isDark ? 0.0 : 0.035)
let lightShadeColor = UIColor(white: isDark ? 0.0 : 1.0, alpha: isDark ? 0.0 : 0.035)
let innerShadowBlur: CGFloat = 24.0
context.resetClip()