diff --git a/package.json b/package.json index e890a78..89bffa9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "screen-bg-light-desktop", + "name": "display-ambient-light-desktop", "private": true, "version": "0.0.0", "type": "module", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 6bcf9de..39a6d99 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -565,6 +565,30 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" +[[package]] +name = "display-ambient-light-desktop" +version = "0.0.0" +dependencies = [ + "anyhow", + "base64", + "bmp", + "color_space", + "hex", + "once_cell", + "paris", + "rumqttc", + "scrap", + "serde", + "serde_json", + "tauri", + "tauri-build", + "time", + "tokio", + "tracing", + "tracing-subscriber", + "webp", +] + [[package]] name = "dtoa" version = "0.4.8" @@ -2457,30 +2481,6 @@ dependencies = [ "winapi 0.2.8", ] -[[package]] -name = "screen-bg-light-desktop" -version = "0.0.0" -dependencies = [ - "anyhow", - "base64", - "bmp", - "color_space", - "hex", - "once_cell", - "paris", - "rumqttc", - "scrap", - "serde", - "serde_json", - "tauri", - "tauri-build", - "time", - "tokio", - "tracing", - "tracing-subscriber", - "webp", -] - [[package]] name = "sct" version = "0.7.0" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 861fe39..b888429 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "screen-bg-light-desktop" +name = "display-ambient-light-desktop" version = "0.0.0" description = "A Tauri App" authors = ["you"] diff --git a/src-tauri/src/rpc/manager.rs b/src-tauri/src/rpc/manager.rs index ef09249..d00d0fd 100644 --- a/src-tauri/src/rpc/manager.rs +++ b/src-tauri/src/rpc/manager.rs @@ -31,7 +31,7 @@ impl Manager { self.mqtt .client .publish( - "screen-bg-light/desktop/colors", + "display-ambient-light/desktop/colors", rumqttc::QoS::AtLeastOnce, false, payload, diff --git a/src-tauri/src/rpc/mqtt.rs b/src-tauri/src/rpc/mqtt.rs index 6b9de20..9adfe5a 100644 --- a/src-tauri/src/rpc/mqtt.rs +++ b/src-tauri/src/rpc/mqtt.rs @@ -29,7 +29,7 @@ impl MqttConnection { async fn subscribe_board(&self) { self.client - .subscribe("screen-bg-light/board/#", QoS::AtMostOnce).await; + .subscribe("display-ambient-light/board/#", QoS::AtMostOnce).await; } fn broadcast_desktop_online(&mut self) { @@ -42,7 +42,7 @@ impl MqttConnection { Ok(now_str) => { match client .publish( - "screen-bg-light/desktop/online", + "display-ambient-light/desktop/online", QoS::AtLeastOnce, false, now_str.as_bytes(), diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e5afdd9..aaa7344 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -6,7 +6,7 @@ "distDir": "../dist" }, "package": { - "productName": "screen-bg-light-desktop", + "productName": "display-ambient-light-desktop", "version": "0.0.0" }, "tauri": { @@ -57,7 +57,7 @@ "fullscreen": false, "height": 600, "resizable": true, - "title": "screen-bg-light-desktop", + "title": "display-ambient-light-desktop", "width": 800 } ]