style: show noise suppression disabled state

This commit is contained in:
illusia committed 2026-10-11 22:20:12 +08:00
1 parent 0a77bdcaca
commit 7fe8719812
9 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@
v-if="layout === 'room-panel'"
type="button"
class="dock-audio-button noise-suppression-toggle"
:class="{ active: noiseSuppressionEnabled }"
:class="{ active: noiseSuppressionEnabled, inactive: !noiseSuppressionEnabled }"
:title="t('noiseSuppression')"
:aria-label="t('noiseSuppression')"
:aria-pressed="noiseSuppressionEnabled"
+1 -1
View File
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
{
id: BUILTIN_KAAK_SKIN_ID,
name: "KAAK",
version: "3.1.71",
version: "3.1.72",
author: "WebSpeak Project",
license: "AGPL-3.0-only",
description: "A KOOK-inspired voice-room workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
+4 -1
View File
@@ -464,7 +464,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
const file = new File([archive], "kaak-voice.wskin", { type: "application/octet-stream" });
const skin = await importSkinPack(file);
assert.equal(skin.id, "community.kaak-voice");
assert.equal(skin.version, "3.1.71");
assert.equal(skin.version, "3.1.72");
assert.equal(BUILTIN_SKIN_CATALOG.find((entry) => entry.id === skin.id)?.version, skin.version);
assert.equal(skin.schemaVersion, 3);
const home = skin.pluginData?.components.find((component) => component.page === "home");
@@ -580,6 +580,9 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.match(skin.css, /\[data-ws-plugin-part="kaak-workspace\.voice-dock-share"\] \.skin-runtime-screen-share-start \{[\s\S]*?background: #69c000;/);
assert.match(skin.css, /room-panel-audio-settings[\s\S]*?grid-column: 1;[\s\S]*?grid-row: 2;[\s\S]*?justify-content: flex-start;[\s\S]*?gap: 8px;/);
assert.match(skin.css, /noise-suppression-toggle \{ grid-column: 2; grid-row: 2; align-self: center; \}/);
assert.match(skin.css, /noise-suppression-toggle\.inactive::after[\s\S]*?background: #e34848;/);
assert.match(skin.css, /noise-suppression-toggle\.inactive \{ position: relative; color: #ff4c49; \}/);
assert.match(skin.css, /mobile-noise-suppression\.inactive::after[\s\S]*?background: #e34848;/);
assert.match(skin.css, /voice\.audio-dock\.microphone[\s\S]*?grid-column: 3;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /voice\.audio-dock\.output[\s\S]*?grid-column: 4;[\s\S]*?grid-row: 2;/);
assert.match(skin.css, /accompaniment-toggle \{[\s\S]*?grid-column: 4;[\s\S]*?grid-row: 1;/);
+1 -1
View File
@@ -1852,7 +1852,7 @@ const skinPluginWidgets = {
}, [h(Icon, { name: "settings", size: 16 }), h("span", null, t("voiceSettings"))]),
h("button", {
type: "button",
class: ["mobile-voice-toggle", "mobile-noise-suppression", noiseSuppressionEnabled.value && "active"],
class: ["mobile-voice-toggle", "mobile-noise-suppression", noiseSuppressionEnabled.value ? "active" : "inactive"],
"aria-label": t("noiseSuppression"),
title: t("noiseSuppression"),
"aria-pressed": noiseSuppressionEnabled.value,