wails/v3/internal/setupwizard/defaults.go
Lea Anthony 431869bf84 feat(setup): add global defaults, light/dark mode, and UI improvements
- Add global defaults config stored in ~/.config/wails/defaults.yaml
- Add light/dark mode toggle with theme persistence
- Add PKGBUILD support to Linux build formats display
- Add macOS signing clarification (public identifiers vs Keychain storage)
- Fix spinner animation using CSS animate-spin
- Add signing defaults for macOS and Windows code signing
- Compact defaults page layout with 2-column design
- Add Wails logo with proper light/dark theme variants

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-07 17:40:53 +11:00

30 lines
840 B
Go

package setupwizard
import (
"github.com/wailsapp/wails/v3/internal/defaults"
)
// Re-export types for convenience
type GlobalDefaults = defaults.GlobalDefaults
type AuthorDefaults = defaults.AuthorDefaults
type ProjectDefaults = defaults.ProjectDefaults
// DefaultGlobalDefaults returns sensible defaults for first-time users
func DefaultGlobalDefaults() GlobalDefaults {
return defaults.Default()
}
// GetDefaultsPath returns the path to the defaults.yaml file
func GetDefaultsPath() (string, error) {
return defaults.GetDefaultsPath()
}
// LoadGlobalDefaults loads the global defaults from the config file
func LoadGlobalDefaults() (GlobalDefaults, error) {
return defaults.Load()
}
// SaveGlobalDefaults saves the global defaults to the config file
func SaveGlobalDefaults(d GlobalDefaults) error {
return defaults.Save(d)
}