diff --git a/docs/KAAK-CLONE-WORKLOG.zh-CN.md b/docs/KAAK-CLONE-WORKLOG.zh-CN.md index a00cfaa..7517fc6 100644 --- a/docs/KAAK-CLONE-WORKLOG.zh-CN.md +++ b/docs/KAAK-CLONE-WORKLOG.zh-CN.md @@ -12,7 +12,7 @@ ## 当前检查点(2026-10-11) -- 本地 `dev` 已包含 KAAK 3.1.35:输入/输出设备选择为通用自绘键盘可访问下拉控件;成员姓名悬停、分组收起/展开、性能卡片开合和成员说话态发光均有对应反馈。音量、字体及屏幕分享范围见各节点记录。 +- 本地 `dev` 正在推进 KAAK 3.1.36:输入/输出设备选择为通用自绘键盘可访问下拉控件;成员姓名悬停、分组收起/展开、性能卡片开合和成员说话态发光均有对应反馈。音频设置字体层级和滑杆拇指尺寸已按原页规格校正;音量与屏幕分享范围见各节点记录。 - 已授权第二个普通语音频道的聊天初始为展开。手动收起后聊天栏完全隐藏,成员舞台扩宽,频道标题与人数仍可见;成员姓名在收起状态常显。麦克风保持静音,没有发消息或执行管理员操作;随后已离开语音房间。该频道不作为音乐频道默认状态的证据。 - 工作记录不存服务器地址、密码、密钥、房间名、成员名单或聊天内容。上一完整测试仍是 654/655,唯一失败为 `voice.member.mic-status` 布局钩子未注册。 - 重新打开 KOOK 原始语音页并查看已授权的前两个语音频道。原页此前记录了“聊天展开时姓名标签仍可见”,但本轮首次进入后的截图修正了这一判断:静止时姓名隐藏,悬停成员卡后出现;聊天收起时姓名常显。首次进入已观察的两个授权语音频道时,右侧当前频道聊天均默认展开;不能据此推断音乐类频道默认状态。麦克风关闭、未发消息、未操作管理员功能;结束后关闭了临时 KOOK 标签。 @@ -173,3 +173,14 @@ - 验证结果:`npm run web:build` 通过;音频控制定向测试 11/11 通过;`git diff --check` 通过。修复增加透明命中区域,未拖动真实音量、切换设备或启用麦克风。 - 影响文件/提交:通用语音坞弹层样式与本工作日志;功能属于宿主通用修正,KAAK 皮肤包版本不变;验证后提交并推送 `dev`。 - 当前状态与下一步:鼠标从音量按钮移向弹层时,命中区域覆盖视觉间距,滑杆不再因 hover 丢失而闪退。后续继续检查语音设置中的滑杆/设备选择和频道聊天交互,沿已记录证据分组推进;屏幕分享仍跳过。 + +## 本轮修改节点(2026-10-11,音频设置字体与滑杆规格) + +- 问题依据:KOOK 原页记录的设置分区标题为 16px/600、滑杆拇指为 16px;KAAK 对应样式仍为 14px 默认粗细和 15px 拇指,视觉层级与交互目标偏小。 +- 修改内容与边界:仅调整 KAAK 音频设置分区标题字号/字重,以及 Chromium/Firefox 音量滑杆拇指尺寸与垂直对齐。保留 14px 设备/音量字段标签和既有悬停、焦点反馈;设备选择器既有 40px 触发器、32px 选项、240px 最大高度已符合记录,不改组件行为。 +- 原页核查:使用已有 KOOK 设置页记录作为直接规格依据;本节点不操作真实设备、音量、麦克风或麦克风测试。 +- 文档与分发包:KAAK 升至 3.1.36,更新音频样式说明与包版本断言,并重建两份 `.wskin` 分发包。 +- 验证结果:`npm run skin:kaak:build`、`npm run web:build` 通过;`node --import tsx --test web/src/services/skin-pack.test.ts web/src/services/skin-catalog.test.ts` 23/23 通过;`git diff --check` 通过。未操作真实设备、音量或麦克风。 +- 同步状态:修改已提交到本地 `dev`;GitHub 推送连续遇到连接重置,远端同步待网络恢复后重试。 +- 影响文件/提交:KAAK 样式、清单、说明、皮肤包断言和工作日志;不改 WebSpeak 宿主或语音引擎。 +- 当前状态与下一步:音频设置标题和滑杆尺寸与已记录的 KOOK 规格一致。继续针对有原页证据的交互反馈推进,屏幕分享仍跳过。 diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index 2ac0efb..46e2bd8 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -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. Audio typography follows KOOK's PingFang SC-first font stack and observed 14px field labels. 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. Audio typography follows KOOK's PingFang SC-first font stack, 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. 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. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index 5ae946c..4bcbf98 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index cf2d45e..61b74de 100644 --- a/docs/examples/kaak-voice/manifest.json +++ b/docs/examples/kaak-voice/manifest.json @@ -3,7 +3,7 @@ "packageType": "open-skin", "id": "community.kaak-voice", "name": "KAAK", - "version": "3.1.35", + "version": "3.1.36", "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.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index b7321af..635d3fa 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -1546,9 +1546,9 @@ [data-ws-part="voice.audio-settings"] .settings-range::-moz-range-progress { height: 4px; border-radius: 99px; background: #58c877; } [data-ws-plugin-part="kaak-workspace"] .dock-slider::-webkit-slider-thumb, [data-ws-part="voice.audio-settings"] .settings-range::-webkit-slider-thumb { - width: 15px; - height: 15px; - margin-top: -5.5px; + width: 16px; + height: 16px; + margin-top: -6px; appearance: none; border: 2px solid #202126; border-radius: 50%; @@ -1558,8 +1558,8 @@ } [data-ws-plugin-part="kaak-workspace"] .dock-slider::-moz-range-thumb, [data-ws-part="voice.audio-settings"] .settings-range::-moz-range-thumb { - width: 11px; - height: 11px; + width: 16px; + height: 16px; border: 2px solid #202126; border-radius: 50%; background: #d8f6df; @@ -1645,7 +1645,8 @@ [data-ws-part="voice.audio-settings"] .settings-section h3 { color: #eceef0; - font-size: 14px; + font-size: 16px; + font-weight: 600; } [data-ws-part="voice.audio-settings"] .settings-section h3 .ui-icon { diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index 5ae946c..4bcbf98 100644 Binary files a/web/public/skins/kaak-voice.wskin and b/web/public/skins/kaak-voice.wskin differ diff --git a/web/src/services/skin-catalog.ts b/web/src/services/skin-catalog.ts index 95eede8..afc3ce1 100644 --- a/web/src/services/skin-catalog.ts +++ b/web/src/services/skin-catalog.ts @@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ { id: BUILTIN_KAAK_SKIN_ID, name: "KAAK", - version: "3.1.35", + version: "3.1.36", 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.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index 469e7ce..f9615ff 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -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.35"); + assert.equal(skin.version, "3.1.36"); 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"); @@ -553,6 +553,9 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.match(skin.css, /--skin-kaak-font:[\s\S]*?PingFang SC/); assert.match(skin.css, /settings-select-menu[\s\S]*?background: #35373d/); assert.match(skin.css, /settings-select-option[\s\S]*?min-height: 32px/); + 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-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/); 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;/);