mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-06-03 00:28:03 +02:00
Update Ghostgram features
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
sgDeps = [
|
||||
"//Swiftgram/SGSimpleSettings:SGSimpleSettings"
|
||||
]
|
||||
|
||||
swift_library(
|
||||
name = "VideoMessageCameraScreen",
|
||||
module_name = "VideoMessageCameraScreen",
|
||||
@@ -9,7 +13,7 @@ swift_library(
|
||||
copts = [
|
||||
"-warnings-as-errors",
|
||||
],
|
||||
deps = [
|
||||
deps = sgDeps + [
|
||||
"//submodules/AsyncDisplayKit",
|
||||
"//submodules/Display",
|
||||
"//submodules/Postbox",
|
||||
|
||||
+8
-6
@@ -1,3 +1,4 @@
|
||||
import SGSimpleSettings
|
||||
import Foundation
|
||||
import UIKit
|
||||
import Display
|
||||
@@ -599,7 +600,7 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
|
||||
size: CGSize(width: 40.0, height: 40.0),
|
||||
cornerRadius: 40.0 * 0.5,
|
||||
isDark: environment.theme.overallDarkAppearance,
|
||||
tintColor: .init(kind: .panel, color: environment.theme.chat.inputPanel.inputBackgroundColor.withMultipliedAlpha(0.7))
|
||||
tintColor: .init(kind: .panel)
|
||||
),
|
||||
availableSize: CGSize(width: 40.0, height: 40.0),
|
||||
transition: .immediate
|
||||
@@ -702,7 +703,7 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
|
||||
size: CGSize(width: 40.0, height: 40.0),
|
||||
cornerRadius: 40.0 * 0.5,
|
||||
isDark: environment.theme.overallDarkAppearance,
|
||||
tintColor: .init(kind: .panel, color: environment.theme.chat.inputPanel.inputBackgroundColor.withMultipliedAlpha(0.7))
|
||||
tintColor: .init(kind: .panel)
|
||||
),
|
||||
availableSize: CGSize(width: 40.0, height: 40.0),
|
||||
transition: .immediate
|
||||
@@ -734,7 +735,7 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
|
||||
size: CGSize(width: 40.0, height: 40.0),
|
||||
cornerRadius: 40.0 * 0.5,
|
||||
isDark: environment.theme.overallDarkAppearance,
|
||||
tintColor: .init(kind: .panel, color: environment.theme.chat.inputPanel.inputBackgroundColor.withMultipliedAlpha(0.7))
|
||||
tintColor: .init(kind: .panel)
|
||||
)
|
||||
)
|
||||
),
|
||||
@@ -779,7 +780,7 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
|
||||
size: CGSize(width: 40.0, height: 40.0),
|
||||
cornerRadius: 40.0 * 0.5,
|
||||
isDark: environment.theme.overallDarkAppearance,
|
||||
tintColor: .init(kind: .panel, color: environment.theme.chat.inputPanel.inputBackgroundColor.withMultipliedAlpha(0.7))
|
||||
tintColor: .init(kind: .panel)
|
||||
))
|
||||
),
|
||||
AnyComponentWithIdentity(
|
||||
@@ -947,7 +948,8 @@ public class VideoMessageCameraScreen: ViewController {
|
||||
self.previewContainerView.addSubview(self.previewContainerContentView)
|
||||
|
||||
let isDualCameraEnabled = Camera.isDualCameraSupported(forRoundVideo: true)
|
||||
let isFrontPosition = "".isEmpty
|
||||
// MARK: Swiftgram
|
||||
let isFrontPosition = !SGSimpleSettings.shared.startTelescopeWithRearCam
|
||||
|
||||
self.mainPreviewView = CameraSimplePreviewView(frame: .zero, main: true, roundVideo: true)
|
||||
self.additionalPreviewView = CameraSimplePreviewView(frame: .zero, main: false, roundVideo: true)
|
||||
@@ -1649,7 +1651,7 @@ public class VideoMessageCameraScreen: ViewController {
|
||||
|
||||
private var validLayout: ContainerViewLayout?
|
||||
|
||||
fileprivate var camera: Camera? {
|
||||
public var camera: Camera? {
|
||||
return self.node.camera
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user