mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-06 15:57:50 +02:00
feat(window): add setEffects API (#392)
This commit is contained in:
committed by
GitHub
parent
2fc420ba37
commit
c8c3191565
File diff suppressed because one or more lines are too long
@@ -4,8 +4,9 @@
|
||||
|
||||
use serde::{Deserialize, Serialize, Serializer};
|
||||
use tauri::{
|
||||
utils::config::WindowConfig, AppHandle, CursorIcon, Icon, Manager, Monitor, PhysicalPosition,
|
||||
PhysicalSize, Position, Runtime, Size, Theme, UserAttentionType, Window,
|
||||
utils::config::{WindowConfig, WindowEffectsConfig},
|
||||
AppHandle, CursorIcon, Icon, Manager, Monitor, PhysicalPosition, PhysicalSize, Position,
|
||||
Runtime, Size, Theme, UserAttentionType, Window,
|
||||
};
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
@@ -133,6 +134,7 @@ setter!(hide);
|
||||
setter!(close);
|
||||
setter!(set_decorations, bool);
|
||||
setter!(set_shadow, bool);
|
||||
setter!(set_effects, Option<WindowEffectsConfig>);
|
||||
setter!(set_always_on_top, bool);
|
||||
setter!(set_content_protected, bool);
|
||||
setter!(set_size, Size);
|
||||
|
||||
@@ -62,6 +62,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
desktop_commands::close,
|
||||
desktop_commands::set_decorations,
|
||||
desktop_commands::set_shadow,
|
||||
desktop_commands::set_effects,
|
||||
desktop_commands::set_always_on_top,
|
||||
desktop_commands::set_content_protected,
|
||||
desktop_commands::set_size,
|
||||
|
||||
Reference in New Issue
Block a user