mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(kaak): refine volume slider states
This commit is contained in:
1 parent
0453bc6d4a
commit
a73a6b1a1e
9 files changed
+33
-25
No files matched your search
@@ -12,9 +12,9 @@
|
||||
|
||||
## 当前检查点(2026-10-11)
|
||||
|
||||
- KAAK 已推送到 `dev` 并升至 3.1.40;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
|
||||
- KAAK 已推送到 `dev` 并升至 3.1.41;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
|
||||
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。
|
||||
- 本轮设备选择器样式更新为 KAAK 3.1.40,通用定位按皮肤菜单实测高度适配;完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。
|
||||
- 设备选择菜单已按皮肤实际高度限位;KAAK 3.1.41 的滑杆样式已更新,完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。
|
||||
- 本轮只读取 KOOK 公开静态样式资源核对设备菜单几何和颜色;没有操作原页、真实音量、设备或麦克风,也未对动画行为新增断言。
|
||||
|
||||
## 已完成的修改节点
|
||||
@@ -247,3 +247,11 @@
|
||||
- 验证:皮肤包构建通过;完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 通过。新增定位测试覆盖皮肤自定义菜单自然高度,既有视口边界测试也通过。此次只读取公开 CSS 资产,没有控制用户浏览器、选择设备或改变音频状态;未做本地视觉验收。
|
||||
- 影响文件/提交:KAAK 样式、清单、内置目录、通用设备菜单定位、相关测试、参考/工作文档和两个分发包。
|
||||
- 当前状态与下一步:设备菜单尺寸、状态色和视口适配已更新;后续仍需在允许的本地浏览器里核对真实计算样式及剩余交互状态,再选择下一项成组修改。
|
||||
|
||||
## 本轮修改节点(2026-10-11,KAAK 3.1.41 音量滑杆状态)
|
||||
|
||||
- 差异依据:KOOK 已加载的公开音频滑杆样式显示 4px 轨道、16px 滑块和 2px 品牌绿描边;悬停时出现 3px 光圈。KAAK 原样式滑块底色偏绿、常态带外阴影,悬停/键盘焦点时还额外放大 1.12 倍,并在整个滑杆周围绘制矩形焦点框。
|
||||
- 修改内容与边界:KAAK 音量滑杆改为 KOOK 的品牌绿填充、半透明白色未填充轨道、白色滑块与绿色边框;悬停和键盘焦点使用同类圆形 3px 光圈,移除额外缩放及矩形焦点框。只改皮肤样式、包版本、包断言和参考/工作文档,不改音量值处理或音频引擎。
|
||||
- 验证:`npm run skin:kaak:build`、完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。本轮只读取 KOOK 公开滑杆 CSS,没有拖动真实滑杆或改变音量;未做本地视觉验收。
|
||||
- 影响文件/提交:KAAK 滑杆样式、清单、内置目录、测试、KOOK 参考/工作记录及两个分发包。
|
||||
- 当前状态与下一步:音量滑块尺寸、颜色和悬停反馈已按公开样式更新;继续核对成员舞台/聊天交互的具体布局与动画,屏幕分享仍跳过。
|
||||
@@ -28,7 +28,7 @@
|
||||
- 左下语音坞用绿色信号柱表示连接状态,断开入口单独放在右上;音频开关排列在坞底部,图标按钮尺寸紧凑。屏幕分享按用户要求暂不作为复刻目标,也未操作。
|
||||
- KOOK 的语音设置可从个人菜单进入,页面把输入/输出设备选择、麦克风输入音量和语音输出音量放在同一张深色设置卡片内;输入设备下方提供本地麦克风测试。
|
||||
- 设备选择是自绘下拉列表:选择框约 40px 高,选项列表可滚动、最多约 240px 高,每项约 32px;当前项有浅色底,箭头在开合时旋转。对照 KOOK 公开样式资源后补充:触发框和菜单为 12px 圆角,菜单内边距 8px;选项为 8px 圆角、上下间隔 2px、左右内边距 8px,深色菜单底色为 `#25262a`,文本为 `#e6eaf0`,品牌绿为 `#6cbf00`,悬停与选中底色分别约为白色 6% 与 10% 透明度,菜单阴影为 2px/8px、黑色 32% 透明度。此项来自静态样式资源,不代表本轮重新操作了页面。我们此前只展开并收起输入设备列表,没有选择设备。
|
||||
- 设置页采用 PingFang SC 优先的中英文字体栈。主标题为 32px/600,分区标题 16px/600,设备和音量标签 14px/400。滑杆的圆形拇指为 16px,带绿色描边。没有拖动滑杆,因此不推断声音反馈或音量更新动画。
|
||||
- 设置页采用 PingFang SC 优先的中英文字体栈。主标题为 32px/600,分区标题 16px/600,设备和音量标签 14px/400。公开滑杆样式显示音轨为 4px、圆形拇指为 16px 并带 2px 品牌绿描边;悬停时出现 3px 光圈。没有拖动滑杆,因此不推断声音反馈或音量更新动画。
|
||||
- KAAK 对应使用通用宿主设备选择控件,交互包含点击展开、方向键/Home/End 导航、回车选择、Esc 收起和输入名称的快速定位;皮肤定义展开列表、选中/悬停/键盘态与 KOOK 字体。性能卡片仍是 WebSpeak 自己的诊断入口,不声称 KOOK 具有该面板。
|
||||
- 本次本地 KAAK 对照打开了 WebSpeak 的音频配置弹窗,没有更换设备、移动音量、启动麦克风测试或开启麦克风。设备名称不写入文档。
|
||||
- 连接状态图标点击后未显示单独性能卡片。KAAK 将 WebSpeak 已有的通用性能面板做成紧凑状态入口;它是 KAAK 自己的诊断卡片,不能据此声称 KOOK 具有相同面板。
|
||||
|
||||
@@ -6,7 +6,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.
|
||||
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. 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.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.40",
|
||||
"version": "3.1.41",
|
||||
"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.",
|
||||
|
||||
@@ -1535,7 +1535,7 @@
|
||||
appearance: none;
|
||||
border: 0;
|
||||
border-radius: 99px;
|
||||
background: linear-gradient(to right, #58c877 0%, #58c877 var(--ws-range-progress, 0%), #414248 var(--ws-range-progress, 0%), #414248 100%) center / 100% 4px no-repeat !important;
|
||||
background: linear-gradient(to right, #6cbf00 0%, #6cbf00 var(--ws-range-progress, 0%), #ffffff1a var(--ws-range-progress, 0%), #ffffff1a 100%) center / 100% 4px no-repeat !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -1544,47 +1544,43 @@
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-track,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-track { height: 4px; border-radius: 99px; background: transparent; }
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-progress,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-progress { height: 4px; border-radius: 99px; background: #58c877; }
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-progress { height: 4px; border-radius: 99px; background: #6cbf00; }
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-webkit-slider-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-webkit-slider-thumb {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-top: -6px;
|
||||
appearance: none;
|
||||
border: 2px solid #202126;
|
||||
border: 2px solid #6cbf00;
|
||||
border-radius: 50%;
|
||||
background: #d8f6df;
|
||||
box-shadow: 0 0 0 1px #58c87780, 0 2px 7px #0008;
|
||||
transition: box-shadow .14s ease, transform .14s ease, background-color .14s ease;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
transition: box-shadow .14s ease;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-thumb {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid #202126;
|
||||
border: 2px solid #6cbf00;
|
||||
border-radius: 50%;
|
||||
background: #d8f6df;
|
||||
box-shadow: 0 0 0 1px #58c87780, 0 2px 7px #0008;
|
||||
transition: box-shadow .14s ease, transform .14s ease, background-color .14s ease;
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
transition: box-shadow .14s ease;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider:hover::-webkit-slider-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range:hover::-webkit-slider-thumb,
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider:focus-visible::-webkit-slider-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible::-webkit-slider-thumb {
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 3px #58c87745, 0 2px 8px #0009;
|
||||
transform: scale(1.12);
|
||||
box-shadow: 0 0 0 3px rgba(108, 191, 0, .5);
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider:hover::-moz-range-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range:hover::-moz-range-thumb,
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider:focus-visible::-moz-range-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible::-moz-range-thumb {
|
||||
background: #fff;
|
||||
box-shadow: 0 0 0 3px #58c87745, 0 2px 8px #0009;
|
||||
transform: scale(1.12);
|
||||
box-shadow: 0 0 0 3px rgba(108, 191, 0, .5);
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-slider:focus-visible,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible { outline: 2px solid #58c87770; outline-offset: 4px; }
|
||||
[data-ws-part="voice.audio-settings"] .settings-range:focus-visible { outline: none; }
|
||||
[data-ws-part="voice.audio-settings"] .settings-range-row strong { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-audio-button {
|
||||
@@ -1806,7 +1802,7 @@
|
||||
appearance: none;
|
||||
border: 0;
|
||||
border-radius: 99px;
|
||||
background: linear-gradient(to right, #58c877 0%, #58c877 var(--ws-range-progress, 0%), #414248 var(--ws-range-progress, 0%), #414248 100%) center / 100% 4px no-repeat !important;
|
||||
background: linear-gradient(to right, #6cbf00 0%, #6cbf00 var(--ws-range-progress, 0%), #ffffff1a var(--ws-range-progress, 0%), #ffffff1a 100%) center / 100% 4px no-repeat !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.40",
|
||||
version: "3.1.41",
|
||||
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.",
|
||||
|
||||
@@ -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.40");
|
||||
assert.equal(skin.version, "3.1.41");
|
||||
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");
|
||||
@@ -566,6 +566,10 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.match(skin.css, /settings-select-option:hover \{ background: #ffffff0f; \}/);
|
||||
assert.match(skin.css, /voice\.audio-settings\"] \.settings-range::-webkit-slider-thumb \{\s*width: 16px;\s*height: 16px;\s*margin-top: -6px;/);
|
||||
assert.match(skin.css, /voice\.audio-settings\"] \.settings-range::-moz-range-thumb \{\s*width: 16px;\s*height: 16px;/);
|
||||
assert.match(skin.css, /voice\.audio-settings\"] \.settings-range::-webkit-slider-thumb \{[\s\S]*?border: 2px solid #6cbf00;[\s\S]*?background: #fff;[\s\S]*?box-shadow: none;/);
|
||||
assert.match(skin.css, /settings-range:hover::-webkit-slider-thumb,[\s\S]*?box-shadow: 0 0 0 3px rgba\(108, 191, 0, \.5\);/);
|
||||
assert.doesNotMatch(skin.css, /settings-range:hover::-webkit-slider-thumb,[\s\S]*?transform: scale\(1\.12\);/);
|
||||
assert.match(skin.css, /settings-range::-moz-range-progress \{ height: 4px; border-radius: 99px; background: #6cbf00; \}/);
|
||||
assert.match(skin.css, /voice-performance-panel-enter-active[\s\S]*?transition: opacity \.16s/);
|
||||
assert.match(skin.css, /voice-performance-panel-leave-active/);
|
||||
assert.match(skin.css, /voice-performance-panel-enter-from,[\s\S]*?voice-performance-panel-leave-to \{\s*opacity: 0;/);
|
||||
|
||||
Reference in new issue
Block a user