mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Chat wallpaper improvements
This commit is contained in:
@@ -150,6 +150,9 @@ const CGFloat TGPhotoEditorToolsLandscapePanelSize = TGPhotoEditorToolsPanelSize
|
||||
}
|
||||
if (!tool.isHidden)
|
||||
{
|
||||
if (tool.isRegional && self.intent == TGPhotoEditorControllerWallpaperIntent) {
|
||||
continue;
|
||||
}
|
||||
[tools addObject:tool];
|
||||
if (tool.isSimple)
|
||||
[simpleTools addObject:tool];
|
||||
@@ -1020,6 +1023,8 @@ const CGFloat TGPhotoEditorToolsLandscapePanelSize = TGPhotoEditorToolsPanelSize
|
||||
{
|
||||
if (self.photoEditor.forVideo) {
|
||||
return TGPhotoEditorToolsTab | TGPhotoEditorTintTab | TGPhotoEditorCurvesTab;
|
||||
} else if (self.intent == TGPhotoEditorControllerWallpaperIntent) {
|
||||
return TGPhotoEditorToolsTab | TGPhotoEditorTintTab | TGPhotoEditorCurvesTab;
|
||||
} else {
|
||||
return TGPhotoEditorToolsTab | TGPhotoEditorTintTab | TGPhotoEditorBlurTab | TGPhotoEditorCurvesTab;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user