mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat(kaak): align voice room with KOOK layout
This commit is contained in:
1 parent
7fb5e1d6ea
commit
19c85ce1f5
7 files changed
+61
-42
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# KAAK voice skin
|
||||
|
||||
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its voice page uses a narrow server rail, a server/channel tree, a central participant stage, right-side chat attached to the current voice channel, and a lower-left voice dock. The server rail follows KOOK's rounded-square icon shape and left-edge active marker. 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 and can collapse into a narrow rail, then expand again without leaving the voice room; 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 large portrait tiles; KAAK's CSS styles the cards and adds hover depth, a speaking ring, and a waveform pulse driven by live voice state. The host's screen-share player appears in the room stage when someone is sharing. The dock retains WebSpeak's trusted voice-quality, audio, screen-share, and disconnect controls. 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.
|
||||
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 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 and can collapse into a narrow rail, then expand again without leaving the voice room; 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. KAAK's CSS adds hover depth, a speaking ring, and a waveform pulse driven by live voice state. The host's screen-share player appears in the room stage when someone is sharing. The dock retains WebSpeak's trusted voice-quality, audio, screen-share, and disconnect controls. 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 can collapse and expand like KOOK's voice group; the separate KOOK text-channel group remains outside this pass.
|
||||
|
||||
@@ -8,7 +8,7 @@ The design target is the voice-client portion of KOOK, as requested by the proje
|
||||
|
||||
## Reference access note
|
||||
|
||||
The owner authorized inspection of the first two voice rooms in the KOOK server. Both rooms were entered and viewed; the microphone remained off. The reference confirmed a narrow server rail, grouped channel list, a prominent participant presentation area, right-side channel chat, and a compact voice-control dock near the lower left. Server/room identifiers, member names, and chat contents were not recorded.
|
||||
The owner authorized inspection of the first two voice rooms in the KOOK server. Both rooms were entered and viewed; the microphone remained off and no message was sent. The in-room view confirmed a single large participant tile in the center, a separate right-side panel for the active voice channel's text chat, a narrow server rail, grouped voice channels, and a compact voice-control dock near the lower left. The chat was empty, so no message contents were recorded. Server/room identifiers and member names were not recorded.
|
||||
|
||||
## Components and permissions
|
||||
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.9",
|
||||
"version": "3.1.11",
|
||||
"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.",
|
||||
|
||||
@@ -119,8 +119,8 @@
|
||||
--skin-kaak-border: #3a3b40;
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 68px 276px minmax(280px, 1fr) minmax(340px, min(40vw, 520px));
|
||||
grid-template-rows: 54px minmax(0, 1fr);
|
||||
grid-template-columns: 80px 290px minmax(280px, 1fr) minmax(340px, min(38vw, 520px));
|
||||
grid-template-rows: 40px minmax(0, 1fr);
|
||||
width: 100%;
|
||||
height: 100dvh;
|
||||
min-height: 560px;
|
||||
@@ -132,7 +132,7 @@
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace"]:has([data-chat-open="false"]) {
|
||||
grid-template-columns: 68px 276px minmax(280px, 1fr) 52px;
|
||||
grid-template-columns: 80px 290px minmax(280px, 1fr) 52px;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace"] .language-switcher .language-trigger,
|
||||
@@ -208,10 +208,10 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
gap: 14px;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 13px 7px 96px;
|
||||
padding: 12px 15px 96px;
|
||||
background: var(--skin-kaak-rail);
|
||||
border-right: 1px solid #ffffff08;
|
||||
}
|
||||
@@ -243,7 +243,7 @@
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before {
|
||||
position: absolute;
|
||||
left: -7px;
|
||||
left: -15px;
|
||||
top: 50%;
|
||||
width: 3px;
|
||||
height: 22px;
|
||||
@@ -263,28 +263,37 @@
|
||||
[data-ws-plugin-part="kaak-workspace.server-monogram"] {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #ffffff12;
|
||||
border-radius: 13px;
|
||||
border-radius: 12px;
|
||||
color: var(--skin-kaak-text);
|
||||
background: linear-gradient(145deg, #383a40, #222429);
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
text-align: center;
|
||||
transition: border-radius .18s ease, transform .18s ease, border-color .18s ease;
|
||||
transition: border-radius .18s ease, transform .18s ease, border-color .18s ease, filter .18s ease;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 1) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #b54645, #59304a); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 2) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #7756b7, #352d5e); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 3) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #268f83, #20524f); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 4) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #477fbc, #294763); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 5) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #bd5b76, #63374d); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 6) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #b97837, #64442f); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 7) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #397c9a, #304560); }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server-item"]:nth-of-type(8n + 8) [data-ws-plugin-part="kaak-workspace.server-monogram"] { background: linear-gradient(145deg, #638a49, #3a513d); }
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"] [data-ws-plugin-part="kaak-workspace.server-monogram"] {
|
||||
border-color: var(--skin-kaak-accent);
|
||||
border-radius: 12px;
|
||||
background: color-mix(in srgb, var(--skin-kaak-accent) 18%, #222429);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"]:hover [data-ws-plugin-part="kaak-workspace.server-monogram"] {
|
||||
border-radius: 11px;
|
||||
transform: scale(1.04);
|
||||
filter: saturate(1.12) brightness(1.08);
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.server-kind"] {
|
||||
@@ -302,7 +311,7 @@
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 4px;
|
||||
width: 68px;
|
||||
width: 80px;
|
||||
margin: 0;
|
||||
padding: 10px 2px max(12px, env(safe-area-inset-bottom));
|
||||
border-top: 1px solid var(--skin-kaak-border);
|
||||
@@ -806,14 +815,16 @@
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-content: flex-start;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
align-items: stretch;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin: 14px 0 16px;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 14px 0 16px;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card {
|
||||
@@ -822,10 +833,10 @@
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 1fr) auto auto;
|
||||
width: 100%;
|
||||
flex: 0 1 218px;
|
||||
max-width: 218px;
|
||||
max-width: 560px;
|
||||
min-width: 0;
|
||||
min-height: 274px;
|
||||
min-height: 0;
|
||||
aspect-ratio: 1.82;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
border: 1px solid #ffffff16;
|
||||
@@ -888,8 +899,8 @@
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 126px;
|
||||
height: 126px;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin: auto;
|
||||
border: 1px solid #ffffff0c;
|
||||
border-radius: 50%;
|
||||
@@ -899,7 +910,7 @@
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card:hover .voice-avatar-wrap::before { transform: scale(1.06); border-color: #ffffff1d; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { position: relative; z-index: 1; width: 100px; height: 100px; border: 3px solid #ffffff20; box-shadow: 0 0 0 6px #11121655, inset 0 2px 8px #ffffff1a, 0 14px 30px #0006; font-size: 34px; text-shadow: 0 2px 9px #0008; transition: transform .25s ease, box-shadow .25s ease; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { position: relative; z-index: 1; width: 72px; height: 72px; border: 3px solid #ffffff20; box-shadow: 0 0 0 6px #11121655, inset 0 2px 8px #ffffff1a, 0 14px 30px #0006; font-size: 26px; text-shadow: 0 2px 9px #0008; transition: transform .25s ease, box-shadow .25s ease; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card:hover .voice-avatar { transform: scale(1.035); box-shadow: 0 0 0 7px #11121666, inset 0 2px 8px #ffffff1a, 0 18px 34px #0008; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] .voice-avatar-wrap::before { border: 2px solid #58c877b8; animation: kaak-member-speaking-ring 1.8s ease-out infinite; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] .voice-avatar-wrap::after { border-color: #58c877; animation: kaak-member-speaking-ring 1.8s ease-out .9s infinite; }
|
||||
@@ -1122,6 +1133,8 @@
|
||||
grid-template-columns: 56px 204px minmax(340px, 1fr) 48px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 56px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-rail"] { padding-inline: 3px; }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -3px; }
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
@@ -1132,13 +1145,11 @@
|
||||
grid-template-columns: 52px 184px minmax(260px, 1fr) 48px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 52px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card {
|
||||
max-width: 190px;
|
||||
min-height: 236px;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.server-rail"] { padding-inline: 1px; }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -1px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::before,
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 112px; height: 112px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 88px; height: 88px; font-size: 30px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 88px; height: 88px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 64px; height: 64px; font-size: 24px; }
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
@@ -1153,9 +1164,10 @@
|
||||
[data-ws-plugin-part="kaak-workspace.brand-mark"] { flex-basis: 28px; width: 28px; height: 28px; }
|
||||
[data-ws-plugin-part="kaak-workspace.brand-name"] { font-size: 10px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-title"] { font-size: 10px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-rail"] { grid-column: 1; grid-row: 2 / 6; padding: 8px 3px 96px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-rail"] { grid-column: 1; grid-row: 2 / 6; padding: 8px 3px 96px; gap: 8px; }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"] { width: 48px; min-height: 48px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-monogram"] { width: 36px; height: 36px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-monogram"] { width: 42px; height: 42px; }
|
||||
[data-ws-plugin-part="kaak-workspace.quick-server"][aria-current="true"]::before { left: -4px; }
|
||||
[data-ws-plugin-part="kaak-workspace.identity-monogram"] { width: 34px; height: 34px; }
|
||||
[data-ws-plugin-part="kaak-workspace.identity-entry"] { width: 56px; }
|
||||
|
||||
@@ -1245,12 +1257,12 @@
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] { min-height: 22px; border: 0; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-stage-heading"] .section-label { max-width: 160px; font-size: 8px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; scrollbar-gutter: auto; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-grid { display: flex; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; min-width: 0; min-height: 0; align-items: stretch; gap: 8px; overflow: auto hidden; margin: 3px 0 0; padding: 2px 2px 4px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { flex: 0 0 174px; min-height: 0; height: 100%; border-radius: 9px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-grid { display: flex; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; min-width: 0; min-height: 0; align-items: center; gap: 8px; overflow: auto hidden; margin: 3px 0 0; padding: 2px 2px 4px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { flex: 0 0 220px; width: 220px; max-width: none; min-height: 0; height: auto; aspect-ratio: 1.82; border-radius: 9px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap { padding: 8px 8px 2px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::before,
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 96px; height: 96px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 72px; height: 72px; font-size: 26px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 80px; height: 80px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 58px; height: 58px; font-size: 22px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { padding: 7px 9px 0; font-size: 12px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { padding: 3px 9px 8px; font-size: 9px; }
|
||||
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-member-action { width: 32px; height: 32px; }
|
||||
|
||||
Binary file not shown.
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.9",
|
||||
version: "3.1.11",
|
||||
author: "WebSpeak Project",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "A KOOK-inspired voice-room workspace with collapsible voice groups and current voice-channel chat, TeamSpeak profile cards, and 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.9");
|
||||
assert.equal(skin.version, "3.1.11");
|
||||
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");
|
||||
@@ -525,11 +525,18 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.equal(findPart(voice?.root, "audio-controls")?.widget, "voice.audio-controls");
|
||||
assert.ok(skin.css.includes('[data-ws-plugin-part="kaak-workspace.channel-row"]'));
|
||||
assert.match(skin.css, /kaak-workspace\.voice-channel-group-toggle/);
|
||||
assert.match(skin.css, /kaak-workspace\.quick-server-item.*nth-of-type\(8n \+ 1\)/);
|
||||
assert.match(skin.css, /grid-template-columns: 80px 290px/);
|
||||
assert.match(skin.css, /minmax\(340px, min\(38vw, 520px\)\)/);
|
||||
assert.match(skin.css, /grid-template-rows: 40px/);
|
||||
assert.match(skin.css, /kaak-workspace\.server-monogram[\s\S]*?width: 48px;[\s\S]*?height: 48px;/);
|
||||
assert.match(skin.css, /voice-grid[\s\S]*?grid-template-columns: repeat\(auto-fit/);
|
||||
assert.match(skin.css, /voice-card[\s\S]*?aspect-ratio: 1\.82;/);
|
||||
assert.match(skin.css, /data-chat-open="false"[\s\S]*?grid-template-columns:[^;]*52px;/);
|
||||
assert.match(skin.css, /kaak-workspace\.chat-panel-toggle/);
|
||||
assert.match(skin.css, /kaak-workspace\.voice-stage[\s\S]*?grid-column: 3;/);
|
||||
assert.match(skin.css, /kaak-workspace\.conversation[\s\S]*?grid-column: 4;/);
|
||||
assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.voice-card[\s\S]*?min-height: 274px;/);
|
||||
assert.match(skin.css, /kaak-workspace\.member-cards[\s\S]*?\.voice-card[\s\S]*?aspect-ratio: 1\.82;/);
|
||||
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-ring/);
|
||||
assert.match(skin.css, /animation: ws-community-kaak-voice-kaak-member-speaking-ring 1\.8s ease-out infinite/);
|
||||
assert.match(skin.css, /@keyframes ws-community-kaak-voice-kaak-member-speaking-wave/);
|
||||
|
||||
Reference in new issue
Block a user