mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
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:
+1
@@ -47,6 +47,7 @@ protocol DeveloperOptionsProtocol: AnyObject {
|
||||
var reportRoomEnabled: Bool { get set }
|
||||
var reportInviteEnabled: Bool { get set }
|
||||
var threadsEnabled: Bool { get set }
|
||||
var isNewBloomEnabled: Bool { get set }
|
||||
}
|
||||
|
||||
extension AppSettings: DeveloperOptionsProtocol { }
|
||||
|
||||
+5
@@ -49,6 +49,11 @@ struct DeveloperOptionsScreen: View {
|
||||
Toggle(isOn: $context.fuzzyRoomListSearchEnabled) {
|
||||
Text("Fuzzy searching")
|
||||
}
|
||||
|
||||
Toggle(isOn: $context.isNewBloomEnabled) {
|
||||
Text("New bloom appearance")
|
||||
Text("Requires app reboot")
|
||||
}
|
||||
}
|
||||
|
||||
Section("Join rules") {
|
||||
|
||||
Reference in New Issue
Block a user