mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix send button
This commit is contained in:
parent
c110359f54
commit
c3d4c8e2c5
@ -433,7 +433,7 @@ public struct PresentationResourcesChat {
|
|||||||
return generateImage(CGSize(width: 33.0, height: 33.0), rotatedContext: { size, context in
|
return generateImage(CGSize(width: 33.0, height: 33.0), rotatedContext: { size, context in
|
||||||
context.clear(CGRect(origin: CGPoint(), size: size))
|
context.clear(CGRect(origin: CGPoint(), size: size))
|
||||||
let color: UIColor
|
let color: UIColor
|
||||||
if theme.referenceTheme.baseTheme == .night, theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
if [.day, .night].contains(theme.referenceTheme.baseTheme) && theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
||||||
color = .white
|
color = .white
|
||||||
} else {
|
} else {
|
||||||
color = theme.chat.inputPanel.actionControlForegroundColor
|
color = theme.chat.inputPanel.actionControlForegroundColor
|
||||||
@ -470,7 +470,7 @@ public struct PresentationResourcesChat {
|
|||||||
return generateImage(CGSize(width: 33.0, height: 33.0), rotatedContext: { size, context in
|
return generateImage(CGSize(width: 33.0, height: 33.0), rotatedContext: { size, context in
|
||||||
context.clear(CGRect(origin: CGPoint(), size: size))
|
context.clear(CGRect(origin: CGPoint(), size: size))
|
||||||
let color: UIColor
|
let color: UIColor
|
||||||
if theme.referenceTheme.baseTheme == .night, theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
if [.day, .night].contains(theme.referenceTheme.baseTheme) && theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
||||||
color = .white
|
color = .white
|
||||||
} else {
|
} else {
|
||||||
color = theme.chat.inputPanel.actionControlForegroundColor
|
color = theme.chat.inputPanel.actionControlForegroundColor
|
||||||
@ -515,7 +515,7 @@ public struct PresentationResourcesChat {
|
|||||||
context.translateBy(x: -imageRect.midX, y: -imageRect.midY)
|
context.translateBy(x: -imageRect.midX, y: -imageRect.midY)
|
||||||
|
|
||||||
let color: UIColor
|
let color: UIColor
|
||||||
if theme.referenceTheme.baseTheme == .night, theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
if [.day, .night].contains(theme.referenceTheme.baseTheme) && theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
||||||
color = .white
|
color = .white
|
||||||
} else {
|
} else {
|
||||||
color = theme.chat.inputPanel.actionControlForegroundColor
|
color = theme.chat.inputPanel.actionControlForegroundColor
|
||||||
|
@ -112,14 +112,14 @@ final class ChatTextInputActionButtonsNode: ASDisplayNode {
|
|||||||
|
|
||||||
self.backgroundNode.backgroundColor = theme.chat.inputPanel.actionControlFillColor
|
self.backgroundNode.backgroundColor = theme.chat.inputPanel.actionControlFillColor
|
||||||
|
|
||||||
if theme.referenceTheme.baseTheme == .night, theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
if [.day, .night].contains(theme.referenceTheme.baseTheme) && theme.chat.message.outgoing.bubble.withWallpaper.fill.count > 1 {
|
||||||
self.backdropNode.isHidden = false
|
self.backdropNode.isHidden = false
|
||||||
} else {
|
} else {
|
||||||
self.backdropNode.isHidden = true
|
self.backdropNode.isHidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
let graphics = PresentationResourcesChat.principalGraphics(theme: theme, wallpaper: wallpaper, bubbleCorners: .init(mainRadius: 1, auxiliaryRadius: 1, mergeBubbleCorners: false))
|
let graphics = PresentationResourcesChat.principalGraphics(theme: theme, wallpaper: wallpaper, bubbleCorners: .init(mainRadius: 1, auxiliaryRadius: 1, mergeBubbleCorners: false))
|
||||||
self.backdropNode.setType(type: .outgoing(.None), theme: ChatPresentationThemeData(theme: theme, wallpaper: wallpaper), essentialGraphics: graphics, maskMode: true, backgroundNode: self.presentationContext?.backgroundNode)
|
self.backdropNode.setType(type: .outgoing(.None), theme: ChatPresentationThemeData(theme: theme, wallpaper: wallpaper), essentialGraphics: graphics, maskMode: false, backgroundNode: self.presentationContext?.backgroundNode)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var absoluteRect: (CGRect, CGSize)?
|
private var absoluteRect: (CGRect, CGSize)?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user