mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skins): add component authoring workflow
This commit is contained in:
1 parent
96c29394f3
commit
0c4cc344ef
25 files changed
+2013
-58
No files matched your search
Binary file not shown.
@@ -2,8 +2,8 @@
|
||||
|
||||
这是一个 KOOK 语音工作区风格的完整皮肤测试包,参考范围只限语音客户端:服务器快捷栏、频道列表、中央聊天、成员列表和底部语音控制。没有复用 KOOK 的图片、标志、广告或站点文案,也没有加入发现、陪玩、派对、商城、活动通知、排行榜或管理后台。
|
||||
|
||||
皮肤使用 `components.json` 的安全声明式 surface 和 WebSpeak 宿主控件。频道树会在当前频道下显示已连接成员;双击频道才请求 TeamSpeak 加入,避免单击选中与加入混为一谈。服务器与频道列表只读取已授权的公开标签和状态;切换服务器、静音和断开都由宿主执行并校验。皮肤不读取服务器地址、账号凭据或连接密钥,也不包含可执行 JavaScript/Wasm;这个样例用于验证 v3 兼容 surface,v4 Wasm 插件运行时另由运行时测试覆盖。
|
||||
皮肤使用 `components.json` 的完整声明式 surface 自己构建频道树、聊天消息与输入框、成员状态和悄悄话控制;底部音频区嵌入 WebSpeak 的可信音频控件,继续使用现有麦克风/扬声器开关和音频设置(包括麦克风灵敏度)。样例隐藏与语音布局无关的伴奏开关;断开和频道控制仍由 WebSpeak 校验并执行。频道缩进直接映射 TeamSpeak 公开树深度;频道单击只改变皮肤本地选中态,双击才请求 TeamSpeak 切换频道。语音成员列表显示公开的说话、静音和离开状态。消息、频道和成员数据由权限筛选后提供。屏幕共享启动保留一个可自行排版和换肤的可信宿主按钮,以保留浏览器要求的真实用户手势;视频流和设备 API 不交给皮肤代码。皮肤不读取服务器地址、账号凭据或连接密钥,也不包含可执行 JavaScript/Wasm;这个样例用于验证 v3 surface 的可定制界面和交互,v4 Wasm 插件运行时另由运行时测试覆盖。
|
||||
|
||||
桌面布局保留四个区域:服务器快捷栏、频道树、聊天区和成员区;连接后语音控制坞固定在频道栏底部。窄屏下服务器栏保持可用,频道项转为横向滚动,成员与语音控制各自占一行,基础连接控制不被隐藏。
|
||||
桌面布局保留四个区域:服务器快捷栏、频道树、聊天区和成员区;服务器栏底部展示当前 TeamSpeak 昵称,连接后语音控制坞固定在频道栏底部。昵称项只呈现当前会话身份,不模拟 KOOK 账号或资料运营功能。窄屏下服务器栏保持可用,频道项转为横向滚动,成员与语音控制各自占一行,基础连接控制不被隐藏。
|
||||
|
||||
`manifest.json`、`components.json` 与 `skin.css` 是可编辑源码。根目录的 `../harbor-voice.wskin` 是源码打包后的本地导入包;可在测试实例的皮肤管理页导入验证,当前没有加入公共皮肤目录或发布到服务器。
|
||||
`manifest.json`、`components.json` 与 `skin.css` 是可编辑源码。根目录的 `../harbor-voice.wskin` 是源码打包后的本地导入包;源码修改后运行 `npm run skin:harbor:build` 重新打包,再在测试实例的皮肤管理页导入验证。当前没有加入公共皮肤目录或发布到服务器。
|
||||
@@ -54,18 +54,40 @@
|
||||
"session.members.read",
|
||||
"session.channel.join",
|
||||
"servers.quickList.read",
|
||||
"servers.quickList.switch"
|
||||
"servers.quickList.switch",
|
||||
"chat.channel.read",
|
||||
"chat.channel.send",
|
||||
"audio.status.read",
|
||||
"audio.microphone.control",
|
||||
"audio.output.control",
|
||||
"voice.whisper.status.read",
|
||||
"voice.whisper.control",
|
||||
"voice.disconnect",
|
||||
"voice.screenShare.read",
|
||||
"voice.screenShare.control"
|
||||
],
|
||||
"actions": {
|
||||
"switch-server": {
|
||||
"type": "quickServers.switch",
|
||||
"args": { "quickServerId": "{{server.id}}" }
|
||||
},
|
||||
"select-channel": {
|
||||
"type": "ui.setState",
|
||||
"args": { "key": "selectedchannel", "value": "{{channel.id}}" }
|
||||
},
|
||||
"join-channel": {
|
||||
"type": "voice.joinChannel",
|
||||
"args": { "channelId": "{{channel.id}}" }
|
||||
}
|
||||
},
|
||||
"send-message": {
|
||||
"type": "chat.sendMessage",
|
||||
"args": { "text": "{{state.message}}" }
|
||||
},
|
||||
"disconnect": { "type": "voice.disconnect", "args": {} },
|
||||
"whisper-on": { "type": "voice.setWhisperActive", "args": { "active": true } },
|
||||
"whisper-off": { "type": "voice.setWhisperActive", "args": { "active": false } }
|
||||
},
|
||||
"state": { "selectedchannel": "", "message": "" },
|
||||
"root": {
|
||||
"tag": "main",
|
||||
"part": "workspace",
|
||||
@@ -150,13 +172,20 @@
|
||||
"attributes": {
|
||||
"type": "button",
|
||||
"aria-current": "{{channel.current}}",
|
||||
"aria-label": "Join {{channel.name}}"
|
||||
"aria-label": "Double-click to join {{channel.name}}",
|
||||
"data-depth": "{{channel.depth}}"
|
||||
},
|
||||
"events": { "dblclick": "join-channel" },
|
||||
"events": { "click": "select-channel", "dblclick": "join-channel" },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "channel-glyph", "children": [{ "text": "◉" }] },
|
||||
{ "tag": "span", "part": "channel-name", "children": [{ "text": "{{channel.name}}" }] },
|
||||
{ "tag": "small", "part": "channel-count", "children": [{ "text": "{{channel.memberCount}}" }] }
|
||||
{ "tag": "small", "part": "channel-count", "children": [{ "text": "{{channel.memberCount}}" }] },
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "selected-channel-indicator",
|
||||
"when": { "path": "state.selectedchannel", "equals": "{{channel.id}}" },
|
||||
"attributes": { "aria-label": "Selected" }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -172,6 +201,20 @@
|
||||
"children": [
|
||||
{ "tag": "span", "part": "channel-member-avatar", "children": [{ "text": "{{voicemember.name}}" }] },
|
||||
{ "tag": "span", "part": "channel-member-name", "children": [{ "text": "{{voicemember.name}}" }] },
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "channel-member-muted",
|
||||
"when": { "path": "voicemember.status", "equals": "muted" },
|
||||
"attributes": { "aria-label": "Microphone muted" },
|
||||
"children": [{ "text": "MIC OFF" }]
|
||||
},
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "channel-member-away",
|
||||
"when": { "path": "voicemember.status", "equals": "away" },
|
||||
"attributes": { "aria-label": "Away" },
|
||||
"children": [{ "text": "AWAY" }]
|
||||
},
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "channel-member-state",
|
||||
@@ -214,7 +257,66 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.chat-panel", "part": "chat" },
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "chat",
|
||||
"children": [
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "chat-message-list",
|
||||
"attributes": { "aria-label": "Current channel messages", "role": "log", "aria-live": "polite" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "p",
|
||||
"part": "chat-empty",
|
||||
"when": { "path": "chat.messages", "empty": true },
|
||||
"children": [{ "text": "No messages yet. Say hello to the channel." }]
|
||||
},
|
||||
{
|
||||
"tag": "article",
|
||||
"part": "chat-message",
|
||||
"repeat": { "path": "chat.messages", "as": "message" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "header",
|
||||
"part": "chat-message-heading",
|
||||
"children": [
|
||||
{ "tag": "strong", "part": "chat-message-author", "children": [{ "text": "{{message.author}}" }] },
|
||||
{ "tag": "time", "part": "chat-message-time", "children": [{ "text": "{{message.time}}" }] }
|
||||
]
|
||||
},
|
||||
{ "tag": "p", "part": "chat-message-text", "children": [{ "text": "{{message.text}}" }] }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "form",
|
||||
"part": "chat-composer",
|
||||
"events": { "submit": "send-message" },
|
||||
"children": [
|
||||
{
|
||||
"tag": "input",
|
||||
"part": "chat-input",
|
||||
"bindValue": "message",
|
||||
"attributes": {
|
||||
"type": "text",
|
||||
"maxlength": 1000,
|
||||
"autocomplete": "off",
|
||||
"placeholder": "Message this channel",
|
||||
"aria-label": "Message this channel"
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "chat-send",
|
||||
"attributes": { "type": "submit", "aria-label": "Send message" },
|
||||
"children": [{ "text": "Send" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.screen-share-player", "part": "screen-player" }
|
||||
]
|
||||
},
|
||||
@@ -247,12 +349,47 @@
|
||||
"when": { "path": "member.speaking", "equals": true },
|
||||
"attributes": { "aria-label": "Speaking" },
|
||||
"children": [{ "text": "SPEAKING" }]
|
||||
},
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "member-muted-state",
|
||||
"when": { "path": "member.status", "equals": "muted" },
|
||||
"attributes": { "aria-label": "Microphone muted" },
|
||||
"children": [{ "text": "MIC OFF" }]
|
||||
},
|
||||
{
|
||||
"tag": "span",
|
||||
"part": "member-away-state",
|
||||
"when": { "path": "member.status", "equals": "away" },
|
||||
"attributes": { "aria-label": "Away" },
|
||||
"children": [{ "text": "AWAY" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.whisper-controls", "part": "whisper-controls" }
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "whisper-controls",
|
||||
"children": [
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "whisper-start",
|
||||
"when": { "path": "whisper.status.active", "equals": false },
|
||||
"attributes": { "type": "button", "aria-label": "Start whisper" },
|
||||
"events": { "click": "whisper-on" },
|
||||
"children": [{ "text": "Whisper" }]
|
||||
},
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "whisper-stop",
|
||||
"when": { "path": "whisper.status.active", "equals": true },
|
||||
"attributes": { "type": "button", "aria-label": "Stop whisper" },
|
||||
"events": { "click": "whisper-off" },
|
||||
"children": [{ "text": "Whisper on" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -269,8 +406,31 @@
|
||||
{ "tag": "span", "part": "voice-dock-caption", "children": [{ "text": "VOICE CONNECTED" }] }
|
||||
]
|
||||
},
|
||||
{ "widget": "voice.audio-controls", "part": "audio-controls" },
|
||||
{ "widget": "voice.disconnect-control", "part": "disconnect-control" }
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "voice-dock-actions",
|
||||
"children": [
|
||||
{ "widget": "voice.screen-share-start", "part": "screen-share-start" },
|
||||
{ "widget": "voice.audio-controls", "part": "audio-controls" },
|
||||
{
|
||||
"tag": "button",
|
||||
"part": "disconnect-control",
|
||||
"attributes": { "type": "button", "aria-label": "Disconnect voice" },
|
||||
"events": { "click": "disconnect" },
|
||||
"children": [{ "text": "Leave" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "div",
|
||||
"part": "identity-entry",
|
||||
"when": { "path": "session.status.userName" },
|
||||
"attributes": { "role": "group", "aria-label": "Current TeamSpeak identity" },
|
||||
"children": [
|
||||
{ "tag": "span", "part": "identity-monogram", "children": [{ "text": "TS" }] },
|
||||
{ "tag": "span", "part": "identity-name", "children": [{ "text": "{{session.status.userName}}" }] }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.harbor-voice",
|
||||
"name": "Harbor Voice Workspace",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired dark voice workspace using only WebSpeak host controls and public session data.",
|
||||
|
||||
@@ -216,6 +216,39 @@
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.identity-entry"] {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
margin-top: auto;
|
||||
padding: 9px 1px 1px;
|
||||
border-top: 1px solid var(--skin-harbor-border);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.identity-monogram"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 1px solid #ffffff18;
|
||||
border-radius: 50%;
|
||||
color: var(--skin-harbor-text);
|
||||
background: linear-gradient(145deg, #4a4c53, #292a30);
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.identity-name"] {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
color: var(--skin-harbor-muted);
|
||||
font-size: 8px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-panel"] {
|
||||
z-index: 1;
|
||||
grid-column: 2;
|
||||
@@ -266,6 +299,7 @@
|
||||
[data-ws-plugin-part="harbor-workspace.section-label"] { margin: 0 8px 7px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"] {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
@@ -280,6 +314,14 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.selected-channel-indicator"] {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 1px solid var(--skin-harbor-accent);
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"]:hover,
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][aria-current="true"] {
|
||||
color: var(--skin-harbor-text);
|
||||
@@ -290,6 +332,15 @@
|
||||
box-shadow: inset 2px 0 var(--skin-harbor-accent);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="1"] { padding-inline-start: 19px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="2"] { padding-inline-start: 29px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="3"] { padding-inline-start: 39px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="4"] { padding-inline-start: 49px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="5"] { padding-inline-start: 59px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="6"] { padding-inline-start: 69px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="7"] { padding-inline-start: 79px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth="8"] { padding-inline-start: 89px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-glyph"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
@@ -356,6 +407,19 @@
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-muted"],
|
||||
[data-ws-plugin-part="harbor-workspace.member-muted-state"] {
|
||||
color: var(--skin-harbor-danger);
|
||||
font-size: 8px;
|
||||
font-weight: 800;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.channel-member-away"],
|
||||
[data-ws-plugin-part="harbor-workspace.member-away-state"] {
|
||||
color: var(--skin-harbor-dim);
|
||||
font-size: 8px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation"] {
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
@@ -406,6 +470,71 @@
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat"] {
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 1fr) auto;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
color: var(--skin-harbor-text);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat-message-list"] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
gap: 14px;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 8px 4px 16px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat-empty"] {
|
||||
align-self: center;
|
||||
margin: auto;
|
||||
color: var(--skin-harbor-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat-message"] { min-width: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace.chat-message-heading"] { display: flex; align-items: baseline; gap: 8px; }
|
||||
[data-ws-plugin-part="harbor-workspace.chat-message-author"] { color: var(--skin-harbor-text); font-size: 12px; }
|
||||
[data-ws-plugin-part="harbor-workspace.chat-message-time"] { color: var(--skin-harbor-dim); font-size: 10px; }
|
||||
[data-ws-plugin-part="harbor-workspace.chat-message-text"] { margin: 3px 0 0; color: var(--skin-harbor-muted); font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat-composer"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--skin-harbor-border);
|
||||
border-radius: 9px;
|
||||
background: var(--skin-harbor-panel);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat-input"] {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 38px;
|
||||
padding: 0 10px;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
color: var(--skin-harbor-text);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.chat-send"] {
|
||||
min-width: 54px;
|
||||
min-height: 36px;
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
color: #111;
|
||||
background: var(--skin-harbor-accent);
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] .chat-panel { min-height: 0; background: transparent; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .chat-heading { border-color: var(--skin-harbor-border); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .message-bubble { color: var(--skin-harbor-text); background: var(--skin-harbor-panel); }
|
||||
@@ -484,13 +613,17 @@
|
||||
letter-spacing: .05em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.member-muted-state"],
|
||||
[data-ws-plugin-part="harbor-workspace.member-away-state"],
|
||||
[data-ws-plugin-part="harbor-workspace.speaking-indicator"] { grid-column: 2 / -1; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock"] {
|
||||
z-index: 4;
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
align-self: end;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 6px 8px;
|
||||
min-width: 0;
|
||||
padding: 9px;
|
||||
@@ -508,6 +641,15 @@
|
||||
gap: 2px 7px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-actions"] {
|
||||
grid-column: 1 / -1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.connection-indicator"] {
|
||||
grid-row: span 2;
|
||||
color: var(--skin-harbor-accent);
|
||||
@@ -528,7 +670,55 @@
|
||||
letter-spacing: .05em;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace"] [data-ws-part="voice.audio-controls"] { min-width: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace.audio-controls"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.microphone-control"],
|
||||
[data-ws-plugin-part="harbor-workspace.output-control"],
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"],
|
||||
[data-ws-plugin-part="harbor-workspace.whisper-start"],
|
||||
[data-ws-plugin-part="harbor-workspace.whisper-stop"] {
|
||||
min-width: 38px;
|
||||
min-height: 38px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid var(--skin-harbor-border);
|
||||
border-radius: 7px;
|
||||
color: var(--skin-harbor-muted);
|
||||
background: var(--skin-harbor-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.microphone-control"][aria-pressed="true"],
|
||||
[data-ws-plugin-part="harbor-workspace.output-control"][aria-pressed="true"] { color: var(--skin-harbor-danger); }
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"] { color: var(--skin-harbor-danger); }
|
||||
[data-ws-plugin-part="harbor-workspace.output-volume"] { width: 72px; accent-color: var(--skin-harbor-accent); }
|
||||
[data-ws-plugin-part="harbor-workspace.whisper-controls"] { display: flex; gap: 6px; margin-top: 12px; }
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] { flex: 0 0 auto; }
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--skin-harbor-border);
|
||||
border-radius: 7px;
|
||||
color: var(--skin-harbor-muted);
|
||||
background: var(--skin-harbor-raised);
|
||||
cursor: pointer;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] button:hover:not(:disabled),
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] button:focus-visible { color: var(--skin-harbor-accent); }
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] button:disabled { opacity: .45; cursor: not-allowed; }
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] button span {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace"] .desktop-audio-dock {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
@@ -543,6 +733,7 @@
|
||||
[data-ws-plugin-part="harbor-workspace"] .dock-audio-button { width: 34px; height: 34px; color: var(--skin-harbor-muted); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .dock-audio-button:hover,
|
||||
[data-ws-plugin-part="harbor-workspace"] .dock-audio-button:focus-visible { color: var(--skin-harbor-accent); background: var(--skin-harbor-raised); border-color: var(--skin-harbor-border); }
|
||||
[data-ws-plugin-part="harbor-workspace.audio-controls"] .accompaniment-toggle { display: none; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"] {
|
||||
display: grid;
|
||||
@@ -591,6 +782,7 @@
|
||||
[data-ws-plugin-part="harbor-workspace.server-rail"] { grid-column: 1; grid-row: 2 / 6; padding: 8px 3px; }
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"] { width: 48px; min-height: 48px; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-monogram"] { width: 36px; height: 36px; }
|
||||
[data-ws-plugin-part="harbor-workspace.identity-monogram"] { width: 34px; height: 34px; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.channel-panel"] {
|
||||
grid-column: 2;
|
||||
@@ -625,6 +817,7 @@
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.channel-item"] { flex: 0 0 auto; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"] { width: max-content; min-width: 116px; min-height: 42px; margin: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-row"][data-depth] { padding-inline-start: 9px; }
|
||||
[data-ws-plugin-part="harbor-workspace.channel-voice-members"] { display: none; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.conversation"] {
|
||||
@@ -660,6 +853,8 @@
|
||||
[data-ws-plugin-part="harbor-workspace.member-row"] { flex: 0 0 auto; grid-template-columns: 28px auto; min-height: 38px; padding: 2px 4px; }
|
||||
[data-ws-plugin-part="harbor-workspace.member-avatar"] { width: 26px; height: 26px; }
|
||||
[data-ws-plugin-part="harbor-workspace.speaking-indicator"] { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace.member-muted-state"],
|
||||
[data-ws-plugin-part="harbor-workspace.member-away-state"] { display: none; }
|
||||
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock"] {
|
||||
grid-column: 2;
|
||||
@@ -675,17 +870,23 @@
|
||||
border-bottom: 0;
|
||||
}
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-heading"] { grid-column: auto; grid-row: auto; }
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-actions"] { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 3px; }
|
||||
[data-ws-plugin-part="harbor-workspace.voice-dock-caption"] { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"] { grid-column: 2; grid-row: 1; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .mobile-voice-controls { gap: 5px; min-width: 0; }
|
||||
[data-ws-plugin-part="harbor-workspace"] .mobile-voice-toggle { min-width: 44px; min-height: 44px; color: var(--skin-harbor-text); background: var(--skin-harbor-raised); }
|
||||
[data-ws-plugin-part="harbor-workspace"] .ws-plugin-disconnect-control { width: 42px; height: 44px; }
|
||||
[data-ws-plugin-part="harbor-workspace.audio-controls"] .mobile-voice-controls { display: flex; gap: 4px; }
|
||||
[data-ws-plugin-part="harbor-workspace.audio-controls"] .mobile-voice-toggle { min-width: 44px; min-height: 44px; border-radius: 7px; color: var(--skin-harbor-muted); background: var(--skin-harbor-raised); }
|
||||
[data-ws-plugin-part="harbor-workspace.microphone-control"],
|
||||
[data-ws-plugin-part="harbor-workspace.output-control"],
|
||||
[data-ws-plugin-part="harbor-workspace.disconnect-control"] { min-width: 42px; min-height: 44px; }
|
||||
[data-ws-plugin-part="harbor-workspace.output-volume"] { width: 58px; }
|
||||
[data-ws-plugin-part="harbor-workspace.screen-share-start"] button { width: 42px; height: 44px; }
|
||||
}
|
||||
|
||||
@media (max-width: 460px) {
|
||||
[data-ws-plugin-part="harbor-workspace"] { grid-template-columns: 50px minmax(0, 1fr); }
|
||||
[data-ws-plugin-part="harbor-workspace.server-rail"] { padding-inline: 1px; }
|
||||
[data-ws-plugin-part="harbor-workspace.quick-server"] { width: 44px; }
|
||||
[data-ws-plugin-part="harbor-workspace.identity-name"] { max-width: 43px; }
|
||||
[data-ws-plugin-part="harbor-workspace.topbar"] { padding-inline: 5px; }
|
||||
[data-ws-plugin-part="harbor-workspace.brand-name"] { display: none; }
|
||||
[data-ws-plugin-part="harbor-workspace.server-title"] { max-width: 100px; }
|
||||
|
||||
Reference in new issue
Block a user