mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-04 08:34:52 -04:00
* Generalizing filesystem jobs to accept multiple files at once * Some small changes and fixing front * Enable rename route to replicate Finder's behavior * Assign tag to multiple objects at once * Remove from recents accepting multiple files * Fixing some warnings * Adding multiple files feature to Open and Open With * Conditional stuff for macos * Generating commands.ts and other minor warnings * Rust fmt * TS typecheck * Rust format and TS typecheck * Requested changes * Requested changes --------- Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com>
21 lines
430 B
Rust
21 lines
430 B
Rust
use serde::Deserialize;
|
|
use specta::Type;
|
|
|
|
#[derive(Type, Deserialize, Clone, Copy, Debug)]
|
|
pub enum AppThemeType {
|
|
Auto = -1,
|
|
Light = 0,
|
|
Dark = 1,
|
|
}
|
|
|
|
#[tauri::command(async)]
|
|
#[specta::specta]
|
|
#[allow(unused_variables)]
|
|
pub async fn lock_app_theme(theme_type: AppThemeType) {
|
|
#[cfg(target_os = "macos")]
|
|
unsafe {
|
|
sd_desktop_macos::lock_app_theme(theme_type as isize);
|
|
}
|
|
// println!("Lock theme, type: {theme_type:?}")
|
|
}
|