mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(kaak): align KOOK brand accents
This commit is contained in:
1 parent
a73a6b1a1e
commit
01ad967e30
9 files changed
+38
-18
No files matched your search
@@ -12,7 +12,7 @@
|
||||
|
||||
## 当前检查点(2026-10-11)
|
||||
|
||||
- KAAK 已推送到 `dev` 并升至 3.1.41;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
|
||||
- KAAK 已推送到 `dev` 并升至 3.1.42;语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均有对应实现,音频设置标签明确为 KOOK 已记录的 14px/400。
|
||||
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。付费屏幕分享与独立文字频道暂不复刻。
|
||||
- 设备选择菜单已按皮肤实际高度限位;KAAK 3.1.41 的滑杆样式已更新,完整测试 661/661,服务端与前端构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段,KAAK 当前无法自动按类别应用两种默认值;不按频道名猜测,后续需要通用的显式分类来源。
|
||||
- 本轮只读取 KOOK 公开静态样式资源核对设备菜单几何和颜色;没有操作原页、真实音量、设备或麦克风,也未对动画行为新增断言。
|
||||
@@ -255,3 +255,12 @@
|
||||
- 验证:`npm run skin:kaak:build`、完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。本轮只读取 KOOK 公开滑杆 CSS,没有拖动真实滑杆或改变音量;未做本地视觉验收。
|
||||
- 影响文件/提交:KAAK 滑杆样式、清单、内置目录、测试、KOOK 参考/工作记录及两个分发包。
|
||||
- 当前状态与下一步:音量滑块尺寸、颜色和悬停反馈已按公开样式更新;继续核对成员舞台/聊天交互的具体布局与动画,屏幕分享仍跳过。
|
||||
|
||||
## 本轮修改节点(2026-10-11,KAAK 3.1.42 KOOK 品牌强调色)
|
||||
|
||||
- 差异依据:KOOK 深色主题公开样式变量为品牌主色 `#6cbf00`、hover `#7ac51a`、active `#60ab00`;KAAK 的全局强调色和成员说话光环仍用 `#58c877` 系列,音频滑杆/设备选择器已先行按 KOOK 主色修正,页面其余高亮因此不一致。
|
||||
- 修改内容与边界:统一 KAAK 皮肤的强调色变量、成员说话描边/光环、音频设置按钮和麦克风电平为 KOOK 品牌色;保持透明度层级和现有动效不变。只改皮肤包、颜色断言和说明,不改通用组件或语音引擎。
|
||||
- 文档与分发包:KAAK 升至 3.1.42,更新示例说明与包断言,重建两份 `.wskin`。
|
||||
- 验证:皮肤包重建、完整 `npm test` 661/661、`npm run build`、`npm run web:build` 和 `git diff --check` 均通过。本轮只核对公开 CSS 变量,没有控制页面或音频状态,未做本地视觉验收。
|
||||
- 影响文件/提交:KAAK 颜色样式、版本清单、目录版本、包测试和文档及两个分发包。
|
||||
- 当前状态与下一步:全局强调色已与 KOOK 品牌绿统一;之后继续核对成员舞台和聊天面板的可见细节,屏幕分享仍跳过。
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
- 左下语音坞用绿色信号柱表示连接状态,断开入口单独放在右上;音频开关排列在坞底部,图标按钮尺寸紧凑。屏幕分享按用户要求暂不作为复刻目标,也未操作。
|
||||
- KOOK 的语音设置可从个人菜单进入,页面把输入/输出设备选择、麦克风输入音量和语音输出音量放在同一张深色设置卡片内;输入设备下方提供本地麦克风测试。
|
||||
- 设备选择是自绘下拉列表:选择框约 40px 高,选项列表可滚动、最多约 240px 高,每项约 32px;当前项有浅色底,箭头在开合时旋转。对照 KOOK 公开样式资源后补充:触发框和菜单为 12px 圆角,菜单内边距 8px;选项为 8px 圆角、上下间隔 2px、左右内边距 8px,深色菜单底色为 `#25262a`,文本为 `#e6eaf0`,品牌绿为 `#6cbf00`,悬停与选中底色分别约为白色 6% 与 10% 透明度,菜单阴影为 2px/8px、黑色 32% 透明度。此项来自静态样式资源,不代表本轮重新操作了页面。我们此前只展开并收起输入设备列表,没有选择设备。
|
||||
- 设备选择是自绘下拉列表:选择框约 40px 高,选项列表可滚动、最多约 240px 高,每项约 32px;当前项有浅色底,箭头在开合时旋转。对照 KOOK 公开样式资源后补充:触发框和菜单为 12px 圆角,菜单内边距 8px;选项为 8px 圆角、上下间隔 2px、左右内边距 8px,深色菜单底色为 `#25262a`,文本为 `#e6eaf0`,品牌主色/hover/active 分别为 `#6cbf00`、`#7ac51a`、`#60ab00`,悬停与选中底色分别约为白色 6% 与 10% 透明度,菜单阴影为 2px/8px、黑色 32% 透明度。此项来自静态样式资源,不代表本轮重新操作了页面。我们此前只展开并收起输入设备列表,没有选择设备。
|
||||
- 设置页采用 PingFang SC 优先的中英文字体栈。主标题为 32px/600,分区标题 16px/600,设备和音量标签 14px/400。公开滑杆样式显示音轨为 4px、圆形拇指为 16px 并带 2px 品牌绿描边;悬停时出现 3px 光圈。没有拖动滑杆,因此不推断声音反馈或音量更新动画。
|
||||
- KAAK 对应使用通用宿主设备选择控件,交互包含点击展开、方向键/Home/End 导航、回车选择、Esc 收起和输入名称的快速定位;皮肤定义展开列表、选中/悬停/键盘态与 KOOK 字体。性能卡片仍是 WebSpeak 自己的诊断入口,不声称 KOOK 具有该面板。
|
||||
- 本次本地 KAAK 对照打开了 WebSpeak 的音频配置弹窗,没有更换设备、移动音量、启动麦克风测试或开启麦克风。设备名称不写入文档。
|
||||
|
||||
@@ -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. 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.
|
||||
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. KAAK uses KOOK's dark-theme brand green (`#6cbf00`, `#7ac51a` hover) for speaker, slider, and control highlights. 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.41",
|
||||
"version": "3.1.42",
|
||||
"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.",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
--skin-kaak-text: #f0f1f3;
|
||||
--skin-kaak-muted: #a0a2a8;
|
||||
--skin-kaak-dim: #777a82;
|
||||
--skin-kaak-accent: #58c877;
|
||||
--skin-kaak-accent: #6cbf00;
|
||||
--skin-kaak-danger: #e36b6b;
|
||||
--skin-kaak-radius: 9px;
|
||||
--skin-kaak-font: "PingFang SC", "Microsoft YaHei New", 微软雅黑, "Microsoft Yahei", "Microsoft JhengHei", 宋体, SimSun, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
@@ -520,7 +520,7 @@
|
||||
padding: 3px 5px;
|
||||
border-radius: 4px;
|
||||
color: #8cdda0;
|
||||
background: #58c87718;
|
||||
background: #6cbf0018;
|
||||
font-size: 9px;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
@@ -707,7 +707,7 @@
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.chat-message-body"][data-kind="self"] [data-ws-plugin-part="kaak-workspace.chat-message-avatar"] {
|
||||
border-color: #58c87755;
|
||||
border-color: #6cbf0055;
|
||||
background: linear-gradient(145deg, #286c49, #194b3b);
|
||||
}
|
||||
|
||||
@@ -940,7 +940,7 @@
|
||||
background: #292a2f;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card.speaking { border-color: #58c87788; box-shadow: 0 0 0 1px #58c87722; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card.speaking { border-color: #6cbf0088; box-shadow: 0 0 0 1px #6cbf0022; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap {
|
||||
position: relative;
|
||||
@@ -962,7 +962,7 @@
|
||||
}
|
||||
|
||||
[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-card[data-ws-speaking="true"] .voice-avatar { box-shadow: 0 0 0 4px #58c877aa, 0 0 18px #58c87755; }
|
||||
[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"] [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; }
|
||||
|
||||
@@ -1776,8 +1776,8 @@
|
||||
[data-ws-part="voice.audio-settings"] .mic-test-header button,
|
||||
[data-ws-part="voice.audio-settings"] .save-button {
|
||||
color: #102317;
|
||||
background: #58c877;
|
||||
border-color: #58c877;
|
||||
background: #6cbf00;
|
||||
border-color: #6cbf00;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
|
||||
@@ -1786,8 +1786,15 @@
|
||||
[data-ws-part="voice.audio-settings"] .microphone-toggle:hover,
|
||||
[data-ws-part="voice.audio-settings"] .mic-test-header button:hover,
|
||||
[data-ws-part="voice.audio-settings"] .save-button:hover {
|
||||
background: #78dc91;
|
||||
border-color: #78dc91;
|
||||
background: #7ac51a;
|
||||
border-color: #7ac51a;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .microphone-toggle:not(.muted):active,
|
||||
[data-ws-part="voice.audio-settings"] .mic-test-header button:active,
|
||||
[data-ws-part="voice.audio-settings"] .save-button:active {
|
||||
background: #60ab00;
|
||||
border-color: #60ab00;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .microphone-toggle.muted {
|
||||
@@ -1836,8 +1843,8 @@
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .meter i.active {
|
||||
background: #58c877;
|
||||
box-shadow: 0 0 8px #58c87770;
|
||||
background: #6cbf00;
|
||||
box-shadow: 0 0 8px #6cbf0070;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .audio-level-track {
|
||||
@@ -1845,7 +1852,7 @@
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .audio-level-track i {
|
||||
background: #58c877;
|
||||
background: #6cbf00;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
|
||||
Binary file not shown.
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.41",
|
||||
version: "3.1.42",
|
||||
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.41");
|
||||
assert.equal(skin.version, "3.1.42");
|
||||
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");
|
||||
@@ -551,6 +551,10 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.match(skin.css, /channel-row"\]\[aria-current="true"\][\s\S]*?channel-join-hint[\s\S]*?display: none;/);
|
||||
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-channel-join-hint/);
|
||||
assert.match(skin.css, /--skin-kaak-font:[\s\S]*?PingFang SC/);
|
||||
assert.match(skin.css, /--skin-kaak-accent: #6cbf00;/);
|
||||
assert.match(skin.css, /\.settings-select:hover:not\(:disabled\) \{\s*border-color: #6cbf00;/);
|
||||
assert.match(skin.css, /\.microphone-toggle:not\(\.muted\):active,[\s\S]*?background: #60ab00;\s*border-color: #60ab00;/);
|
||||
assert.doesNotMatch(skin.css, /#58c877/);
|
||||
assert.match(skin.css, /\[data-ws-plugin-part="kaak-home"\] \{[^}]*font-family: var\(--skin-kaak-font\);/);
|
||||
assert.match(skin.css, /settings-select-menu[\s\S]*?background: #25262a/);
|
||||
assert.match(skin.css, /settings-select-option[\s\S]*?min-height: 32px/);
|
||||
|
||||
Reference in new issue
Block a user