feat(kaak): match KOOK channel typography

This commit is contained in:
Corrupted ILLUSIA committed 2026-10-11 06:14:17 +08:00
1 parent 3f68050c81
commit 62a358796f
9 files changed
+43 -18

No files matched your search

+11 -2
View File
@@ -12,10 +12,10 @@
## 当前检查点(2026-10-11)
- KAAK 已推送到 `dev` 并升至 3.1.43;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
- KAAK 已推送到 `dev` 并升至 3.1.44;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。
- 设备选择菜单已按皮肤实际高度限位;KAAK 3.1.41 的滑杆样式已更新,完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。
- 本轮只读检查了 KOOK 原页无障碍树;它没有提供中心成员卡的可见细节,截图读取超时。尺寸/动效改动依据是用户此前指出的人员舞台差距,以及代码中 KAAK 64px 头像和被隐藏的说话波形。
- 本轮从 KOOK 原页读取了可见频道树的 DOM 计算字体规格;成员舞台当前未加载,截图读取超时,未推断其具体像素尺寸或动画时长。
## 已完成的修改节点
@@ -273,3 +273,12 @@
- 文档与分发包:KAAK 升至 3.1.43,重建示例及内置 `.wskin`。
- 验证:完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 通过;最后增加伪元素生成声明后,重建两份皮肤包并通过 KAAK 分发包定向测试。
- 当前状态与下一步:本轮优先修复成员舞台“头像偏小且说话反馈不可见”的具体差距;下一步继续核对聊天面板和语音控件的呈现细节,屏幕分享仍按要求跳过。
## 本轮修改节点(2026-10-11,KAAK 3.1.44 频道树字体层级)
- 差异依据:读取 KOOK 当前页面可见 DOM 的计算样式,服务器标题为 16px/700,分组标题 12px/700,频道标题 14px/700,人数/容量 12px/400 且文字色为主色约 40% 不透明度。KAAK 原样式对应字号为 13/10/13 与 10px,后续覆盖后分组字重仍为 800、频道字号 14 但未明确字重、人数 11。
- 修改内容与边界:KAAK 频道面板改为实测字号、字重、行高和人数/容量低对比度;窄屏服务器标题继续按现有断点缩小,窄屏分组文字继续收起。只改 KAAK 样式、版本、皮肤包断言和文档,不改通用组件。
- 观察边界:只读取通用样式属性,没有记录服务器/频道文本、标识或成员信息。当前页面的成员舞台仍在加载状态,本轮不宣称核实了成员区的像素或动效。
- 文档与分发包:KAAK 升至 3.1.44,重建示例与内置 `.wskin`。
- 验证:皮肤包重建、完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。
- 当前状态与下一步:频道导航文字层级现在有直接 DOM 计算样式依据;后续继续核对聊天面板和语音控件的呈现细节,屏幕分享仍按要求跳过。
+1
View File
@@ -7,6 +7,7 @@
- 最左侧是纵向服务器栏;服务器内容区在其右侧,包含服务器信息和按组排列的频道。
- KOOK 有独立文字频道列表。它属于文字频道导航,不是语音频道附带的聊天;当前 WebSpeak 只复刻语音频道旁的聊天,不复刻这组独立文字频道。
- 语音分组行显示图标、频道名称及人数/上限。加入语音频道后,成员以缩进项目出现在频道行下方。
- 对当前页面已渲染的频道树读取计算样式:服务器标题为 16px/700,分组标题为 12px/700,频道标题为 14px/700,人数/容量为 12px/400、主文字色约 40% 不透明度。只记录通用样式值,不保留任何服务器或频道文字。
- 进入语音频道后,中央区域显示成员舞台。成员卡片为宽比例矩形,头像居中,静音状态标记放在卡片右上角。聊天展开时,姓名在静止状态下隐藏,悬停卡片后以紧凑标签显示在左下角;聊天收起时,姓名标签保持可见。
- 当前语音频道的文字聊天显示在右侧面板。面板标题对应当前语音频道,消息区占据主体,输入框固定在底部;展开时右上角有收起入口。收起后右侧聊天面板完全隐藏,中央成员舞台横向扩展,舞台标题栏右侧出现重新打开聊天的按钮。
- 左下方语音控制坞显示当前连接状态和离开入口,也有屏幕分享控件。屏幕分享为付费功能,按用户要求不列入 KAAK 复刻范围。
+2
View File
@@ -2,6 +2,8 @@
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.
The voice-channel sidebar follows KOOK's observed typography: 16px/700 server title, 12px/700 group title, 14px/700 channel title, and 12px/400 low-contrast member count.
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.43",
"version": "3.1.44",
"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.",
+21 -13
View File
@@ -367,8 +367,10 @@
[data-ws-plugin-part="kaak-workspace.server-name"] {
overflow: hidden;
color: var(--skin-kaak-text);
font-size: 13px;
color: #e6eaf0;
font-size: 16px;
font-weight: 700;
line-height: 24px;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -388,12 +390,13 @@
margin: 0 8px 7px;
padding: 0;
border: 0;
color: var(--skin-kaak-dim);
color: #e6eaf0;
background: transparent;
font: inherit;
font-size: 10px;
font-weight: 800;
letter-spacing: .08em;
font-size: 12px;
font-weight: 700;
letter-spacing: normal;
line-height: 18px;
text-align: left;
cursor: pointer;
transition: color .16s ease, background-color .16s ease;
@@ -510,7 +513,10 @@
min-width: 0;
flex: 1;
overflow: hidden;
font-size: 13px;
color: #e6eaf0;
font-size: 14px;
font-weight: 700;
line-height: 24px;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -535,12 +541,17 @@
}
[data-ws-plugin-part="kaak-workspace.channel-count"] {
color: var(--skin-kaak-dim);
font-size: 10px;
color: rgba(230, 234, 240, .4);
font-size: 12px;
font-weight: 400;
line-height: 24px;
}
[data-ws-plugin-part="kaak-workspace.channel-capacity"] {
color: var(--skin-kaak-dim);
color: rgba(230, 234, 240, .4);
font-size: 12px;
font-weight: 400;
line-height: 24px;
}
[data-ws-plugin-part="kaak-workspace.channel-voice-members"] {
@@ -1392,9 +1403,6 @@
}
[data-ws-plugin-part="kaak-workspace.server-subtitle"] { font-size: 11px; }
[data-ws-plugin-part="kaak-workspace.voice-channel-group-toggle"] { font-size: 12px; letter-spacing: .04em; }
[data-ws-plugin-part="kaak-workspace.channel-name"] { font-size: 14px; }
[data-ws-plugin-part="kaak-workspace.channel-count"] { font-size: 11px; }
[data-ws-plugin-part="kaak-workspace.channel-voice-member"] { font-size: 12px; }
[data-ws-plugin-part="kaak-workspace.channel-member-name"] { font-size: 12px; }
[data-ws-plugin-part="kaak-workspace.channel-member-state"],
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.43",
version: "3.1.44",
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.",
+6 -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.43");
assert.equal(skin.version, "3.1.44");
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");
@@ -596,6 +596,11 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
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, /server-name"\]\s*\{[\s\S]*?font-size: 16px;[\s\S]*?font-weight: 700;[\s\S]*?line-height: 24px;/);
assert.match(skin.css, /voice-channel-group-toggle"\]\s*\{[\s\S]*?font-size: 12px;[\s\S]*?font-weight: 700;[\s\S]*?letter-spacing: normal;/);
assert.match(skin.css, /channel-name"\]\s*\{[\s\S]*?font-size: 14px;[\s\S]*?font-weight: 700;[\s\S]*?line-height: 24px;/);
assert.match(skin.css, /channel-count"\]\s*\{[\s\S]*?color: rgba\(230, 234, 240, \.4\);[\s\S]*?font-size: 12px;[\s\S]*?font-weight: 400;/);
assert.match(skin.css, /channel-capacity"\]\s*\{[\s\S]*?color: rgba\(230, 234, 240, \.4\);[\s\S]*?font-size: 12px;[\s\S]*?font-weight: 400;/);
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;/);