From 1ba8619a37604e83738067dfe895a2b7ce0f59e7 Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Thu, 9 Apr 2026 22:30:12 +0200 Subject: [PATCH] chore: remove preview-update debug button, add GDI features, add contributor - Remove debug "Preview Update Modal" button from Settings/About - Add Win32_Graphics/Win32_Graphics_Gdi features for taskbar GDI icons - Add sorensiimSalling contributor credit for Russian translation (PR #140) Co-Authored-By: Claude Sonnet 4.6 --- src-tauri/Cargo.lock | 77 ++++++++++++++++++++++++++++++++++++++---- src-tauri/Cargo.toml | 2 ++ src/locales/en.ts | 1 - src/pages/Settings.tsx | 8 +---- 4 files changed, 74 insertions(+), 14 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index ae5f9500..544789c8 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3425,6 +3425,7 @@ dependencies = [ "thread-priority", "tokio", "url", + "windows 0.58.0", ] [[package]] @@ -5925,8 +5926,8 @@ dependencies = [ "webview2-com-sys", "windows 0.61.3", "windows-core 0.61.2", - "windows-implement", - "windows-interface", + "windows-implement 0.60.2", + "windows-interface 0.59.3", ] [[package]] @@ -6016,6 +6017,16 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core 0.58.0", + "windows-targets 0.52.6", +] + [[package]] name = "windows" version = "0.61.3" @@ -6048,14 +6059,27 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets 0.52.6", +] + [[package]] name = "windows-core" version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ - "windows-implement", - "windows-interface", + "windows-implement 0.60.2", + "windows-interface 0.59.3", "windows-link 0.1.3", "windows-result 0.3.4", "windows-strings 0.4.2", @@ -6067,8 +6091,8 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement", - "windows-interface", + "windows-implement 0.60.2", + "windows-interface 0.59.3", "windows-link 0.2.1", "windows-result 0.4.1", "windows-strings 0.5.1", @@ -6085,6 +6109,17 @@ dependencies = [ "windows-threading", ] +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "windows-implement" version = "0.60.2" @@ -6096,6 +6131,17 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "windows-interface" version = "0.59.3" @@ -6138,6 +6184,15 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + [[package]] name = "windows-result" version = "0.3.4" @@ -6156,6 +6211,16 @@ dependencies = [ "windows-link 0.2.1", ] +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets 0.52.6", +] + [[package]] name = "windows-strings" version = "0.4.2" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 91eece54..362310af 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -50,6 +50,8 @@ id3 = "1.16.4" [target.'cfg(windows)'.dependencies] windows = { version = "0.58", features = [ "Win32_Foundation", + "Win32_Graphics", + "Win32_Graphics_Gdi", "Win32_System_Com", "Win32_UI_Controls", "Win32_UI_Shell", diff --git a/src/locales/en.ts b/src/locales/en.ts index 2b4f2592..d2997076 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -491,7 +491,6 @@ export const enTranslation = { aboutLicense: 'License', aboutLicenseText: 'GNU GPL v3 — free to use, modify, and distribute under the same license.', aboutRepo: 'Source Code on GitHub', - aboutPreviewUpdate: 'Preview Update Modal', aboutVersion: 'Version', aboutBuiltWith: 'Built with Tauri · React · TypeScript · Rust/rodio', aboutAiCredit: 'Developed with the support of Claude Code by Anthropic', diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 749d9307..57745367 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -107,6 +107,7 @@ const CONTRIBUTORS = [ 'Auto-install script for Debian / RHEL (PR #121)', 'Album cover art in Discord Rich Presence via iTunes API (PR #111)', 'Tiling WM detection: hide custom TitleBar on Hyprland/Sway/i3/etc. (PR #134)', + 'Russian translation: lyricsServerFirst settings strings (PR #140)', ], }, { @@ -1871,13 +1872,6 @@ export default function Settings() { {t('settings.aboutRepo')} -