Add the new bloom style under a feature flag. (#4033)

* Refactor the bloom into a modifier.

It currently depends on the home screen context but that will be removed in the future.

* Add an initial implementation of the new bloom using an image on the navigation item's appearance.

* Add a feature flag to control the new bloom.
This commit is contained in:
Doug
2025-04-16 16:36:19 +01:00
committed by GitHub
parent fdd3dc46bc
commit 5ba070d4d0
9 changed files with 234 additions and 143 deletions
@@ -48,6 +48,7 @@ final class AppSettings {
case hideUnreadMessagesBadge
case hideInviteAvatars
case timelineMediaVisibility
case isNewBloomEnabled
case elementCallBaseURLOverride
@@ -361,6 +362,9 @@ final class AppSettings {
@UserPreference(key: UserDefaultsKeys.timelineMediaVisibility, defaultValue: TimelineMediaVisibility.always, storageType: .userDefaults(store))
var timelineMediaVisibility
@UserPreference(key: UserDefaultsKeys.isNewBloomEnabled, defaultValue: false, storageType: .userDefaults(store))
var isNewBloomEnabled
}
extension AppSettings: CommonSettingsProtocol { }