From b0985e33afc4a6aadaf1072d22eeabc35d59087c Mon Sep 17 00:00:00 2001 From: Aleksander Date: Mon, 8 Dec 2025 22:42:05 +0100 Subject: [PATCH] =?UTF-8?q?dash-frontend:=20toast=20messages,=20?= =?UTF-8?q?=F0=9F=93=A6=F0=9F=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 1 + Cargo.toml | 2 +- dash-frontend/Cargo.toml | 3 +- dash-frontend/assets/gui/dashboard.xml | 1 - dash-frontend/assets/lang/de.json | 8 +- dash-frontend/assets/lang/en.json | 8 +- dash-frontend/assets/lang/es.json | 8 +- dash-frontend/assets/lang/ja.json | 8 +- dash-frontend/assets/lang/pl.json | 8 +- dash-frontend/src/frontend.rs | 40 ++-- dash-frontend/src/tab/apps.rs | 5 +- dash-frontend/src/tab/mod.rs | 6 +- dash-frontend/src/task.rs | 6 + dash-frontend/src/util/mod.rs | 1 + dash-frontend/src/util/popup_manager.rs | 20 +- dash-frontend/src/util/toast_manager.rs | 190 ++++++++++++++++++ dash-frontend/src/views/audio_settings.rs | 41 ++-- wgui/src/animation.rs | 2 +- wgui/src/assets.rs | 2 +- wgui/src/components/checkbox.rs | 2 +- wgui/src/components/tooltip.rs | 9 +- wlx-common/Cargo.toml | 2 +- wlx-common/src/lib.rs | 1 + .../src/gui => wlx-common/src}/timestep.rs | 0 wlx-overlay-s/Cargo.toml | 2 +- wlx-overlay-s/src/gui/mod.rs | 1 - wlx-overlay-s/src/gui/panel/mod.rs | 9 +- wlx-overlay-s/src/overlays/watch.rs | 10 +- 28 files changed, 316 insertions(+), 80 deletions(-) create mode 100644 dash-frontend/src/util/toast_manager.rs rename {wlx-overlay-s/src/gui => wlx-common/src}/timestep.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 61c95b95..ade73999 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1432,6 +1432,7 @@ dependencies = [ "serde", "serde_json", "wgui", + "wlx-common", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index fcd4b150..708bc2d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ resolver = "3" [workspace.dependencies] anyhow = "1.0.100" -glam = "0.30.7" +glam = { version = "0.30.7", features = ["mint", "serde"] } idmap = "0.2.2" idmap-derive = "0.2.2" log = "0.4.28" diff --git a/dash-frontend/Cargo.toml b/dash-frontend/Cargo.toml index 8f7a67cc..6741c503 100644 --- a/dash-frontend/Cargo.toml +++ b/dash-frontend/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" [dependencies] anyhow.workspace = true wgui = { path = "../wgui/" } -glam = { workspace = true } +glam = { workspace = true, features = ["mint", "serde"] } log = { workspace = true } rust-embed = { workspace = true } chrono = "0.4.42" @@ -14,3 +14,4 @@ gio = "0.21.2" gtk = "0.18.2" serde = { version = "1.0.228", features = ["derive"] } serde_json = "1.0.145" +wlx-common = { path = "../wlx-common" } diff --git a/dash-frontend/assets/gui/dashboard.xml b/dash-frontend/assets/gui/dashboard.xml index db101125..aaab8af8 100644 --- a/dash-frontend/assets/gui/dashboard.xml +++ b/dash-frontend/assets/gui/dashboard.xml @@ -98,7 +98,6 @@