mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 15:15:51 +01:00
- 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>
30 lines
840 B
Go
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)
|
|
}
|