mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update onboarding
This commit is contained in:
parent
5b489ee90d
commit
5accee5d02
6 changed files with 78 additions and 81 deletions
|
|
@ -209,6 +209,7 @@ func applyProfileSettings(_ profiles: Set<String>) {
|
|||
if isDeveloper {
|
||||
Defaults[.enableColorPickerFeature] = true
|
||||
Defaults[.enableStatsFeature] = true
|
||||
Defaults[.enableTerminalFeature] = true
|
||||
Defaults[.enableTimerFeature] = true
|
||||
Defaults[.enableScreenAssistant] = true
|
||||
Defaults[.showMirror] = false
|
||||
|
|
@ -262,9 +263,35 @@ func applyProfileSettings(_ profiles: Set<String>) {
|
|||
Defaults[.menubarIcon] = true
|
||||
Defaults[.enableHaptics] = true
|
||||
|
||||
// Lyrics disabled by default for all profiles
|
||||
Defaults[.enableLyrics] = false
|
||||
|
||||
// Weather widget defaults to inline style
|
||||
Defaults[.lockScreenWeatherWidgetStyle] = .inline
|
||||
|
||||
// Auto-detect notch: Dynamic Island for non-notch Macs, standard notch otherwise
|
||||
if mainScreenHasNotch() {
|
||||
Defaults[.externalDisplayStyle] = .notch
|
||||
} else {
|
||||
Defaults[.externalDisplayStyle] = .dynamicIsland
|
||||
}
|
||||
|
||||
// Lock screen glass: custom liquid glass v11 on macOS 26+
|
||||
if #available(macOS 26.0, *) {
|
||||
Defaults[.lockScreenGlassStyle] = .liquid
|
||||
Defaults[.lockScreenGlassCustomizationMode] = .customLiquid
|
||||
Defaults[.lockScreenMusicLiquidGlassVariant] = .v11
|
||||
}
|
||||
|
||||
print("✅ Applied profile settings for: \(profiles.joined(separator: ", "))")
|
||||
}
|
||||
|
||||
/// Returns `true` when the main screen has a physical notch (safe area insets > 0).
|
||||
private func mainScreenHasNotch() -> Bool {
|
||||
guard let screen = NSScreen.main else { return false }
|
||||
return screen.safeAreaInsets.top > 0
|
||||
}
|
||||
|
||||
#Preview {
|
||||
ProfileSelectionView(onContinue: { profiles in
|
||||
print("Selected profiles: \(profiles)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue