feat(kaak): unify audio accent feedback

This commit is contained in:
Corrupted ILLUSIA committed 2026-10-11 06:25:33 +08:00
1 parent 62a358796f
commit 2fcea5622b
8 files changed
+32 -14

No files matched your search

+10 -1
View File
@@ -12,7 +12,7 @@
## 当前检查点(2026-10-11)
- KAAK 已推送到 `dev` 并升至 3.1.44;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
- KAAK 已推送到 `dev` 并升至 3.1.45;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。
- 设备选择菜单已按皮肤实际高度限位;KAAK 3.1.41 的滑杆样式已更新,完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。
- 本轮从 KOOK 原页读取了可见频道树的 DOM 计算字体规格;成员舞台当前未加载,截图读取超时,未推断其具体像素尺寸或动画时长。
@@ -282,3 +282,12 @@
- 文档与分发包:KAAK 升至 3.1.44,重建示例与内置 `.wskin`。
- 验证:皮肤包重建、完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。
- 当前状态与下一步:频道导航文字层级现在有直接 DOM 计算样式依据;后续继续核对聊天面板和语音控件的呈现细节,屏幕分享仍按要求跳过。
## 本轮修改节点(2026-10-11,KAAK 3.1.45 音频/性能强调色统一)
- 问题依据:3.1.42 已将 KAAK 的主强调色调整为 KOOK 深色主题绿,但性能入口、性能数值、音量百分比和音频设置图标仍保留数种薄荷绿旧值,hover 提示和读数不一致。
- 修改内容与边界:新增 KOOK 主色/hover 色变量,并将性能卡片入口、hover/focus、指标、音量读数、设置分区图标和设置滑杆读数统一到同一色阶。只改 KAAK CSS、版本、皮肤包断言和说明;不改音量事件、性能采样、设备选择或通用宿主逻辑。
- 原页核查:当前浏览器桥接没有返回已打开的 KOOK 标签,直接页面读取也不可用;本节点只沿用参考文档已记录的 KOOK 公共主题色,不声称本轮新增原页观察。
- 文档与分发包:KAAK 升至 3.1.45,重建示例包和内置 `.wskin`。
- 验证:`npm run skin:kaak:build` 成功,示例和内置包均由当前 3.1.45 源码重建;`npm run verify` 全部通过,测试 661/661,服务端 `tsc` 和前端 Vue 类型检查/生产构建通过;`git diff --check` 通过。没有可用 KOOK 浏览器标签,本节点未做在线视觉复验。
- 当前状态与下一步:语音/音频控件的强调状态现在复用 KOOK 色阶;继续核对频道聊天和成员交互的具体动效,屏幕分享继续跳过。
+1 -1
View File
@@ -10,7 +10,7 @@ The single TeamSpeak voice-channel group in the left tree collapses and expands
The design target is the voice-client portion of KOOK, as requested by the project owner. It does not include discovery, companion/party, event, store, advertising, administrator, or other service-operator pages. It does not add a KOOK account flow, direct messages, server administration, or channels absent from the connected TeamSpeak server. The voice performance card also closes on outside click or Escape; Escape returns focus to its trigger, and its entrance/exit motion respects reduced-motion preferences.
The device picker now follows the public KOOK style geometry: a 40px trigger with 12px corners, a menu with 12px corners and 8px inset, and 32px rows with 2px gaps and 8px corners. Hover and selected rows use distinct low-contrast fills. The shared host measures the rendered menu before applying viewport limits, so skin-defined padding and row spacing stay visible without a KAAK-specific placement path. KAAK uses KOOK's dark-theme brand green (`#6cbf00`, `#7ac51a` hover) for speaker, slider, and control highlights. Volume sliders use a 4px track, a 16px white thumb with a 2px brand-green border, and a 3px hover/focus halo without extra hover scaling.
The device picker now follows the public KOOK style geometry: a 40px trigger with 12px corners, a menu with 12px corners and 8px inset, and 32px rows with 2px gaps and 8px corners. Hover and selected rows use distinct low-contrast fills. The shared host measures the rendered menu before applying viewport limits, so skin-defined padding and row spacing stay visible without a KAAK-specific placement path. KAAK uses KOOK's dark-theme brand green (`#6cbf00`, `#7ac51a` hover) for speaker, slider, and control highlights. The performance trigger, metric values, volume readouts, audio settings icons, and sliders reuse the same accent tokens. Volume sliders use a 4px track, a 16px white thumb with a 2px brand-green border, and a 3px hover/focus halo without extra hover scaling.
## Reference access note
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.44",
"version": "3.1.45",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A KOOK-inspired voice workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and animated speaker states.",
+10 -9
View File
@@ -10,6 +10,7 @@
--skin-kaak-muted: #a0a2a8;
--skin-kaak-dim: #777a82;
--skin-kaak-accent: #6cbf00;
--skin-kaak-accent-hover: #7ac51a;
--skin-kaak-danger: #e36b6b;
--skin-kaak-radius: 9px;
--skin-kaak-font: "PingFang SC", "Microsoft YaHei New", 微软雅黑, "Microsoft Yahei", "Microsoft JhengHei", 宋体, SimSun, "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -1436,7 +1437,7 @@
overflow: hidden;
border: 0;
border-radius: 50%;
color: #77d68f;
color: var(--skin-kaak-accent);
background: transparent;
font-size: 0;
transition: background-color .16s ease, color .16s ease, transform .16s ease;
@@ -1462,13 +1463,13 @@
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-trigger:hover,
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-trigger:focus-visible,
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-trigger[aria-expanded="true"] {
color: #9af0ad;
color: var(--skin-kaak-accent-hover);
background: #303c34;
transform: translateY(-1px);
}
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-trigger:focus-visible {
outline: 2px solid #77d68f;
outline: 2px solid var(--skin-kaak-accent);
outline-offset: 2px;
}
@@ -1528,7 +1529,7 @@
[data-ws-plugin-part="kaak-workspace.performance-panel"] .voice-status-summary strong,
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-metrics strong {
color: #80df98;
color: var(--skin-kaak-accent);
}
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-metrics small,
@@ -1545,7 +1546,7 @@
[data-ws-plugin-part="kaak-workspace.performance-panel"] .voice-status-summary strong { font-variant-numeric: tabular-nums; }
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-refresh {
color: #91e5a6;
color: var(--skin-kaak-accent-hover);
background: #303136;
border-color: #46474e;
transition: background-color .16s ease, border-color .16s ease;
@@ -1553,7 +1554,7 @@
[data-ws-plugin-part="kaak-workspace.performance-panel"] .performance-refresh:hover:not(:disabled) {
background: #39433c;
border-color: #65be7e;
border-color: var(--skin-kaak-accent-hover);
}
[data-ws-plugin-part="kaak-workspace"] .dock-hover-panel {
@@ -1574,7 +1575,7 @@
}
[data-ws-plugin-part="kaak-workspace"] .dock-slider-heading strong {
color: #80df98;
color: var(--skin-kaak-accent);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
@@ -1698,7 +1699,7 @@
}
[data-ws-part="voice.audio-settings"] .settings-section h3 .ui-icon {
color: #79d991;
color: var(--skin-kaak-accent);
}
[data-ws-part="voice.audio-settings"] .settings-label,
@@ -1864,7 +1865,7 @@
}
[data-ws-part="voice.audio-settings"] .settings-range-row strong {
color: #80df98;
color: var(--skin-kaak-accent);
font-weight: 700;
}
Binary file not shown.
+1 -1
View File
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
{
id: BUILTIN_KAAK_SKIN_ID,
name: "KAAK",
version: "3.1.44",
version: "3.1.45",
author: "WebSpeak Project",
license: "AGPL-3.0-only",
description: "A KOOK-inspired voice-room workspace with collapsible voice groups, current voice-channel chat, TeamSpeak profile cards, and accessible host-owned voice controls.",
+9 -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.44");
assert.equal(skin.version, "3.1.45");
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");
@@ -552,6 +552,14 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-channel-join-hint/);
assert.match(skin.css, /--skin-kaak-font:[\s\S]*?PingFang SC/);
assert.match(skin.css, /--skin-kaak-accent: #6cbf00;/);
assert.match(skin.css, /--skin-kaak-accent-hover: #7ac51a;/);
assert.match(skin.css, /performance-trigger \{[\s\S]*?color: var\(--skin-kaak-accent\);/);
assert.match(skin.css, /performance-trigger:hover,[\s\S]*?\{\s*color: var\(--skin-kaak-accent-hover\);/);
assert.match(skin.css, /performance-metrics strong \{\s*color: var\(--skin-kaak-accent\);/);
assert.match(skin.css, /dock-slider-heading strong \{\s*color: var\(--skin-kaak-accent\);/);
assert.match(skin.css, /settings-section h3 \.ui-icon \{\s*color: var\(--skin-kaak-accent\);/);
assert.match(skin.css, /settings-range-row strong \{\s*color: var\(--skin-kaak-accent\);/);
assert.doesNotMatch(skin.css, /#(?:77d68f|9af0ad|80df98|91e5a6|65be7e|79d991)/i);
assert.match(skin.css, /\.settings-select:hover:not\(:disabled\) \{\s*border-color: #6cbf00;/);
assert.match(skin.css, /\.microphone-toggle:not\(\.muted\):active,[\s\S]*?background: #60ab00;\s*border-color: #60ab00;/);
assert.doesNotMatch(skin.css, /#58c877/);