feat(auto-theme): add V2 commands for theme generation and system detection
Six new commands: - v2_detect_desktop_environment: detect current DE - v2_get_system_wallpaper: get wallpaper path - v2_get_system_accent_color: get DE accent color - v2_generate_theme_from_image: generate theme from any image - v2_generate_theme_from_wallpaper: generate theme from system wallpaper - v2_extract_palette: extract color palette for preview All are pure functions (no State needed), registered in invoke_handler. cc
This commit is contained in:
2 files changed
+54
No files matched your search
@@ -1104,6 +1104,13 @@ pub fn run() {
|
||||
commands_v2::v2_check_qobuzapp_handler,
|
||||
commands_v2::v2_register_qobuzapp_handler,
|
||||
commands_v2::v2_deregister_qobuzapp_handler,
|
||||
// Auto-theme
|
||||
commands_v2::v2_detect_desktop_environment,
|
||||
commands_v2::v2_get_system_wallpaper,
|
||||
commands_v2::v2_get_system_accent_color,
|
||||
commands_v2::v2_generate_theme_from_image,
|
||||
commands_v2::v2_generate_theme_from_wallpaper,
|
||||
commands_v2::v2_extract_palette,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
||||
Reference in new issue
Block a user