Files
ichmagmaus111andClaude Opus 5.5 0622057a4f Ghostgram: open-source release
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:57:09 +01:00

30 lines
1.2 KiB
Swift

import Foundation
import GGAppearanceSettings
/// Entry point of the GGAppearance feature module (owner W2-4): appearance of messages, theme and
/// backgrounds, the profile's info rows and header.
///
/// One snapshot (`GGAppearanceSnapshot`) carries everything that changes the theme or the layout of
/// messages; it rebuilds the theme once per change (GGThemeHooks.invalidate). Decorations that need
/// no relayout (animated backgrounds, snowfall, screen-edge bands) follow their own settings' signals.
public enum GGAppearanceModule {
/// Declares settings, menu rows, hook handlers and migrations. Called once on the main
/// thread from `GGFeatures.registerAll()`, before `GGHookRegistry.freeze()`.
public static func register() {
assert(Thread.isMainThread)
GGAppearanceSettings.declare()
GGAppearanceMigration.register()
GGFonts.register()
GGCustomFonts.registerProvider()
GGAppearanceTheme.register()
GGChatMessages.register()
GGChatDecor.register()
GGChatListDecor.register()
GGProfileDecor.register()
GGAppearancePendingPoints.register()
GGAppearanceMenu.register()
}
}