style KAAK member context menu

This commit is contained in:
illusia committed 2026-10-11 21:13:56 +08:00
1 parent fb39aabbe2
commit 10739a7c7e
8 files changed
+120 -7

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ While the WebSpeak performance card is sampling, its refresh icon spins to show
KAAK is a schema v3 open-skin package with full connection and voice-workspace surfaces. Its desktop voice page follows KOOK's proportions: an 86px server rail with 58px icons and 18px vertical spacing, 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, a 2px green active outline and left-edge marker, with neutral fallback tiles and the muted purple active tile from the reference. The identity tile stays pinned at the bottom with a 54px circular monogram and connection-aware online dot; the server list scrolls when the window is short. The host provides a stable color-tone value derived only from the privacy-safe label, but the rail keeps the KOOK neutral tile treatment rather than exposing those tones. 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. Member cards expose WebSpeak's trusted member-actions menu from a small hover or keyboard-focus control; touch layouts keep the control visible. That menu provides the existing individual-volume slider and member actions without adding skin-side audio logic.
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. Member cards expose WebSpeak's trusted member-actions menu from a small hover or keyboard-focus control; desktop cards also open it on right-click, and touch layouts keep the control visible. KAAK gives the host menu KOOK's compact dark panel, separated volume section, and highlighted action rows while keeping WebSpeak's own individual-volume slider and member actions; it does not add KOOK menu actions or skin-side audio logic.
The design target is the voice-client portion of KOOK, as requested by the project owner. It does not include discovery, companion/party, event, store, advertising, administrator, or other service-operator pages. It does not add a KOOK account flow, direct messages, server administration, or channels absent from the connected TeamSpeak server. The voice performance card also closes on outside click or Escape; Escape returns focus to its trigger, and its entrance/exit motion respects reduced-motion preferences.
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.68",
"version": "3.1.69",
"author": "WebSpeak Project",
"license": "AGPL-3.0-only",
"description": "A KOOK-inspired voice workspace with a searchable server header, TeamSpeak banner and welcome message, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
+102 -2
View File
@@ -1005,8 +1005,108 @@
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-card [data-ws-part="voice.member.action-trigger"]:hover {
background: #303136;
}
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-empty { display: grid; min-height: 160px; place-content: center; justify-items: center; gap: 8px; color: var(--skin-kaak-muted); text-align: center; }
/* Match KOOK's compact dark context-menu treatment while keeping WebSpeak actions. */
[data-ws-part="voice.context-menu"] {
color: var(--skin-kaak-text);
border-color: #48494f;
background: #303136;
box-shadow: 0 14px 32px #0008;
font-family: var(--skin-kaak-font);
}
[data-ws-part="voice.context-menu"] .member-menu-header {
padding: 2px 4px 8px;
border-bottom: 1px solid #48494f;
}
[data-ws-part="voice.context-menu"] .member-menu-header strong {
padding: 0;
color: #f0f1f3;
font-size: 13px;
font-weight: 600;
line-height: 18px;
}
[data-ws-part="voice.context-menu"] .member-menu-close {
color: #b8bac1;
background: #3b3c42;
}
[data-ws-part="voice.context-menu"] .menu-volume {
gap: 8px;
padding: 8px 4px 11px;
border-bottom: 1px solid #48494f;
color: #c1c2c8;
font-size: 11px;
}
[data-ws-part="voice.context-menu"] .menu-volume input {
accent-color: var(--skin-kaak-accent);
}
[data-ws-part="voice.context-menu"] .menu-volume input::-webkit-slider-thumb {
border-color: var(--skin-kaak-accent);
box-shadow: 0 0 0 2px #303136;
}
[data-ws-part="voice.context-menu"] .menu-volume input::-moz-range-thumb {
border-color: var(--skin-kaak-accent);
box-shadow: 0 0 0 2px #303136;
}
[data-ws-part="voice.context-menu"] > button,
[data-ws-part="voice.context-menu"] .member-menu-submenu-trigger {
gap: 9px;
padding: 7px 9px;
border-radius: 6px;
color: #d5d6db;
background: transparent;
font-size: 12px;
line-height: 18px;
transition: color .14s ease, background-color .14s ease;
}
[data-ws-part="voice.context-menu"] > button:hover,
[data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:hover {
color: #f0f1f3;
background: #414248;
}
[data-ws-part="voice.context-menu"] > button:focus-visible,
[data-ws-part="voice.context-menu"] .member-menu-submenu-trigger:focus-visible {
outline: 2px solid var(--skin-kaak-accent);
outline-offset: 1px;
}
[data-ws-part="voice.context-menu"] .member-menu-submenu {
margin-top: 3px;
padding-top: 5px;
border-top: 1px solid #48494f;
}
[data-ws-part="voice.context-menu"] .member-menu-submenu-arrow,
[data-ws-part="voice.context-menu"] .member-submenu-panel button small,
[data-ws-part="voice.context-menu"] .member-submenu-empty {
color: #a0a2a8;
}
[data-ws-part="voice.context-menu"] .member-submenu-panel {
color: var(--skin-kaak-text);
border-color: #48494f;
background: #303136;
box-shadow: 0 14px 32px #0008;
}
[data-ws-part="voice.context-menu"] .member-submenu-panel button {
color: #d5d6db;
background: transparent;
}
[data-ws-part="voice.context-menu"] .member-submenu-panel button:hover {
color: #f0f1f3;
background: #414248;
}
@media (min-width: 821px) {
[data-ws-part="voice.context-menu"] {
min-width: 236px;
gap: 3px;
padding: 8px;
border-radius: 11px;
}
[data-ws-part="voice.context-menu"] > button,
[data-ws-part="voice.context-menu"] .member-menu-submenu-trigger {
min-height: 34px;
}
}
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-empty { display: grid; min-height: 160px; place-content: center; justify-items: center; gap: 8px; color: var(--skin-kaak-muted); text-align: center; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-empty strong { color: var(--skin-kaak-text); font-size: 14px; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .voice-empty > span:last-child { font-size: 11px; }