mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-07 16:47:48 +02:00
chore: migrate to new version + fixed several critical bugs
- Migrated project to latest Telegram iOS base (v12.3.2+) - Fixed circular dependency between GhostModeManager and MiscSettingsManager - Fixed multiple Bazel build configuration errors (select() default conditions) - Fixed duplicate type definitions in PeerInfoScreen - Fixed swiftmodule directory resolution in build scripts - Added Ghostgram Settings tab in main Settings menu with all 5 features - Cleared sensitive credentials from config.json (template-only now) - Excluded bazel-cache from version control
This commit is contained in:
+13
-8
@@ -65,8 +65,9 @@ public final class TabSelectorComponent: Component {
|
||||
public var lineSelection: Bool
|
||||
public var verticalInset: CGFloat
|
||||
public var allowScroll: Bool
|
||||
public var height: CGFloat?
|
||||
|
||||
public init(font: UIFont, spacing: CGFloat = 2.0, innerSpacing: CGFloat? = nil, fillWidth: Bool = false, lineSelection: Bool = false, verticalInset: CGFloat = 0.0, allowScroll: Bool = true) {
|
||||
public init(font: UIFont, spacing: CGFloat = 2.0, innerSpacing: CGFloat? = nil, fillWidth: Bool = false, lineSelection: Bool = false, verticalInset: CGFloat = 0.0, allowScroll: Bool = true, height: CGFloat? = nil) {
|
||||
self.font = font
|
||||
self.spacing = spacing
|
||||
self.innerSpacing = innerSpacing
|
||||
@@ -74,6 +75,7 @@ public final class TabSelectorComponent: Component {
|
||||
self.lineSelection = lineSelection
|
||||
self.verticalInset = verticalInset
|
||||
self.allowScroll = allowScroll
|
||||
self.height = height
|
||||
}
|
||||
}
|
||||
|
||||
@@ -531,14 +533,17 @@ public final class TabSelectorComponent: Component {
|
||||
self.reorderRecognizer?.isEnabled = component.reorderItem != nil
|
||||
|
||||
let baseHeight: CGFloat
|
||||
switch component.style {
|
||||
case .glass:
|
||||
baseHeight = 32.0
|
||||
case .legacy:
|
||||
baseHeight = 28.0
|
||||
if let customLayout = component.customLayout, let height = customLayout.height {
|
||||
baseHeight = height
|
||||
} else {
|
||||
switch component.style {
|
||||
case .glass:
|
||||
baseHeight = 32.0
|
||||
case .legacy:
|
||||
baseHeight = 28.0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var verticalInset: CGFloat = 0.0
|
||||
if let customLayout = component.customLayout {
|
||||
verticalInset = customLayout.verticalInset * 2.0
|
||||
@@ -632,7 +637,7 @@ public final class TabSelectorComponent: Component {
|
||||
if case .component = item.content {
|
||||
useSelectionFraction = true
|
||||
}
|
||||
if let _ = component.colors.normal {
|
||||
if let normal = component.colors.normal, normal != component.colors.foreground {
|
||||
useSelectionFraction = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user