mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-06-08 19:13:56 +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:
@@ -52,7 +52,7 @@ public final class MoreHeaderButton: HighlightableButtonNode {
|
||||
strongSelf.contextAction?(strongSelf.containerNode, gesture)
|
||||
}
|
||||
|
||||
self.containerNode.frame = CGRect(origin: CGPoint(), size: CGSize(width: 30.0, height: 44.0))
|
||||
self.containerNode.frame = CGRect(origin: CGPoint(), size: CGSize(width: 44.0, height: 44.0))
|
||||
self.referenceNode.frame = self.containerNode.bounds
|
||||
|
||||
//self.iconNode.image = MoreHeaderButton.optionsCircleImage(color: color)
|
||||
@@ -68,6 +68,15 @@ public final class MoreHeaderButton: HighlightableButtonNode {
|
||||
@objc private func pressed() {
|
||||
self.onPressed?()
|
||||
}
|
||||
|
||||
public func updateColor(color: UIColor) {
|
||||
if self.color != color {
|
||||
self.color = color
|
||||
if let content = self.content {
|
||||
self.setContent(content, animated: false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var content: Content?
|
||||
public func setContent(_ content: Content, animated: Bool = false) {
|
||||
@@ -165,7 +174,7 @@ public final class MoreHeaderButton: HighlightableButtonNode {
|
||||
}
|
||||
|
||||
override public func calculateSizeThatFits(_ constrainedSize: CGSize) -> CGSize {
|
||||
return CGSize(width: 22.0, height: 44.0)
|
||||
return CGSize(width: 44.0, height: 44.0)
|
||||
}
|
||||
|
||||
public func onLayout() {
|
||||
|
||||
Reference in New Issue
Block a user