Various improvements

This commit is contained in:
Ilya Laktyushin
2023-07-07 07:02:54 +02:00
parent e6e7d52ebf
commit dc0d4d25bf
20 changed files with 789 additions and 609 deletions

View File

@@ -912,7 +912,13 @@ public class StickerPickerScreen: ViewController {
useOpaqueTheme: false,
hideBackground: true,
stateContext: nil,
addImage: nil
addImage: { [weak self] in
if let self {
self.controller?.completion(nil)
self.controller?.dismiss(animated: true)
self.controller?.presentGallery()
}
}
)
var stickerPeekBehavior: EmojiContentPeekBehaviorImpl?
@@ -1170,8 +1176,12 @@ public class StickerPickerScreen: ViewController {
useOpaqueTheme: false,
hideBackground: true,
stateContext: nil,
addImage: {
addImage: { [weak self] in
if let self {
self.controller?.completion(nil)
self.controller?.dismiss(animated: true)
self.controller?.presentGallery()
}
}
)
@@ -1627,6 +1637,8 @@ public class StickerPickerScreen: ViewController {
public var completion: (DrawingStickerEntity.Content?) -> Void = { _ in }
public var presentGallery: () -> Void = { }
public init(context: AccountContext, inputData: Signal<StickerPickerInputData, NoError>) {
self.context = context
self.theme = defaultDarkColorPresentationTheme