mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
style(kaak): match supplied compact dock layout
This commit is contained in:
1 parent
4adc712562
commit
0ad7386fcd
7 files changed
+260
-86
No files matched your search
@@ -1,6 +1,3 @@
|
||||
Warning: truncated output (original token count: 15752)
|
||||
Total output lines: 396
|
||||
|
||||
# KAAK 语音界面复刻工作记录
|
||||
|
||||
这份记录用于跨会话续接。开始新一轮工作前,先看这里的“当前检查点”和“下一步”,再检查对应代码或 KOOK 原始页面;完成一个有意义的修改节点后追加记录,不按零碎操作逐条记。
|
||||
@@ -15,7 +12,7 @@ Total output lines: 396
|
||||
|
||||
## 当前检查点(2026-10-11)
|
||||
|
||||
- KAAK 当前源码版本为 3.1.55;继续把控制坞收紧为小尺寸图标与低对比边框,桌面端将紧凑分享入口和音频操作并排,移动端保留两行布局。3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸;3.1.54 首轮视觉尝试经用户反馈仍然过大,本轮按紧凑样例重新调整。
|
||||
- KAAK 当前源码版本为 3.1.56;控制坞按用户提供的 264px HTML 样例重新排为标题栏、分享与两个小操作、底部语音控制。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
|
||||
- 语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均已有对应实现;音频设置标签为 KOOK 已记录的 14px/400,表单卡与字段行按实测宽度/行高调整。
|
||||
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。独立文字频道不复刻;KOOK 的付费分享呈现不复刻,WebSpeak 自带屏幕分享入口和播放器保留。
|
||||
- 设备选择菜单已按皮肤实际高度限位;KAAK 音频滑杆、性能反馈、字体和成员卡交互均有对应实现。最新完整验证 666/666,服务端 TypeScript 构建和前端类型检查/生产构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。
|
||||
@@ -198,7 +195,27 @@ Total output lines: 396
|
||||
- 验证结果:`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` 通过。
|
||||
- 同步状态:Git HTTPS 到 443 的直连仍不可用;通过 GitHub 仓库连接器按预期 SHA 快进推送 3.1.36 与 3.1.37 两个提交(`2d92ca8`、`a3bdee9`)。已在本地重建相同提交对象,`dev` 与 `origin/dev` 同步。
|
||||
- 影响文件/提交:KAAK 首页样式、清单、内置目录、包测试、说明和工作日志;不改 WebSpeak 宿主或语音引擎。
|
||||
- 当前状态与下一步:KAAK 三个主要表面共享相同字体栈。继续核对 KOOK 语音…752 tokens truncated…们。
|
||||
- 当前状态与下一步:KAAK 三个主要表面共享相同字体栈。继续核对 KOOK 语音工作区与 KAAK 的成员、聊天和设置交互,屏幕分享按要求跳过。
|
||||
|
||||
## 本轮修改节点(2026-10-11,桌面音频设置音量控件)
|
||||
|
||||
- 问题依据:在已授权的本地 KAAK 语音工作区打开音频设置时,桌面布局只显示输入/输出设备等设置,输入音量和扬声器/耳机音量滑杆被 `isMobileViewport` 条件隐藏;移动端已有这两组控件。设备选择器键盘高亮与关闭、性能卡片打开和 Escape 关闭也已在同一工作区复核,未改变设备选择或音频状态。
|
||||
- 修改内容与边界:移除输入音量、输出音量两组控件的移动端专属显示条件,使桌面和移动端共用原有数值、事件处理及样式。没有触碰音频引擎、设备选择逻辑或其他页面;KOOK 原页本轮浏览器桥接无法读取,没有将本地实现写成新的 KOOK 观察。
|
||||
- 浏览器验收:桌面音频设置的辅助树已出现“输入音量”和“扬声器 / 耳机”滑杆,页面预览也确认输入滑杆显示正常。没有拖动滑杆、更换设备、运行麦克风测试或启用麦克风;测试连接已安全退出。
|
||||
- 验证结果:代码及工作记录完成后统一验证;修复后的本地页面确认两组控件存在且没有模板残留字符,`npm run web:build` 和 `git diff --check` 均通过。
|
||||
- 当前状态与下一步:桌面设置现在可直接调节输入和输出音量,原有设备键盘交互与性能卡片反馈保持不变;字体规格沿用此前已记录的 KAAK 音频设置修正。屏幕分享继续跳过。
|
||||
|
||||
## 本轮修改节点(2026-10-11,KAAK 3.1.38 音频设置标题字重)
|
||||
|
||||
- 差异依据:KOOK 语音设置页记录为主标题 32px/600;KAAK 已设 32px,但没有覆盖宿主标题的默认粗体,字重因而未跟随记录的 600 规格。
|
||||
- 修改内容与边界:仅在 KAAK 音频设置皮肤样式为标题显式指定 600 字重,并添加包样式断言。没有改 WebSpeak 通用样式或标题组件。
|
||||
- 原页核查:KOOK 原页浏览器桥接本轮不可读;沿用既有《KOOK 语音界面参考》中的直接页面规格,没有新增原页观察。
|
||||
- 验证与分发:升 KAAK 包版本到 3.1.38,重建示例包和内置分发包;将与桌面音量控件节点合并进行包测试、前端构建及差异检查。
|
||||
- 当前状态与下一步:音频设置标题在 KAAK 中明确使用 32px/600。继续从现有直接观察和可访问的实际控件差异中推进,不凭未观察的页面行为猜测;付费屏幕分享继续排除。
|
||||
|
||||
## 本轮修改节点(2026-10-11,补齐静音状态与设备选择器布局部件)
|
||||
|
||||
- 问题依据:`VoiceMemberCards.vue` 的成员静音标记以及 `AudioDeviceSelect.vue` 的容器、触发按钮、箭头、菜单和选项均已声明为公开 `data-ws-part`,文档也已列出;稳定布局注册表漏掉这 6 个部件,公开钩子覆盖测试因此失败,布局编辑器无法单独调整它们。
|
||||
- 修改内容与边界:将 6 个部件补入语音页面公共组件注册表,并把设备选择触发按钮标记为宿主交互组件,保留触控目标约束。其他部件可独立布局和设置可见性。只改通用皮肤布局元数据及断言,不改音频设备选择、麦克风状态读取、真实音频行为或 KAAK 皮肤包。
|
||||
- 依据与兼容:这些部件原本就属于文档化公开接口,也已被 KAAK CSS 使用;本次补齐注册表不增加新行为、不改变皮肤包内容或版本。
|
||||
- 验证结果:公开钩子扫描无遗漏;`src/shared/skin-layout.test.ts` 8/8、完整 `npm test` 656/656、`npm run build` 和 `npm run web:build` 均通过,`git diff --check` 通过。
|
||||
@@ -377,3 +394,11 @@ Total output lines: 396
|
||||
- 修改内容:桌面端把分享主按钮与音频操作放在同一行,按钮压至 34px 高,音频图标按钮为 32px;字号统一到 12px 层级、图标收至 15–16px。降噪启用态改用低饱和浅绿底,不再使用 52px 大色块。外框、阴影和按钮描边减轻,圆角收为 7–8px,hover/active 聚焦于细微颜色反馈。窄屏保留分享和操作分两行,底栏高度从 140px 缩至 122px,触控尺寸保持 36px。
|
||||
- 版本与验证:KAAK 升至 3.1.55;示例包和内置 `.wskin`、目录版本及版本断言一起更新。皮肤 CSS 解析、皮肤包构建、670/670 测试、服务端构建、前端类型检查和 Vite 生产构建均通过。
|
||||
- 本地验收限制:本轮依据两张用户截图做比例调整;若语音连接仍无法进入工作区,不声称完成了浏览器内实时目视验收。
|
||||
|
||||
## 本轮修改节点(2026-10-11,KAAK 3.1.56 按用户 HTML 样例重排控制坞)
|
||||
|
||||
- 参考与目标:用户提供了完整 HTML/CSS 样例,明确要求以该实现为基础并按图复刻。采用其中 264px 面板宽度、暗灰底色、28px 主操作、37px 方形操作、23px 底部控制行和分隔线尺寸;撤销 3.1.55 的横向单行排列。
|
||||
- 修改内容与边界:桌面控制坞按样例拆成标题、分享/小操作、语音控制三层;顶部分享、降噪和伴奏分别接到现有宿主控件,底部保留语音活动、麦克风和扬声器。移动端维持紧凑触控尺寸,并按同一层次排布。未新增录音能力:样例中的“REC”没有对应产品功能,因此该位使用现有降噪开关;没有修改 WebSpeak 引擎或音频行为。
|
||||
- 版本与分发包:KAAK 升至 3.1.56;更新目录版本和样式断言,重建示例与内置 `.wskin`。
|
||||
- 验证:皮肤包构建通过;完整 `npm run verify` 为 670/670 测试通过,服务端 TypeScript、前端类型检查和 Vite 生产构建通过。最后微调窄屏标题列后重新构建皮肤包,皮肤包/目录定向测试 23/23 通过,`git diff --check` 通过。没有将静态样例预览称作语音工作区实机验收。
|
||||
- 当前状态:实现已按用户 HTML 结构落到 KAAK 样式,待提交并推送 `dev`。
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.55",
|
||||
"version": "3.1.56",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired voice workspace with collapsible voice groups, channel chat, TeamSpeak profile cards, accessible member controls, and WebSpeak screen sharing.",
|
||||
|
||||
@@ -1435,37 +1435,86 @@
|
||||
[data-ws-plugin-part="kaak-workspace.voice-channel-list"] { transition-delay: 0s; }
|
||||
}
|
||||
|
||||
/* KAAK voice controls and audio settings follow the compact KOOK visual language. */
|
||||
/* KAAK voice dock follows the compact proportions supplied for the reference. */
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock"] {
|
||||
box-sizing: border-box;
|
||||
justify-self: start;
|
||||
width: min(264px, 100%);
|
||||
max-width: 264px;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: auto auto;
|
||||
gap: 11px;
|
||||
padding: 13px 17px 12px;
|
||||
border: 1px solid #303237;
|
||||
border-radius: 17px;
|
||||
background: #25272a;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] {
|
||||
grid-template-columns: 8px minmax(0, 1fr) 28px 28px;
|
||||
gap: 2px 5px;
|
||||
min-height: 23px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-channel-name"] {
|
||||
color: #f0f2f5;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-actions"] {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
grid-template-rows: auto;
|
||||
gap: 8px;
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
grid-template-columns: minmax(0, 1fr) 37px 37px;
|
||||
grid-template-rows: 28px 23px;
|
||||
column-gap: 7px;
|
||||
row-gap: 23px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] { grid-column: 1; grid-row: 1; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] { grid-column: 2; grid-row: 1; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-actions"]::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
top: 40px;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 1px;
|
||||
background: #303236;
|
||||
pointer-events: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] { grid-column: 1; grid-row: 1; min-width: 0; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] { display: contents; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1 / span 2;
|
||||
grid-template-columns: subgrid;
|
||||
grid-template-rows: subgrid;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
width: auto;
|
||||
gap: 6px;
|
||||
gap: inherit;
|
||||
padding: 0;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-voice-sensitivity {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
min-height: 30px;
|
||||
padding: 0 4px;
|
||||
min-height: 23px;
|
||||
padding: 0 7px;
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
color: var(--skin-kaak-muted);
|
||||
border-radius: 6px;
|
||||
color: #b5c6d8;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
@@ -1479,74 +1528,135 @@
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-voice-sensitivity:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-voice-sensitivity:focus-visible {
|
||||
color: var(--skin-kaak-text);
|
||||
background: #2a2c30;
|
||||
color: #eef2f6;
|
||||
background: #303236;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .desktop-audio-dock-actions {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
display: contents;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button {
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 19px;
|
||||
min-width: 19px;
|
||||
height: 23px;
|
||||
min-height: 23px;
|
||||
padding: 0;
|
||||
border-radius: 7px;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
color: #777b82;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button .ui-icon {
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] [data-ws-part="voice.audio-dock.microphone"] {
|
||||
display: grid;
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
place-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] [data-ws-part="voice.audio-dock.output"] {
|
||||
display: grid;
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
place-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle { grid-column: 2; grid-row: 1; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .accompaniment-toggle {
|
||||
display: inline-flex;
|
||||
grid-column: 3;
|
||||
grid-row: 1;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle {
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
border-radius: 7px;
|
||||
width: 37px;
|
||||
min-width: 37px;
|
||||
height: 28px;
|
||||
min-height: 28px;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
color: #fff;
|
||||
background: #6cbf00;
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle .ui-icon { width: 17px; height: 17px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle.active {
|
||||
color: var(--skin-kaak-accent);
|
||||
background: #2d3928;
|
||||
border-color: #425837;
|
||||
color: #fff;
|
||||
background: #6cbf00;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .accompaniment-toggle {
|
||||
width: 37px;
|
||||
min-width: 37px;
|
||||
height: 28px;
|
||||
min-height: 28px;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
color: #fff;
|
||||
background: #6cbf00;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .accompaniment-toggle .ui-icon { width: 17px; height: 17px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .accompaniment-toggle:hover {
|
||||
color: #fff;
|
||||
background: #7ad600;
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle:active,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .accompaniment-toggle:active {
|
||||
background: #5a9f00;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button:focus-visible {
|
||||
color: #b7dd89;
|
||||
background: #2d332a;
|
||||
border-color: #3b4935;
|
||||
color: #b5c6d8;
|
||||
background: #303236;
|
||||
border-color: transparent;
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle:focus-visible {
|
||||
border-color: #526a3f;
|
||||
background: #333d2c;
|
||||
border-color: transparent;
|
||||
background: #7ad600;
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle[aria-pressed="false"] { color: var(--skin-kaak-dim); }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button[aria-pressed="true"] { color: #fff; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button.muted { position: relative; color: #ed6868; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button.muted::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 21px;
|
||||
height: 1.5px;
|
||||
border-radius: 2px;
|
||||
background: #e34848;
|
||||
transform: rotate(-48deg);
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle[aria-pressed="false"] { color: #fff; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .ws-plugin-host-widget,
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start,
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"] {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 34px;
|
||||
min-height: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start {
|
||||
min-height: 34px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid #3b532a;
|
||||
border-radius: 7px;
|
||||
color: #b4dc83;
|
||||
background: #2a3325;
|
||||
min-height: 28px;
|
||||
height: 28px;
|
||||
padding: 0 8px;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
color: #fff;
|
||||
background: #6cbf00;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
line-height: 1;
|
||||
letter-spacing: 0;
|
||||
transition: background-color .12s ease, border-color .12s ease, color .12s ease;
|
||||
}
|
||||
@@ -1558,12 +1668,13 @@
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"] {
|
||||
min-height: 34px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid #79404755;
|
||||
border-radius: 7px;
|
||||
color: #e28b94;
|
||||
background: #3b292b;
|
||||
min-height: 28px;
|
||||
height: 28px;
|
||||
padding: 0 8px;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
color: #fff;
|
||||
background: #9f3845;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
@@ -1571,14 +1682,14 @@
|
||||
transition: background-color .12s ease, border-color .12s ease, color .12s ease;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"]:hover {
|
||||
border-color: #8d555c;
|
||||
color: #f0a3aa;
|
||||
background: #452d30;
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
background: #b74654;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start:hover:not(:disabled) {
|
||||
border-color: #58783d;
|
||||
color: #c6e99c;
|
||||
background: #313b29;
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
background: #7ad600;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start:active:not(:disabled),
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"]:active { transform: scale(.985); }
|
||||
@@ -1587,38 +1698,53 @@
|
||||
|
||||
@media (max-width: 820px) {
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock"] {
|
||||
justify-self: start;
|
||||
width: min(264px, 100%);
|
||||
max-width: 264px;
|
||||
min-height: 122px;
|
||||
grid-template-rows: auto auto;
|
||||
gap: 4px;
|
||||
padding: 5px 8px;
|
||||
gap: 3px;
|
||||
padding: 4px 12px;
|
||||
border: 1px solid #303237;
|
||||
border-radius: 17px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] { grid-template-columns: 8px minmax(0, 1fr) 28px 28px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-actions"] {
|
||||
grid-row: 2;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-columns: minmax(0, 1fr) 37px 37px;
|
||||
grid-template-rows: 34px 36px;
|
||||
gap: 4px;
|
||||
column-gap: 7px;
|
||||
row-gap: 12px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-actions"]::after { top: 39px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] { grid-column: 1; grid-row: 1; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] .skin-runtime-screen-share-start,
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-share"] [data-ws-plugin-part="kaak-workspace.screen-share-stop"] {
|
||||
min-height: 34px;
|
||||
padding-inline: 10px;
|
||||
height: 34px;
|
||||
padding-inline: 8px;
|
||||
font-size: 12px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] { grid-column: 1; grid-row: 2; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
gap: 4px;
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] { display: contents; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-controls {
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1 / span 2;
|
||||
grid-template-columns: subgrid;
|
||||
grid-template-rows: subgrid;
|
||||
align-items: center;
|
||||
column-gap: inherit;
|
||||
row-gap: inherit;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-voice-sensitivity {
|
||||
min-height: 34px;
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-activity {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
min-height: 36px;
|
||||
font-size: 12px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .desktop-audio-dock-actions { gap: 2px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-controls { align-items: center; gap: 3px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-activity { min-height: 34px; font-size: 12px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression { grid-column: 2; grid-row: 1; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-controls > :nth-child(3) { grid-column: 2; grid-row: 2; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-controls > :nth-child(4) { grid-column: 3; grid-row: 2; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-toggle {
|
||||
flex: 0 0 36px;
|
||||
width: 36px;
|
||||
@@ -1628,8 +1754,27 @@
|
||||
border-radius: 7px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-toggle .ui-icon { width: 16px; height: 16px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression { flex-basis: 36px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression.active { color: var(--skin-kaak-accent); background: #2d3928; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression {
|
||||
flex-basis: 37px;
|
||||
width: 37px;
|
||||
min-width: 37px;
|
||||
height: 34px;
|
||||
min-height: 34px;
|
||||
border-radius: 9px;
|
||||
color: #fff;
|
||||
background: #6cbf00;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression.active { color: #fff; background: #6cbf00; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-noise-suppression .ui-icon { width: 17px; height: 17px; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-activity {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
padding-inline: 7px;
|
||||
border-radius: 6px;
|
||||
color: #b5c6d8;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-activity:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-voice-activity:focus-visible { color: #eef2f6; background: #303236; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .dock-audio-button,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .noise-suppression-toggle {
|
||||
width: 36px;
|
||||
@@ -2315,7 +2460,7 @@
|
||||
|
||||
@media (max-width: 820px) {
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] {
|
||||
grid-template-columns: 10px minmax(0, 1fr) 30px 34px;
|
||||
grid-template-columns: 8px minmax(0, 1fr) 28px 28px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { font-size: 13px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { font-size: 10px; }
|
||||
|
||||
Binary file not shown.
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.55",
|
||||
version: "3.1.56",
|
||||
author: "WebSpeak Project",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "A KOOK-inspired voice-room workspace with collapsible voice groups, channel chat, TeamSpeak profile cards, accessible host-owned member controls, and WebSpeak screen sharing.",
|
||||
|
||||
@@ -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.55");
|
||||
assert.equal(skin.version, "3.1.56");
|
||||
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,10 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
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, /voice-dock"\] \{[\s\S]*?width: min\(264px, 100%\);[\s\S]*?border-radius: 17px;/);
|
||||
assert.match(skin.css, /voice-dock-actions"\] \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\) 37px 37px;[\s\S]*?grid-template-rows: 28px 23px;/);
|
||||
assert.match(skin.css, /desktop-audio-dock-room-panel \{[\s\S]*?grid-template-columns: subgrid;[\s\S]*?grid-template-rows: subgrid;/);
|
||||
assert.match(skin.css, /kaak-workspace\.voice-dock-share[\s\S]*?skin-runtime-screen-share-start \{[\s\S]*?height: 28px;[\s\S]*?background: #6cbf00;/);
|
||||
assert.match(skin.css, /voice\.member\.action-trigger[\s\S]*?width: 44px;/);
|
||||
assert.match(skin.css, /--skin-kaak-accent-hover: #7ac51a;/);
|
||||
assert.match(skin.css, /voice-card\[data-ws-speaking="true"\] > span \{\s*color: var\(--skin-kaak-accent\);\s*\}/);
|
||||
|
||||
Reference in new issue
Block a user