Update onboarding

This commit is contained in:
Hariharan Mudaliar 2026-03-05 16:24:06 +05:30
commit 5accee5d02
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
6 changed files with 78 additions and 81 deletions

View file

@ -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)")