Video Chat Improvements

This commit is contained in:
Ilya Laktyushin
2021-05-15 16:03:32 +04:00
parent f4df115850
commit 4a89a49d10
13 changed files with 3218 additions and 2184 deletions

View File

@@ -12,6 +12,7 @@ import ActivityIndicator
import OverlayStatusController
import AccountContext
import PresentationDataUtils
import UrlEscaping
public final class ProxyServerActionSheetController: ActionSheetController {
private var presentationDisposable: Disposable?
@@ -131,7 +132,7 @@ private final class ProxyServerInfoItemNode: ActionSheetItemNode {
let serverTextNode = ImmediateTextNode()
serverTextNode.isUserInteractionEnabled = false
serverTextNode.displaysAsynchronously = false
serverTextNode.attributedText = NSAttributedString(string: server.host, font: textFont, textColor: theme.primaryTextColor)
serverTextNode.attributedText = NSAttributedString(string: urlEncodedStringFromString(server.host), font: textFont, textColor: theme.primaryTextColor)
fieldNodes.append((serverTitleNode, serverTextNode))
let portTitleNode = ImmediateTextNode()

View File

@@ -10,6 +10,7 @@ import TelegramPresentationData
import ItemListUI
import PresentationDataUtils
import ActivityIndicator
import UrlEscaping
private let activitySize = CGSize(width: 24.0, height: 24.0)
@@ -236,7 +237,7 @@ private final class ProxySettingsServerItemNode: ItemListRevealOptionsItemNode {
}
let titleAttributedString = NSMutableAttributedString()
titleAttributedString.append(NSAttributedString(string: item.server.host, font: titleFont, textColor: item.theme.list.itemPrimaryTextColor))
titleAttributedString.append(NSAttributedString(string: urlEncodedStringFromString(item.server.host), font: titleFont, textColor: item.theme.list.itemPrimaryTextColor))
titleAttributedString.append(NSAttributedString(string: ":\(item.server.port)", font: titleFont, textColor: item.theme.list.itemSecondaryTextColor))
let statusAttributedString = NSAttributedString(string: item.label, font: statusFont, textColor: item.labelAccent ? item.theme.list.itemAccentColor : item.theme.list.itemSecondaryTextColor)