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:
ichmagmaus 812
2026-02-23 23:04:32 +01:00
parent 703e291bcb
commit db53826061
1017 changed files with 62337 additions and 40559 deletions
@@ -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
}