mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Working but small
This commit is contained in:
parent
1f4812222f
commit
9bed85bdf0
7 changed files with 241 additions and 8 deletions
|
|
@ -419,7 +419,7 @@ struct Downloads: View {
|
|||
struct HUD: View {
|
||||
@EnvironmentObject var vm: DynamicIslandViewModel
|
||||
@Default(.inlineHUD) var inlineHUD
|
||||
@Default(.enableGradient) var enableGradient
|
||||
@Default(.progressBarStyle) var progressBarStyle
|
||||
@Default(.enableSystemHUD) var enableSystemHUD
|
||||
@Default(.enableVolumeHUD) var enableVolumeHUD
|
||||
@Default(.enableBrightnessHUD) var enableBrightnessHUD
|
||||
|
|
@ -491,15 +491,17 @@ struct HUD: View {
|
|||
if Defaults[.inlineHUD] {
|
||||
withAnimation {
|
||||
Defaults[.systemEventIndicatorShadow] = false
|
||||
Defaults[.enableGradient] = false
|
||||
Defaults[.progressBarStyle] = .hierarchical
|
||||
}
|
||||
}
|
||||
}
|
||||
Picker("Progressbar style", selection: $enableGradient) {
|
||||
Picker("Progressbar style", selection: $progressBarStyle) {
|
||||
Text("Hierarchical")
|
||||
.tag(false)
|
||||
.tag(ProgressBarStyle.hierarchical)
|
||||
Text("Gradient")
|
||||
.tag(true)
|
||||
.tag(ProgressBarStyle.gradient)
|
||||
Text("Segmented")
|
||||
.tag(ProgressBarStyle.segmented)
|
||||
}
|
||||
Defaults.Toggle("Enable glowing effect", key: .systemEventIndicatorShadow)
|
||||
Defaults.Toggle("Use accent color", key: .systemEventIndicatorUseAccent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue