mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Improvements
This commit is contained in:
parent
af6e5f258e
commit
40e1e6a116
6 changed files with 11 additions and 6 deletions
|
|
@ -439,9 +439,14 @@ private final class CreateBotSheetComponent: Component {
|
|||
|
||||
//TODO:localize
|
||||
let presentationData = component.context.sharedContext.currentPresentationData.with({ $0 })
|
||||
self.environment?.controller()?.present(standardTextAlertController(
|
||||
theme: AlertControllerTheme(presentationData: presentationData),
|
||||
title: nil, text: text, actions: [TextAlertAction(type: .defaultAction, title: presentationData.strings.Common_OK, action: {})]), in: .window(.root))
|
||||
self.environment?.controller()?.push(textAlertController(
|
||||
context: component.context,
|
||||
title: nil,
|
||||
text: text,
|
||||
actions: [
|
||||
.init(type: .defaultAction, title: presentationData.strings.Common_OK, action: {})
|
||||
]
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -526,7 +526,7 @@ public final class PeerInfoCoverComponent: Component {
|
|||
let backgroundFrame = CGRect(origin: CGPoint(x: 0.0, y: -1000.0 + availableSize.height), size: CGSize(width: availableSize.width, height: 1000.0))
|
||||
transition.containedViewLayoutTransition.updateFrameAdditive(view: self.backgroundView, frame: backgroundFrame)
|
||||
|
||||
let patternWidth: CGFloat = 380.0
|
||||
let patternWidth: CGFloat = min(380.0, availableSize.width - 32.0)
|
||||
let avatarPatternFrame = CGSize(width: patternWidth, height: floor(component.defaultHeight * 1.0)).centered(around: component.avatarCenter)
|
||||
transition.setFrame(layer: self.avatarBackgroundPatternContentsLayer, frame: avatarPatternFrame)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "ic_menu_camera.pdf",
|
||||
"filename" : "photocamera_24.pdf",
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Binary file not shown.
BIN
submodules/TelegramUI/Images.xcassets/Chat/Context Menu/Camera.imageset/photocamera_24.pdf
vendored
Normal file
BIN
submodules/TelegramUI/Images.xcassets/Chat/Context Menu/Camera.imageset/photocamera_24.pdf
vendored
Normal file
Binary file not shown.
|
|
@ -494,7 +494,7 @@ final class ChatReportPeerTitlePanelNode: ChatTitleAccessoryPanelNode {
|
|||
let view = UIButton()
|
||||
if case .setPhoto = button {
|
||||
if view.image(for: []) == nil || themeUpdated {
|
||||
if let sourceImage = generateTintedImage(image: UIImage(bundleImageName: "Chat/Attach Menu/OpenCamera"), color: interfaceState.theme.rootController.navigationBar.accentTextColor) {
|
||||
if let sourceImage = generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Camera"), color: interfaceState.theme.rootController.navigationBar.accentTextColor) {
|
||||
let image = generateImage(CGSize(width: sourceImage.size.width + 6.0, height: sourceImage.size.height), rotatedContext: { size, context in
|
||||
UIGraphicsPushContext(context)
|
||||
defer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue