style: formatting

This commit is contained in:
PandaDEV 2024-11-23 14:57:42 +10:00
parent 7e6b2f8b63
commit f2f554074b
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
22 changed files with 1493 additions and 1171 deletions

View file

@ -6,6 +6,7 @@
mod api;
mod utils;
use tauri::window::{Effect, EffectState, EffectsBuilder};
use tauri::Manager;
use tauri::WebviewUrl;
use tauri::WebviewWindow;
@ -45,7 +46,9 @@ fn main() {
.visible(false)
.decorations(false)
.transparent(true)
.always_on_top(false)
.always_on_top(true)
.content_protected(true)
.visible_on_all_workspaces(true)
.build()?
};
@ -68,6 +71,13 @@ fn main() {
api::updater::check_for_updates(app_handle).await;
});
main_window.set_effects(
EffectsBuilder::new()
.effect(Effect::Popover)
.state(EffectState::Active)
.build(),
)?;
Ok(())
})
.on_window_event(|_app, _event| {