feat(kaak): refine participant stage feedback

This commit is contained in:
illusia committed 2026-10-11 06:00:05 +08:00
1 parent 01ad967e30
commit 3f68050c81
8 files changed
+67 -11

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# KAAK voice skin
The participant stage uses larger profile portraits (104px on desktop, reduced for narrow layouts). A live speaking state adds a pulsing accent ring and a visible waveform marker, including when participant names are hidden while chat is open.
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 host provides a stable color-tone number derived only from the privacy-safe label, so a tile keeps its color when the saved list order changes. 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. Closing it hides the entire panel, expands the participant stage, and leaves a reopen button in the stage heading; this happens without leaving the voice room. Its header uses the `#` channel mark and an unobtrusive close control; the composer sits at the bottom edge. 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. Member names stay hidden at rest while chat is open and fade upward into the lower-left label on hover; they remain visible while chat is collapsed. KAAK's CSS adds hover depth and a smoothly transitioning speaking ring driven by live voice state. Paid screen sharing is outside this skin; its member cards and performance panel omit share actions and share-state details. The dock retains WebSpeak's trusted connection-quality, audio, and disconnect controls. Input/output volume buttons open hover or keyboard-focus panels with live numeric levels; sliders use a skin-colored progress track, a distinct thumb, and visible focus feedback. Audio input and output devices use a reusable keyboard-accessible picker with a scrollable option list, selected/highlighted states, and an animated chevron; KAAK styles the trigger and open list. The connection surface, voice workspace, and audio settings share KOOK's PingFang SC-first font stack; audio settings use 16px/600 section headings and observed 14px/400 field labels. Audio sliders use a 16px thumb with hover/focus feedback. The performance card opens with a short entrance motion and readable network/audio metrics. No real device, volume, or microphone state is changed during visual checks. 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 collapses and expands with a short two-way height and fade transition like KOOK's voice group; the separate KOOK text-channel group remains outside this pass. A first click selects a channel and reveals a brief “双击加入” hint; the hint disappears on the active room. The current voice-room heading keeps the channel name and live member count visible above the participant stage while the attached chat is expanded, matching KOOK's room view.
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.42",
"version": "3.1.43",
"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.",
+47 -5
View File
@@ -959,10 +959,48 @@
position: absolute;
inset: 0;
display: none;
content: "";
}
[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-avatar-wrap::after {
inset: auto;
top: 50%;
left: 50%;
z-index: 0;
width: 116px;
height: 116px;
border: 2px solid #6cbf0088;
border-radius: 50%;
pointer-events: none;
transform: translate(-50%, -50%);
}
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { position: relative; z-index: 1; width: 104px; height: 104px; border: 0; box-shadow: 0 0 0 4px #11121666; font-size: 34px; 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 #6cbf00aa, 0 0 18px #6cbf0055; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] .voice-avatar-wrap::after { display: block; animation: kaak-member-speaking-ring 1.08s cubic-bezier(.2, .6, .35, 1) infinite; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card::after {
position: absolute;
z-index: 2;
right: 12px;
bottom: 12px;
display: none;
width: 34px;
height: 24px;
border-radius: 6px;
color: var(--skin-kaak-accent);
background:
linear-gradient(currentColor, currentColor) 6px 50% / 3px 6px,
linear-gradient(currentColor, currentColor) 11px 50% / 3px 12px,
linear-gradient(currentColor, currentColor) 16px 50% / 3px 8px,
linear-gradient(currentColor, currentColor) 21px 50% / 3px 14px,
#111216d9;
background-repeat: no-repeat;
box-shadow: 0 0 8px #6cbf0055;
content: "";
pointer-events: none;
transform-origin: center;
}
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"]::after { display: block; animation: kaak-member-speaking-wave .72s ease-in-out infinite alternate; }
[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; }
@@ -982,7 +1020,6 @@
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong { grid-row: 2; padding-top: 11px; font-size: 14px; font-weight: 750; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > span { grid-row: 3; margin: 0; padding-top: 3px; padding-bottom: 12px; color: #b2b3b9; font-size: 10px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] > span { color: #b2a8ff; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card[data-ws-speaking="true"] > span::after { display: inline-block; margin-left: 7px; color: #b2a8ff; content: "▂▆▃"; font-size: 10px; letter-spacing: 1px; line-height: 1; vertical-align: 1px; transform-origin: center; animation: kaak-member-speaking-wave .72s ease-in-out infinite alternate; }
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="true"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card { grid-template-rows: minmax(0, 1fr); }
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="true"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong,
[data-ws-plugin-part="kaak-workspace"]:has([data-ws-plugin-part="kaak-workspace.chat-panel-toggle"][aria-expanded="false"]) [data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card > strong {
@@ -1025,6 +1062,11 @@
100% { transform: scaleY(1.12); opacity: 1; }
}
@keyframes kaak-member-speaking-ring {
0% { opacity: .72; transform: translate(-50%, -50%) scale(.84); }
82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}
[data-ws-plugin-part="kaak-workspace.voice-dock"] {
z-index: 4;
grid-column: 2;
@@ -1171,8 +1213,8 @@
[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: 88px; height: 88px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 64px; height: 64px; font-size: 24px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar-wrap::after { width: 92px; height: 92px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-avatar { width: 76px; height: 76px; font-size: 28px; }
}
@media (max-width: 820px) {
@@ -1277,7 +1319,7 @@
[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: 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-avatar { width: 68px; height: 68px; font-size: 24px; }
[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; }