mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-05 04:52:49 +08:00
feat(kaak): match provided voice dock layout
This commit is contained in:
1 parent
b9f3272210
commit
74ee82a927
10 files changed
+77
-41
No files matched your search
@@ -12,10 +12,10 @@
|
||||
|
||||
## 当前检查点(2026-10-11)
|
||||
|
||||
- KAAK 当前源码版本为 3.1.56;控制坞按用户提供的 264px HTML 样例重新排为标题栏、分享与两个小操作、底部语音控制。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
|
||||
- KAAK 当前源码版本为 3.1.58;控制坞按用户 HTML 原型使用三列双排:顶排为分享、降噪、伴奏,底排为语音感应/设置入口、麦克风、扬声器。原型中的 REC 没有对应录音能力,第二个位置映射为 WebSpeak 已有的降噪开关。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
|
||||
- 语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均已有对应实现;音频设置标签为 KOOK 已记录的 14px/400,表单卡与字段行按实测宽度/行高调整。
|
||||
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。独立文字频道不复刻;KOOK 的付费分享呈现不复刻,WebSpeak 自带屏幕分享入口和播放器保留。
|
||||
- 设备选择菜单已按皮肤实际高度限位;KAAK 音频滑杆、性能反馈、字体和成员卡交互均有对应实现。最新完整验证 666/666,服务端 TypeScript 构建和前端类型检查/生产构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。
|
||||
- 设备选择菜单已按皮肤实际高度限位;KAAK 音频滑杆、性能反馈、字体和成员卡交互均有对应实现。此前完整验证为 666/666;本轮完整验证为 670/670,服务端 TypeScript 构建和前端类型检查/生产构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。
|
||||
- 本轮从 KOOK 原页读取了可见频道树的 DOM 计算字体规格;成员舞台当前未加载,截图读取超时,未推断其具体像素尺寸或动画时长。
|
||||
- KOOK 音频设置页可读到 732px 主内容区、660px 表单卡、72px 字段行及 268/320px 标签/控件列;当前设备名属于隐私数据,不记录。
|
||||
- 本轮侧栏浏览器已加载 KAAK 本地连接页;展开身份选项后,导入身份按钮保持紧凑,导出身份因当前没有身份而禁用。连接按钮没有让页面进入语音工作区,因此本轮无法从浏览器目视确认左下控制坞。
|
||||
@@ -402,3 +402,19 @@
|
||||
- 版本与分发包:KAAK 升至 3.1.56;更新目录版本和样式断言,重建示例与内置 `.wskin`。
|
||||
- 验证:皮肤包构建通过;完整 `npm run verify` 为 670/670 测试通过,服务端 TypeScript、前端类型检查和 Vite 生产构建通过。最后微调窄屏标题列后重新构建皮肤包,皮肤包/目录定向测试 23/23 通过,`git diff --check` 通过。没有将静态样例预览称作语音工作区实机验收。
|
||||
- 当前状态:实现已按用户 HTML 结构落到 KAAK 样式;本地提交 `d40441d` 已经推送到 `dev`(远端提交 `0ad7386`)。语音工作区尚未做实时浏览器目视验收。
|
||||
|
||||
## 本轮修改节点(2026-10-11,KAAK 3.1.57 降噪与设置入口重新排布)
|
||||
|
||||
- 参考与目标:用户补充了当前面板及理想底排截图。顶排只留屏幕分享和伴奏;底排在“语音感应”一侧使用设置齿轮,之后依次降噪、麦克风、扬声器;降噪需与同排控件水平对齐。
|
||||
- 修改内容与范围:桌面皮肤网格改为四列两行,分享按钮跨前三列、伴奏占右侧;语音活动设置入口显示齿轮,降噪移入底排第二列并使用同一行高;麦克风和扬声器置于其右侧。移动端沿用相同次序,并显示现有伴奏开关。只调整通用房间音频控件的现有入口标识与 KAAK 排列/样式,没有新增音频功能。
|
||||
- 文档与分发包:KAAK 升至 3.1.57,更新版本断言和工作记录,重建示例与内置 `.wskin`。
|
||||
- 验证:待集中运行皮肤包构建、完整验证和差异检查;实时语音工作区目视验收另行记录,不用静态 CSS 断言代替视觉验收。
|
||||
- 当前状态:布局与图标调整完成,待验证并推送 `dev`。
|
||||
|
||||
## 本轮修改节点(2026-10-11,KAAK 3.1.58 按用户 HTML 原型细化)
|
||||
|
||||
- 参考与目标:用户提供完整控制坞 HTML,明确 264px 面板、三列动作区、顶排主操作与底排语音控件的紧凑尺寸。按其实际结构把分享放在左侧宽列,右侧放两个小按钮;底排设置入口与麦克风、扬声器对齐。
|
||||
- 修改内容与范围:桌面与移动端均按分享/降噪/伴奏在顶排,语音感应文字加齿轮/麦克风/扬声器在底排重排。原型里的 REC 不对应现有录音能力,因此该位置绑定已有降噪功能,没有添加假录制按钮。设置图标移至文字右侧,断开连接改用语义正确的电源图标。
|
||||
- 文档与分发包:KAAK 升至 3.1.58,更新目录版本与布局断言,重建示例和内置 `.wskin`。
|
||||
- 验证:皮肤包构建通过;完整 `npm run verify` 通过(670/670 测试、服务端 TypeScript 构建、前端类型检查和 Vite 生产构建);差异空白检查通过。实时语音工作区目视验收另行记录。
|
||||
- 当前状态:实现与验证完成,待提交并推送 `dev`。
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.56",
|
||||
"version": "3.1.58",
|
||||
"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.",
|
||||
|
||||
@@ -1181,8 +1181,8 @@
|
||||
[data-ws-plugin-part="kaak-workspace.output-control"][aria-pressed="true"] { color: var(--skin-kaak-danger); }
|
||||
[data-ws-plugin-part="kaak-workspace.disconnect-control"] { color: var(--skin-kaak-danger); }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"] { grid-column: 4; grid-row: 1; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"] { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; color: #ff667e; background: transparent; font-size: 0; cursor: pointer; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"]::before { content: "⏻"; font-size: 16px; line-height: 1; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"] { display: grid; place-items: center; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; color: #ed4541; background: transparent; font-size: 0; cursor: pointer; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"] .ui-icon { width: 20px; height: 20px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"]:hover { color: #ff8498; background: #3a292b; }
|
||||
[data-ws-plugin-part="kaak-workspace.output-volume"] { width: 72px; accent-color: var(--skin-kaak-accent); }
|
||||
[data-ws-plugin-part="kaak-workspace.whisper-controls"] { display: flex; gap: 6px; margin-top: 12px; }
|
||||
@@ -1202,9 +1202,7 @@
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-audio-button { width: 32px; height: 32px; color: var(--skin-kaak-muted); }
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-audio-button:hover,
|
||||
[data-ws-plugin-part="kaak-workspace"] .dock-audio-button:focus-visible { color: var(--skin-kaak-accent); background: var(--skin-kaak-raised); border-color: var(--skin-kaak-border); }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .accompaniment-toggle { display: none; }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.disconnect-control"] {
|
||||
[data-ws-plugin-part="kaak-workspace.disconnect-control"] {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
}
|
||||
@@ -1502,7 +1500,7 @@
|
||||
gap: inherit;
|
||||
padding: 0;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-voice-sensitivity {
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-audio-settings {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -1521,13 +1519,13 @@
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-voice-sensitivity .ui-icon {
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-audio-settings .ui-icon {
|
||||
display: block;
|
||||
flex: 0 0 auto;
|
||||
transform: none;
|
||||
}
|
||||
[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 {
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-audio-settings:hover,
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .room-panel-audio-settings:focus-visible {
|
||||
color: #eef2f6;
|
||||
background: #303236;
|
||||
}
|
||||
@@ -1540,8 +1538,8 @@
|
||||
justify-content: center;
|
||||
width: 19px;
|
||||
min-width: 19px;
|
||||
height: 23px;
|
||||
min-height: 23px;
|
||||
height: 22px;
|
||||
min-height: 22px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
@@ -1569,7 +1567,7 @@
|
||||
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"] .noise-suppression-toggle { grid-column: 2; grid-row: 1; align-self: center; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .accompaniment-toggle {
|
||||
display: inline-flex;
|
||||
grid-column: 3;
|
||||
@@ -1587,10 +1585,7 @@
|
||||
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: #fff;
|
||||
background: #6cbf00;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle.active { color: #fff; background: #6cbf00; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .desktop-audio-dock-room-panel .accompaniment-toggle {
|
||||
width: 37px;
|
||||
min-width: 37px;
|
||||
@@ -1620,11 +1615,7 @@
|
||||
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: transparent;
|
||||
background: #7ad600;
|
||||
transform: none;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .noise-suppression-toggle:focus-visible { border-color: transparent; transform: none; }
|
||||
[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 {
|
||||
@@ -1636,7 +1627,7 @@
|
||||
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.audio-controls"] .noise-suppression-toggle[aria-pressed="false"] { color: #777b82; background: transparent; }
|
||||
[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"] {
|
||||
@@ -1743,8 +1734,19 @@
|
||||
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-microphone-toggle { grid-column: 2; grid-row: 2; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-output-toggle { grid-column: 3; grid-row: 2; }
|
||||
[data-ws-plugin-part="kaak-workspace.audio-controls"] .mobile-accompaniment-toggle {
|
||||
grid-column: 3;
|
||||
grid-row: 1;
|
||||
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-voice-toggle {
|
||||
flex: 0 0 36px;
|
||||
width: 36px;
|
||||
@@ -1765,6 +1767,7 @@
|
||||
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[aria-pressed="false"] { color: #777b82; background: transparent; }
|
||||
[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%;
|
||||
@@ -1786,6 +1789,7 @@
|
||||
[data-ws-plugin-part="kaak-workspace.microphone-control"],
|
||||
[data-ws-plugin-part="kaak-workspace.output-control"],
|
||||
[data-ws-plugin-part="kaak-workspace.disconnect-control"] { min-width: 36px; min-height: 36px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock-heading"] [data-ws-plugin-part="kaak-workspace.disconnect-control"] { width: 28px; min-width: 28px; height: 28px; min-height: 28px; }
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.server-subtitle"] { font-size: 11px; }
|
||||
|
||||
Binary file not shown.
@@ -72,6 +72,7 @@
|
||||
<path v-else-if="name === 'users'" d="M16 21v-2a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v2m6-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm6-7a4 4 0 0 1 0 7m2 5h1a4 4 0 0 1 4 4v1" />
|
||||
<path v-else-if="name === 'message'" d="M20 11.5a7.5 7.5 0 0 1-8 7.5 9.4 9.4 0 0 1-3-.5L4 20l1.5-3.6A7.2 7.2 0 0 1 4 11.5 7.5 7.5 0 0 1 12 4a7.5 7.5 0 0 1 8 7.5Z" />
|
||||
<path v-else-if="name === 'door'" d="M10 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5m5 14 5-5-5-5m5 5H9" />
|
||||
<path v-else-if="name === 'power'" d="M12 2v10m-5.9-5.1a9 9 0 1 0 11.8 0" />
|
||||
<path v-else-if="name === 'waveform'" d="M3 12h2l2-6 3 12 3-9 2 6h6" />
|
||||
<template v-else-if="name === 'noise-suppression'">
|
||||
<path d="M2.5 13h2l2-5 2.7 9 2.4-7 1.4 3H15" />
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
<button
|
||||
v-if="layout === 'room-panel'"
|
||||
type="button"
|
||||
class="room-panel-voice-sensitivity"
|
||||
:aria-label="t('voiceActivity')"
|
||||
:title="t('voiceActivity')"
|
||||
class="room-panel-audio-settings"
|
||||
:aria-label="t('audioSettings')"
|
||||
:title="t('audioSettings')"
|
||||
aria-haspopup="dialog"
|
||||
@click="emit('settings')"
|
||||
><Icon name="activity" :size="16" /><span>{{ t("voiceActivity") }}</span></button
|
||||
><span>{{ t("voiceActivity") }}</span><Icon name="settings" :size="16" /></button
|
||||
>
|
||||
<div class="desktop-audio-dock-copy"
|
||||
><strong>{{ t("desktopAudioControls") }}</strong
|
||||
|
||||
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.56",
|
||||
version: "3.1.58",
|
||||
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.56");
|
||||
assert.equal(skin.version, "3.1.58");
|
||||
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");
|
||||
@@ -560,6 +560,11 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
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, /room-panel-audio-settings[\s\S]*?grid-column: 1;[\s\S]*?grid-row: 2;/);
|
||||
assert.match(skin.css, /noise-suppression-toggle \{ grid-column: 2; grid-row: 1; align-self: center; \}/);
|
||||
assert.match(skin.css, /voice\.audio-dock\.microphone[\s\S]*?grid-column: 2;[\s\S]*?grid-row: 2;/);
|
||||
assert.match(skin.css, /voice\.audio-dock\.output[\s\S]*?grid-column: 3;[\s\S]*?grid-row: 2;/);
|
||||
assert.match(skin.css, /accompaniment-toggle \{[\s\S]*?grid-column: 3;[\s\S]*?grid-row: 1;/);
|
||||
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*\}/);
|
||||
@@ -752,7 +757,7 @@ test("the Harbor voice skin imports a complete voice-only KOOK-inspired workspac
|
||||
assert.ok(skin.css.includes('[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="1"]'));
|
||||
assert.ok(skin.css.includes('[data-ws-plugin-part="harbor-workspace.identity-entry"]'));
|
||||
assert.ok(skin.css.includes('data-ws-plugin-part="harbor-workspace.screen-share-start"'), "the host screen-share control uses the stable plugin part hook");
|
||||
assert.ok(skin.css.includes(".accompaniment-toggle { display: none; }"));
|
||||
assert.ok(skin.css.includes(".accompaniment-toggle { display: none; }"));
|
||||
assert.ok(!skin.css.includes("https://"), "the skin uses no remote artwork or font resources");
|
||||
});
|
||||
|
||||
|
||||
@@ -1773,10 +1773,10 @@ const skinPluginWidgets = {
|
||||
h("button", {
|
||||
type: "button",
|
||||
class: "mobile-voice-activity",
|
||||
"aria-label": t("voiceActivity"),
|
||||
title: t("voiceActivity"),
|
||||
"aria-label": t("audioSettings"),
|
||||
title: t("audioSettings"),
|
||||
onClick: () => { settingsOpen.value = true; },
|
||||
}, [h(Icon, { name: "activity", size: 16 }), h("span", null, t("voiceActivity"))]),
|
||||
}, [h("span", null, t("voiceActivity")), h(Icon, { name: "settings", size: 16 })]),
|
||||
h("button", {
|
||||
type: "button",
|
||||
class: ["mobile-voice-toggle", "mobile-noise-suppression", noiseSuppressionEnabled.value && "active"],
|
||||
@@ -1788,18 +1788,28 @@ const skinPluginWidgets = {
|
||||
] : []),
|
||||
h("button", {
|
||||
type: "button",
|
||||
class: ["mobile-voice-toggle", microphoneMuted.value && "muted"],
|
||||
class: ["mobile-voice-toggle", "mobile-microphone-toggle", microphoneMuted.value && "muted"],
|
||||
"aria-label": t("microphone"),
|
||||
"aria-pressed": !microphoneMuted.value,
|
||||
onClick: toggleMicrophone,
|
||||
}, [h(Icon, { name: microphoneMuted.value ? "mic-off" : "mic", size: 20 }), h("span", null, t("microphone"))]),
|
||||
h("button", {
|
||||
type: "button",
|
||||
class: ["mobile-voice-toggle", outputMuted.value && "muted"],
|
||||
class: ["mobile-voice-toggle", "mobile-output-toggle", outputMuted.value && "muted"],
|
||||
"aria-label": t("speaker"),
|
||||
"aria-pressed": !outputMuted.value,
|
||||
onClick: toggleOutputMute,
|
||||
}, [h(Icon, { name: outputMuted.value ? "volume-off" : "volume", size: 20 }), h("span", null, t("speaker"))]),
|
||||
}, [h(Icon, { name: outputMuted.value ? "volume-off" : "volume", size: 20 }), h("span", null, t("speaker"))]),
|
||||
...(options?.layout === "room-panel" ? [
|
||||
h("button", {
|
||||
type: "button",
|
||||
class: ["mobile-voice-toggle", "mobile-accompaniment-toggle", accompanimentActive.value && "active"],
|
||||
"aria-label": accompanimentActive.value ? t("stopAccompaniment") : t("startAccompaniment"),
|
||||
title: accompanimentActive.value ? t("stopAccompaniment") : t("startAccompaniment"),
|
||||
"aria-pressed": accompanimentActive.value,
|
||||
onClick: audioControls.toggleAccompaniment,
|
||||
}, [h(Icon, { name: "music", size: 18 })]),
|
||||
] : []),
|
||||
])
|
||||
: h(AudioDock, {
|
||||
model: audioDockState,
|
||||
@@ -1849,7 +1859,7 @@ const skinPluginWidgets = {
|
||||
class: "ws-plugin-disconnect-control",
|
||||
"aria-label": t("exit"),
|
||||
onClick: leaveVoiceWorkspace,
|
||||
}, [h(Icon, { name: "door", size: 18 }), h("span", null, t("exit"))]),
|
||||
}, [h(Icon, { name: "power", size: 18 }), h("span", null, t("exit"))]),
|
||||
};
|
||||
|
||||
watch(() => pokeNotifications.length, (length, previousLength) => {
|
||||
|
||||
Reference in new issue
Block a user