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

+8 -1
View File
@@ -12,7 +12,7 @@
## 当前检查点(2026-10-11)
- KAAK 当前源码版本为 3.1.71;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。频道树成员行与成员卡片右键均使用 KOOK 深色浮层格式,菜单项和行为仍为 WebSpeak 原有操作;频道树成员行支持悬停反馈和跨频道拖放移动。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
- KAAK 当前源码版本为 3.1.72;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;降噪关闭状态新增红色斜杠提示;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。频道树成员行与成员卡片右键均使用 KOOK 深色浮层格式,菜单项和行为仍为 WebSpeak 原有操作;频道树成员行支持悬停反馈和跨频道拖放移动。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
- 语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均已有对应实现;音频设置标签为 KOOK 已记录的 14px/400,表单卡与字段行按实测宽度/行高调整。
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。独立文字频道不复刻;KOOK 的付费分享呈现不复刻,WebSpeak 自带屏幕分享入口和播放器保留。
- 设备选择菜单已按皮肤实际高度限位;KAAK 音频滑杆、性能反馈、字体和成员卡交互均有对应实现。3.1.66 完整验证为 680/680,服务端 TypeScript 构建、前端类型检查和生产构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。
@@ -521,3 +521,10 @@
- 修改范围:给 `voice.channel-tree` 增加默认关闭的 `memberDragDrop` 选项;成员行标记可拖动(本人行除外),目标频道行接入现有宿主拖放/移动逻辑并展示拖入状态。KAAK 单独开启;所有高亮和光标样式均限于 KAAK 频道树,其他皮肤默认不变。未新增移动 API、皮肤动作或服务器权限绕过。
- 验证:KAAK 示例包与内置包已从同一组件/样式源重建;`npm run verify` 通过(682/682 测试、服务端 TypeScript 构建、前端类型检查及 Vite 生产构建),`git diff --check` 通过。自动验证确认新的 widget 选项经 schema 校验且 KAAK 包启用;没有在真实语音房间拖动成员,避免实际移动在线用户。
- 当前状态:实现和构建已完成;功能提交 `e800d75` 已推送至 `dev`。3040 使用新生产构建,页面和皮肤包均返回 HTTP 200;浏览器已有的活动语音标签未刷新。
## 本轮精修节点(2026-10-11,KAAK 3.1.72 降噪关闭状态提示)
- 用户反馈:语音坞的降噪开关启停状态不明显,希望关闭时与麦克风/扬声器一样出现红色斜杠。
- 修改范围:给降噪按钮增加仅表示关闭状态的皮肤钩子,在 KAAK 语音坞内复用麦克风/扬声器的红色斜杠样式;同时覆盖 KAAK 移动端按钮。音频处理逻辑、默认皮肤和其他皮肤均不变。
- 验证:KAAK 示例包和内置包已从同一源码重建;完整 `npm run verify` 通过(682/682 测试、服务端 TypeScript 构建、前端类型检查和 Vite 生产构建),`git diff --check` 通过。
- 当前状态:实现与自动验证完成并已在本地提交;向 GitHub 推送时 HTTPS 连接被重置,SSH 方式没有已配置的密钥,网络恢复后需重试推送。3040 当前可提供新构建,活动浏览器标签尚未刷新。
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.71",
"version": "3.1.72",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A KOOK-inspired voice workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
+5 -1
View File
@@ -1367,6 +1367,8 @@
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-toggle span { display: none; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression { flex-basis: 48px; width: 48px; min-width: 48px; height: 48px; min-height: 48px; border-radius: 12px; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression.active { color: var(--skin-kaak-accent); background: #303c34; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression.inactive { position: relative; color: #ff4c49; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression.inactive::after { position: absolute; width: 21px; height: 1.5px; border-radius: 2px; background: #e34848; content: ""; transform: rotate(-48deg); pointer-events: none; }
[data-ws-plugin-part="kaak-workspace.microphone-control"],
[data-ws-plugin-part="kaak-workspace.output-control"],
[data-ws-plugin-part="kaak-workspace.disconnect-control"] { min-width: 42px; min-height: 44px; }
@@ -1604,7 +1606,8 @@
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle:focus-visible { border-color: transparent; transform: none; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button[aria-pressed="true"] { color: #fff; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button.muted { position: relative; color: #ed6868; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button.muted::after {
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button.muted::after,
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle.inactive::after {
content: "";
position: absolute;
width: 21px;
@@ -1614,6 +1617,7 @@
transform: rotate(-48deg);
}
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle[aria-pressed="false"] { color: #777b82; background: transparent; }
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle.inactive { position: relative; color: #ff4c49; }
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .ws-plugin-host-widget,
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start,
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"] {
Binary file not shown.
+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,