mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-03 22:27:13 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.2 KiB
Swift
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()
|
|
}
|
|
}
|