mirror of
https://github.com/yattee/yattee.git
synced 2026-11-01 09:27:18 +00:00
Default the built-in presets to the corner layout
The built-in presets now use the corner layout, which still falls back to stacked where it doesn't fit (iPhone, iPad portrait, narrow windows). In the corner layout the landscape panels open visible unless the preset says otherwise, on devices that can show it: iPad, macOS, and foldable iPhones, whose hinge is now remembered once reported. Custom presets and presets saved without panel settings keep the stacked layout.
This commit is contained in:
@@ -11,7 +11,7 @@ extension LayoutPreset {
|
||||
/// Bump this version whenever any built-in preset definition changes.
|
||||
/// On launch, the app compares this against the last-applied version
|
||||
/// and replaces stale built-in presets with fresh copies from code.
|
||||
static let builtInPresetsVersion = 9
|
||||
static let builtInPresetsVersion = 10
|
||||
|
||||
// MARK: - Built-in Preset IDs
|
||||
|
||||
@@ -132,7 +132,7 @@ extension LayoutPreset {
|
||||
gesturesSettings: gesturesSettings,
|
||||
playerPillSettings: playerPillSettings,
|
||||
miniPlayerSettings: miniPlayerSettings,
|
||||
panelSettings: .default
|
||||
panelSettings: .builtInDefault
|
||||
)
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ extension LayoutPreset {
|
||||
gesturesSettings: nil,
|
||||
playerPillSettings: nil,
|
||||
miniPlayerSettings: MiniPlayerSettings(),
|
||||
panelSettings: .default
|
||||
panelSettings: .builtInDefault
|
||||
)
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ extension LayoutPreset {
|
||||
gesturesSettings: gesturesSettings,
|
||||
playerPillSettings: playerPillSettings,
|
||||
miniPlayerSettings: miniPlayerSettings,
|
||||
panelSettings: .default
|
||||
panelSettings: .builtInDefault
|
||||
)
|
||||
}
|
||||
|
||||
@@ -340,7 +340,7 @@ extension LayoutPreset {
|
||||
gesturesSettings: nil,
|
||||
playerPillSettings: nil,
|
||||
miniPlayerSettings: MiniPlayerSettings(),
|
||||
panelSettings: .default
|
||||
panelSettings: .builtInDefault
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user