diff --git a/yobble/Views/Chat/PrivateChatView.swift b/yobble/Views/Chat/PrivateChatView.swift index 527453f..3e08718 100644 --- a/yobble/Views/Chat/PrivateChatView.swift +++ b/yobble/Views/Chat/PrivateChatView.swift @@ -285,8 +285,8 @@ struct PrivateChatView: View { .padding(.horizontal, 12) .background( MessageBubbleShape( - showHorns: decorations.showHorns, - showLegs: decorations.showLegs + showHornsRaw: decorations.showHorns, + showLegsRaw: decorations.showLegs ) .fill(bubbleColor) ) @@ -831,8 +831,18 @@ private struct MessageBubbleShape: Shape { var legHeight: CGFloat = 6 var legWidth: CGFloat = 18 var legSpacing: CGFloat = 14 - var showHorns: Bool = true - var showLegs: Bool = true + + var showHornsRaw: Bool = true + var showLegsRaw: Bool = true + + // Фактические флаги отрисовки + var showHorns: Bool { + AppConfig.ENABLE_CHAT_BUBBLE_DECORATIONS && showHornsRaw + } + + var showLegs: Bool { + AppConfig.ENABLE_CHAT_BUBBLE_DECORATIONS && showLegsRaw + } func path(in rect: CGRect) -> Path { var path = Path() diff --git a/yobble/config.swift b/yobble/config.swift index 07d12a1..dc4ec26 100644 --- a/yobble/config.swift +++ b/yobble/config.swift @@ -13,6 +13,8 @@ struct AppConfig { static let APP_VERSION = "0.1" static let DISABLE_DB = false + /// Temporary flag to toggle whimsical chat bubble horns/legs rendering. + static let ENABLE_CHAT_BUBBLE_DECORATIONS = true /// Controls whether incoming chat opens as a modal sheet (`true`) or navigates to Chats tab (`false`). static let PRESENT_CHAT_AS_SHEET = false /// Fallback SQLCipher key used until the user sets an application password.