|
@@ -12,6 +12,7 @@ use crate::{
|
|
#[cfg(desktop)]
|
|
#[cfg(desktop)]
|
|
mod desktop_commands {
|
|
mod desktop_commands {
|
|
use tauri_runtime::ResizeDirection;
|
|
use tauri_runtime::ResizeDirection;
|
|
|
|
+ use tauri_utils::TitleBarStyle;
|
|
|
|
|
|
use super::*;
|
|
use super::*;
|
|
use crate::{
|
|
use crate::{
|
|
@@ -130,6 +131,7 @@ mod desktop_commands {
|
|
setter!(start_resize_dragging, ResizeDirection);
|
|
setter!(start_resize_dragging, ResizeDirection);
|
|
setter!(set_progress_bar, ProgressBarState);
|
|
setter!(set_progress_bar, ProgressBarState);
|
|
setter!(set_visible_on_all_workspaces, bool);
|
|
setter!(set_visible_on_all_workspaces, bool);
|
|
|
|
+ setter!(set_title_bar_style, TitleBarStyle);
|
|
|
|
|
|
#[command(root = "crate")]
|
|
#[command(root = "crate")]
|
|
pub async fn set_icon<R: Runtime>(
|
|
pub async fn set_icon<R: Runtime>(
|
|
@@ -276,6 +278,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
|
desktop_commands::set_progress_bar,
|
|
desktop_commands::set_progress_bar,
|
|
desktop_commands::set_icon,
|
|
desktop_commands::set_icon,
|
|
desktop_commands::set_visible_on_all_workspaces,
|
|
desktop_commands::set_visible_on_all_workspaces,
|
|
|
|
+ desktop_commands::set_title_bar_style,
|
|
desktop_commands::toggle_maximize,
|
|
desktop_commands::toggle_maximize,
|
|
desktop_commands::internal_toggle_maximize,
|
|
desktop_commands::internal_toggle_maximize,
|
|
]);
|
|
]);
|