Add holiday icons

This commit is contained in:
Ilya Laktyushin 2021-01-02 15:56:00 +04:00
parent 7c9129a97e
commit 6380dc977b
16 changed files with 53 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import Foundation import Foundation
public func useSpecialTabBarIcons() -> Bool { public func useSpecialTabBarIcons() -> Bool {
return (Date(timeIntervalSince1970: 1581638400)...Date(timeIntervalSince1970: 1581724799)).contains(Date()) return (Date(timeIntervalSince1970: 1608800400)...Date(timeIntervalSince1970: 1609545600)).contains(Date())
} }

View File

@ -149,7 +149,7 @@ class VoiceChatActionItemNode: ListViewItemNode {
updatedTheme = item.presentationData.theme updatedTheme = item.presentationData.theme
} }
let titleFont = Font.regular(item.presentationData.fontSize.itemListBaseFontSize) let titleFont = Font.regular(17.0)
var leftInset: CGFloat = 16.0 + params.leftInset var leftInset: CGFloat = 16.0 + params.leftInset
if case .generic = item.icon { if case .generic = item.icon {

View File

@ -297,8 +297,8 @@ class VoiceChatParticipantItemNode: ItemListRevealOptionsItemNode {
let statusFontSize: CGFloat = floor(item.presentationData.fontSize.itemListBaseFontSize * 14.0 / 17.0) let statusFontSize: CGFloat = floor(item.presentationData.fontSize.itemListBaseFontSize * 14.0 / 17.0)
let titleFont = Font.regular(item.presentationData.fontSize.itemListBaseFontSize) let titleFont = Font.regular(17.0)
let statusFont = Font.regular(statusFontSize) let statusFont = Font.regular(14.0)
var titleAttributedString: NSAttributedString? var titleAttributedString: NSAttributedString?
var statusAttributedString: NSAttributedString? var statusAttributedString: NSAttributedString?

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -1,7 +1,18 @@
{ {
"images" : [ "images" : [
{ {
"idiom" : "universal" "idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Calls@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Calls@3x.png",
"idiom" : "universal",
"scale" : "3x"
} }
], ],
"info" : { "info" : {

View File

@ -1,7 +1,18 @@
{ {
"images" : [ "images" : [
{ {
"idiom" : "universal" "idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Messages@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Messages@3x.png",
"idiom" : "universal",
"scale" : "3x"
} }
], ],
"info" : { "info" : {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -1,7 +1,18 @@
{ {
"images" : [ "images" : [
{ {
"idiom" : "universal" "idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Contacts@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Contacts@3x.png",
"idiom" : "universal",
"scale" : "3x"
} }
], ],
"info" : { "info" : {

View File

@ -1,7 +1,18 @@
{ {
"images" : [ "images" : [
{ {
"idiom" : "universal" "idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Settings@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Settings@3x.png",
"idiom" : "universal",
"scale" : "3x"
} }
], ],
"info" : { "info" : {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -7164,7 +7164,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
self.saveInterfaceState(includeScrollState: false) self.saveInterfaceState(includeScrollState: false)
} }
if let navigationController = self.navigationController as? NavigationController, self.traceVisibility() && isTopmostChatController(self) { if let navigationController = self.navigationController as? NavigationController, isTopmostChatController(self) {
var voiceChatOverlayController: VoiceChatOverlayController? var voiceChatOverlayController: VoiceChatOverlayController?
for controller in navigationController.globalOverlayControllers { for controller in navigationController.globalOverlayControllers {
if let controller = controller as? VoiceChatOverlayController { if let controller = controller as? VoiceChatOverlayController {