Files
spacedrive/apps/desktop/src-tauri/src/theme.rs
T
Ericson "Fogo" SoaresandUtku 3a1fe4dfde [ENG-381] Update context menufs actions to support multiple source (#927)
* 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>
2023-06-14 23:00:28 +00:00

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:?}")
}