mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Video Chat Improvements
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user