diff --git a/docs/KAAK-CLONE-WORKLOG.zh-CN.md b/docs/KAAK-CLONE-WORKLOG.zh-CN.md index 31e1d9e..5732d15 100644 --- a/docs/KAAK-CLONE-WORKLOG.zh-CN.md +++ b/docs/KAAK-CLONE-WORKLOG.zh-CN.md @@ -12,10 +12,10 @@ ## 当前检查点(2026-10-11) -- KAAK 已推送到 `dev` 并升至 3.1.42;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。 +- KAAK 已推送到 `dev` 并升至 3.1.43;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。 - 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。 - 设备选择菜单已按皮肤实际高度限位;KAAK 3.1.41 的滑杆样式已更新,完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。 -- 本轮只读取 KOOK 公开静态样式资源核对设备菜单几何和颜色;没有操作原页、真实音量、设备或麦克风,也未对动画行为新增断言。 +- 本轮只读检查了 KOOK 原页无障碍树;它没有提供中心成员卡的可见细节,截图读取超时。尺寸/动效改动依据是用户此前指出的人员舞台差距,以及代码中 KAAK 64px 头像和被隐藏的说话波形。 ## 已完成的修改节点 @@ -264,3 +264,12 @@ - 验证:皮肤包重建、完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。本轮只核对公开 CSS 变量,没有控制页面或音频状态,未做本地视觉验收。 - 影响文件/提交:KAAK 颜色样式、版本清单、目录版本、包测试和文档及两个分发包。 - 当前状态与下一步:全局强调色已与 KOOK 品牌绿统一;之后继续核对成员舞台和聊天面板的可见细节,屏幕分享仍跳过。 + +## 本轮修改节点(2026-10-11,KAAK 3.1.43 成员舞台呈现) + +- 问题依据:用户直接指出只复刻组件类型不够,KOOK 中间的成员呈现和动画明显更完整。代码检查发现 KAAK 宽卡片内头像只有 64px;说话波形写在状态文字上,但聊天展开/收起两种布局都将该文字 `display:none`,动态反馈实际不可见。 +- 观察边界:本轮 KOOK 原页无障碍树未提供中心成员卡信息,浏览器截图读取超时;没有据此声称测得 KOOK 的精确头像尺寸或动效时长。此次用用户的直接对比反馈确定方向,并修复 KAAK 自身可验证的显示问题。 +- 修改内容与边界:桌面头像放大到 104px,中等屏幕 76px、窄屏 68px;实时说话时围绕头像显示品牌色脉冲环,并在卡片右下角显示可见波形标记,即使聊天展开、姓名隐藏也能看见。保留现有成员进入/离开转场和减少动态效果支持;只改 KAAK 样式、皮肤版本、包断言和说明,不改成员组件或语音引擎。 +- 文档与分发包:KAAK 升至 3.1.43,重建示例及内置 `.wskin`。 +- 验证:完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 通过;最后增加伪元素生成声明后,重建两份皮肤包并通过 KAAK 分发包定向测试。 +- 当前状态与下一步:本轮优先修复成员舞台“头像偏小且说话反馈不可见”的具体差距;下一步继续核对聊天面板和语音控件的呈现细节,屏幕分享仍按要求跳过。 diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index a8a44bc..5917772 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -1,5 +1,7 @@ # KAAK voice skin +The participant stage uses larger profile portraits (104px on desktop, reduced for narrow layouts). A live speaking state adds a pulsing accent ring and a visible waveform marker, including when participant names are hidden while chat is open. + 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. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index 2dc6b1e..d6e3426 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 2c8c674..758c989 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.42", + "version": "3.1.43", "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 a3d73d7..59c4ef4 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -959,10 +959,48 @@ position: absolute; inset: 0; display: none; + content: ""; } -[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { position: relative; z-index: 1; width: 64px; height: 64px; border: 0; box-shadow: 0 0 0 4px #11121666; font-size: 24px; text-shadow: 0 2px 6px #0008; transition: box-shadow .2s ease; } +[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { + inset: auto; + top: 50%; + left: 50%; + z-index: 0; + width: 116px; + height: 116px; + border: 2px solid #6cbf0088; + border-radius: 50%; + pointer-events: none; + transform: translate(-50%, -50%); +} + +[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { position: relative; z-index: 1; width: 104px; height: 104px; border: 0; box-shadow: 0 0 0 4px #11121666; font-size: 34px; text-shadow: 0 2px 6px #0008; transition: box-shadow .2s ease; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] .voice-avatar { box-shadow: 0 0 0 4px #6cbf00aa, 0 0 18px #6cbf0055; } +[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] .voice-avatar-wrap::after { display: block; animation: kaak-member-speaking-ring 1.08s cubic-bezier(.2, .6, .35, 1) infinite; } +[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card::after { + position: absolute; + z-index: 2; + right: 12px; + bottom: 12px; + display: none; + width: 34px; + height: 24px; + border-radius: 6px; + color: var(--skin-kaak-accent); + background: + linear-gradient(currentColor, currentColor) 6px 50% / 3px 6px, + linear-gradient(currentColor, currentColor) 11px 50% / 3px 12px, + linear-gradient(currentColor, currentColor) 16px 50% / 3px 8px, + linear-gradient(currentColor, currentColor) 21px 50% / 3px 14px, + #111216d9; + background-repeat: no-repeat; + box-shadow: 0 0 8px #6cbf0055; + content: ""; + pointer-events: none; + transform-origin: center; +} +[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"]::after { display: block; animation: kaak-member-speaking-wave .72s ease-in-out infinite alternate; } [data-ws-plugin-part="kaak-workspace.member-cards"] [data-ws-part="voice.member.mic-status"] { top: 10px; right: 10px; width: 25px; height: 25px; border: 0; border-radius: 4px; color: #c8c9ce; background: #111216d9; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card:has(.voice-member-action) [data-ws-part="voice.member.mic-status"] { right: 50px; } @@ -982,7 +1020,6 @@ [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { grid-row: 2; padding-top: 11px; font-size: 14px; font-weight: 750; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { grid-row: 3; margin: 0; padding-top: 3px; padding-bottom: 12px; color: #b2b3b9; font-size: 10px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] > span { color: #b2a8ff; } -[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] > span::after { display: inline-block; margin-left: 7px; color: #b2a8ff; content: "▂▆▃"; font-size: 10px; letter-spacing: 1px; line-height: 1; vertical-align: 1px; transform-origin: center; animation: kaak-member-speaking-wave .72s ease-in-out infinite alternate; } [data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="true"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { grid-template-rows: minmax(0, 1fr); } [data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="true"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong, [data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { @@ -1025,6 +1062,11 @@ 100% { transform: scaleY(1.12); opacity: 1; } } +@keyframes kaak-member-speaking-ring { + 0% { opacity: .72; transform: translate(-50%, -50%) scale(.84); } + 82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); } +} + [data-ws-plugin-part="kaak-workspace.voice-dock"] { z-index: 4; grid-column: 2; @@ -1171,8 +1213,8 @@ [data-ws-plugin-part="kaak-workspace.server-rail"] { padding-inline: 1px; } [data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -1px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::before, - [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 88px; height: 88px; } - [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 64px; height: 64px; font-size: 24px; } + [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 92px; height: 92px; } + [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 76px; height: 76px; font-size: 28px; } } @media (max-width: 820px) { @@ -1277,7 +1319,7 @@ [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap { padding: 8px 8px 2px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::before, [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 80px; height: 80px; } - [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 58px; height: 58px; font-size: 22px; } + [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 68px; height: 68px; font-size: 24px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { padding: 7px 9px 0; font-size: 12px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { padding: 3px 9px 8px; font-size: 9px; } [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-member-action { width: 32px; height: 32px; } diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index 2dc6b1e..d6e3426 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 7d342ac..a5ae38f 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.42", + version: "3.1.43", 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 4a90980..4f40b15 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.42"); + assert.equal(skin.version, "3.1.43"); 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"); @@ -592,6 +592,10 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.match(skin.css, /voice-card[\s\S]*?aspect-ratio: 1\.82;/); assert.match(skin.css, /\.voice-card\s*\{[\s\S]*?transition: border-color \.18s ease, background-color \.18s ease, box-shadow \.18s ease;/); assert.match(skin.css, /voice-card[\s\S]*?max-width: 480px;/); + assert.match(skin.css, /voice-avatar \{[^}]*width: 104px; height: 104px;/); + assert.match(skin.css, /voice-avatar-wrap::after \{[\s\S]*?content: "";[\s\S]*?border: 2px solid #6cbf0088;/); + assert.match(skin.css, /voice-card\[data-ws-speaking="true"\] \.voice-avatar-wrap::after \{ display: block; animation: ws-community-kaak-voice-kaak-member-speaking-ring 1\.08s/); + assert.match(skin.css, /voice-card\[data-ws-speaking="true"\]::after \{ display: block; animation: ws-community-kaak-voice-kaak-member-speaking-wave \.72s ease-in-out infinite alternate/); assert.match(skin.css, /\.ws-voice-member-move \{ transition: transform \.28s/); assert.match(skin.css, /\.ws-voice-member-enter-from,[\s\S]*?\.ws-voice-member-leave-to \{ opacity: 0; transform: translateY\(10px\) scale\(\.975\); \}/); assert.match(skin.css, /data-ws-part="voice\.member\.mic-status"[\s\S]*?color: #c8c9ce;[\s\S]*?background: #111216d9;/); @@ -608,7 +612,6 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.match(skin.css, /chat-send[\s\S]*?::after \{ content: "➤";/); assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.voice-card[\s\S]*?aspect-ratio: 1\.82;/); assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-wave/); - assert.match(skin.css, /animation: ws-community-kaak-voice-kaak-member-speaking-wave \.72s ease-in-out infinite alternate/); assert.match(skin.css, /kaak-workspace\.identity-entry[\s\S]*?position: absolute;/); assert.ok(skin.css.includes("@media (max-width: 820px)")); });