fix(kaak): match audio label typography

This commit is contained in:
Corrupted ILLUSIA committed 2026-10-11 05:20:24 +08:00
1 parent fbcbe994f0
commit 9cc6e7b765
8 files changed
+20 -12

No files matched your search

+11 -8
View File
@@ -12,14 +12,10 @@
## 当前检查点(2026-10-11)
- 本地 `dev` 正在推进 KAAK 3.1.38:连接首页、语音工作区和音频设置统一使用 KOOK 优先字体栈;音频设置标题/分区标题字重和滑杆拇指尺寸已按原页规格校正。输入/输出设备选择、成员姓名悬停、分组收起/展开、性能卡片开合和成员说话态发光都有对应反馈;音量与屏幕分享范围见各节点记录。
- 已授权第二个普通语音频道的聊天初始为展开。手动收起后聊天栏完全隐藏,成员舞台扩宽,频道标题与人数仍可见;成员姓名在收起状态常显。麦克风保持静音,没有发消息或执行管理员操作;随后已离开语音房间。该频道不作为音乐频道默认状态的证据。
- 工作记录不存服务器地址、密码、密钥、房间名、成员名单或聊天内容。此前全量测试的唯一失败是公开布局钩子缺失;本轮补齐成员静音状态和音频设备选择器的 5 个部件,全量测试现为 656/656 通过。
- 重新打开 KOOK 原始语音页并查看已授权的前两个语音频道。原页此前记录了“聊天展开时姓名标签仍可见”,但本轮首次进入后的截图修正了这一判断:静止时姓名隐藏,悬停成员卡后出现;聊天收起时姓名常显。首次进入已观察的两个授权语音频道时,右侧当前频道聊天均默认展开;不能据此推断音乐类频道默认状态。麦克风关闭、未发消息、未操作管理员功能;结束后关闭了临时 KOOK 标签。
- 本地 `3041` 一度继续提供旧 KAAK 包。重建皮肤包和前端后,服务返回的包哈希与生成包一致;更新皮肤版本后重新连接,浏览器加载了新版 KAAK。本轮连接页已加载 3.1.30;连接测试没有进入语音工作区,因此不能据此确认收起/重开态的浏览器视觉结果。
- KAAK 3.1.22 曾让姓名在聊天展开和收起时都常显。新截图表明展开状态应改为静止隐藏、悬停显示;收起状态仍常显。本轮按这项直接证据修正并升版本。
- 再次进入一个已授权的普通语音频道时,聊天默认展开;中心舞台仍显示频道名和实时人数标题。对照本地 KAAK 截图,当前皮肤在聊天展开时把这段标题隐藏了,因此这是明确的皮肤差异。两页验收期间麦克风均关闭,未发消息、未触碰管理操作。
- 本轮新增对照确认:KOOK 的语音坞固定在频道栏底部,上排放连接状态与断开入口,下排集中放音频控制;当前原页的麦克风仍关闭。当前 KAAK 已有紧凑性能入口、音量进度与悬停/焦点反馈、设备下拉反馈及字体层级样式,但这次只核对了 KOOK 语音工作区,个人设置菜单打开超时,未测试下拉菜单展开、音量数值更新或性能卡片开合。详见 KOOK 参考文档;没有实际改设备、音量或麦克风状态。
- `dev` 已推送至 `fbcbe99`;KAAK 包已升至 3.1.39。语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有实现。音频设置标签字重目前正在按已记录的 KOOK 14px/400 规格收尾并升到 3.1.39。
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。
- 最近推送的设备菜单视口适配已验证;完整测试 660/660,服务端与前端构建通过。音乐类频道聊天默认折叠状态仍缺少可验证的类别映射,不按频道名或未标准化数据推断。
- 本轮未操作真实音量、设备或麦克风;KOOK 原页本轮未重新观察,不新增关于原页动画/反馈的断言。
## 已完成的修改节点
@@ -227,3 +223,10 @@
- KAAK 对应:KAAK 使用同一宿主设备选择器,仍保留其已记录的字体、深色菜单、选中/悬停/键盘态和箭头反馈;无需变更皮肤包版本。
- 验证:定位边界测试 4/4、完整 `npm test` 660/660、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。本节点未进行浏览器视觉验收或触碰真实音频设备;测试验证的是菜单几何边界。
- 当前状态与下一步:菜单不再靠最小高度越过视口边界。后续继续把音量交互、性能状态卡与字体层级按已记录证据逐项验收;付费屏幕分享仍跳过。
## 本轮修改节点(2026-10-11,KAAK 3.1.39 音频设置标签字重)
- 差异依据:KOOK 设置页的设备和音量字段标签记录为 14px/400;KAAK 已是 14px,但宿主 `.settings-label` 的 500 字重仍被继承,细节与参考不一致。
- 修改内容与边界:只在 KAAK 音频设置皮肤中将 `.settings-label` 显式设为 400,百分比数值继续保留强调字重。同步 KAAK 包版本、内置目录、包断言、英文说明和两份分发包;不改通用宿主字体、不影响其他皮肤或音频行为。
- 验证:`npm run skin:kaak:build`、包样式断言、完整 `npm test` 660/660、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过;未做浏览器视觉验收,不改变真实音量或设备。
- 当前状态与下一步:字段标签与已有 KOOK 字号/字重记录一致。后续继续推进实际语音房间交互和有直接参考依据的样式细节;屏幕分享仍跳过。
+1 -1
View File
@@ -1,6 +1,6 @@
# KAAK voice skin
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its desktop voice page follows KOOK's proportions: an 80px server rail, a 290px channel pane, a 40px top bar, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail uses KOOK's rounded-square silhouette and left-edge active marker, with distinct colored monogram tiles as placeholders. WebSpeak currently exposes the saved server label but no server icon image, so these tiles do not copy KOOK's artwork or expose a connection address. The host provides a stable color-tone number derived only from the privacy-safe label, so a tile keeps its color when the saved list order changes. The KOOK voice room is the point-to-point visual reference: composition, member presentation, styling, and motion should be compared directly, rather than treating matching component types or approximate placement as sufficient. The left tree contains the TeamSpeak voice channels only; KOOK's separate text-channel group is outside this pass because TeamSpeak has no equivalent channel type. The current voice channel's text chat remains on the right. Closing it hides the entire panel, expands the participant stage, and leaves a reopen button in the stage heading; this happens without leaving the voice room. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. Messages use author monograms, a separate identity/time line, and readable message text. The central stage uses WebSpeak's reusable member-card widget so available TeamSpeak profile avatars appear inside KAAK's participant tiles; the tiles use a wide 1.82:1 layout with a responsive grid to match KOOK's participant presentation. Member names stay hidden at rest while chat is open and fade upward into the lower-left label on hover; they remain visible while chat is collapsed. KAAK's CSS adds hover depth and a smoothly transitioning speaking ring driven by live voice state. Paid screen sharing is outside this skin; its member cards and performance panel omit share actions and share-state details. The dock retains WebSpeak's trusted connection-quality, audio, and disconnect controls. Input/output volume buttons open hover or keyboard-focus panels with live numeric levels; sliders use a skin-colored progress track, a distinct thumb, and visible focus feedback. Audio input and output devices use a reusable keyboard-accessible picker with a scrollable option list, selected/highlighted states, and an animated chevron; KAAK styles the trigger and open list. The connection surface, voice workspace, and audio settings share KOOK's PingFang SC-first font stack; audio settings use 16px/600 section headings and observed 14px field labels. Audio sliders use a 16px thumb with hover/focus feedback. The performance card opens with a short entrance motion and readable network/audio metrics. No real device, volume, or microphone state is changed during visual checks. The roster shows connected TeamSpeak clients only; it does not invent an offline list. Channel selection is single-click; joining is double-click. The narrow layout keeps the host's mobile controls available while retaining readable member tiles.
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its desktop voice page follows KOOK's proportions: an 80px server rail, a 290px channel pane, a 40px top bar, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail uses KOOK's rounded-square silhouette and left-edge active marker, with distinct colored monogram tiles as placeholders. WebSpeak currently exposes the saved server label but no server icon image, so these tiles do not copy KOOK's artwork or expose a connection address. The host provides a stable color-tone number derived only from the privacy-safe label, so a tile keeps its color when the saved list order changes. The KOOK voice room is the point-to-point visual reference: composition, member presentation, styling, and motion should be compared directly, rather than treating matching component types or approximate placement as sufficient. The left tree contains the TeamSpeak voice channels only; KOOK's separate text-channel group is outside this pass because TeamSpeak has no equivalent channel type. The current voice channel's text chat remains on the right. Closing it hides the entire panel, expands the participant stage, and leaves a reopen button in the stage heading; this happens without leaving the voice room. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. Messages use author monograms, a separate identity/time line, and readable message text. The central stage uses WebSpeak's reusable member-card widget so available TeamSpeak profile avatars appear inside KAAK's participant tiles; the tiles use a wide 1.82:1 layout with a responsive grid to match KOOK's participant presentation. Member names stay hidden at rest while chat is open and fade upward into the lower-left label on hover; they remain visible while chat is collapsed. KAAK's CSS adds hover depth and a smoothly transitioning speaking ring driven by live voice state. Paid screen sharing is outside this skin; its member cards and performance panel omit share actions and share-state details. The dock retains WebSpeak's trusted connection-quality, audio, and disconnect controls. Input/output volume buttons open hover or keyboard-focus panels with live numeric levels; sliders use a skin-colored progress track, a distinct thumb, and visible focus feedback. Audio input and output devices use a reusable keyboard-accessible picker with a scrollable option list, selected/highlighted states, and an animated chevron; KAAK styles the trigger and open list. The connection surface, voice workspace, and audio settings share KOOK's PingFang SC-first font stack; audio settings use 16px/600 section headings and observed 14px/400 field labels. Audio sliders use a 16px thumb with hover/focus feedback. The performance card opens with a short entrance motion and readable network/audio metrics. No real device, volume, or microphone state is changed during visual checks. The roster shows connected TeamSpeak clients only; it does not invent an offline list. Channel selection is single-click; joining is double-click. The narrow layout keeps the host's mobile controls available while retaining readable member tiles.
The single TeamSpeak voice-channel group in the left tree collapses and expands with a short two-way height and fade transition like KOOK's voice group; the separate KOOK text-channel group remains outside this pass. A first click selects a channel and reveals a brief “双击加入” hint; the hint disappears on the active room. The current voice-room heading keeps the channel name and live member count visible above the participant stage while the attached chat is expanded, matching KOOK's room view.
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.38",
"version": "3.1.39",
"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.",
+4
View File
@@ -1662,6 +1662,10 @@
font-size: 14px;
}
[data-ws-part="voice.audio-settings"] .settings-label {
font-weight: 400;
}
[data-ws-part="voice.audio-settings"] .settings-hint,
[data-ws-part="voice.audio-settings"] .mode-note,
[data-ws-part="voice.audio-settings"] .audio-diagnostic,
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.38",
version: "3.1.39",
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.",
+2 -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.38");
assert.equal(skin.version, "3.1.39");
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");
@@ -556,6 +556,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
assert.match(skin.css, /settings-select-option[\s\S]*?min-height: 32px/);
assert.match(skin.css, /settings-header h2 \{\s*color: #f2f3f5;\s*font-size: 32px;\s*font-weight: 600;/);
assert.match(skin.css, /settings-section h3 \{\s*color: #eceef0;\s*font-size: 16px;\s*font-weight: 600;/);
assert.match(skin.css, /voice\.audio-settings"] \.settings-label \{\s*font-weight: 400;/);
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-performance-panel-enter-active[\s\S]*?transition: opacity \.16s/);