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

+10 -1
View File
@@ -12,7 +12,7 @@
## 当前检查点(2026-10-11)
- KAAK 当前源码版本为 3.1.68;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
- KAAK 当前源码版本为 3.1.69;最近新增 TeamSpeak 服务器横幅与欢迎语展示,沿用客户端握手携带的真实服务器信息并在缺少内容时隐藏卡片;同时保留真实服务器名与收藏/历史快速切换入口,并以宿主频道树呈现嵌套语音频道、频道成员头像和状态。服务器显示名过滤像地址的内容;快速切换不向皮肤暴露连接目标。控制坞保留 WebSpeak 现有分享、降噪、伴奏、麦克风、扬声器和设置操作;已移除无效的录制占位,仅保留屏幕共享和伴奏入口。成员右键菜单现使用 KOOK 深色浮层格式,菜单项和行为仍为 WebSpeak 原有操作。3.1.55 的横向单行方案已被用户明确否决,不再沿用;3.1.53 已移除皮肤布局运行时对宿主控件强加的 44px 尺寸。
- 语音布局、成员卡、频道/聊天收起、音量反馈、性能卡片、设备下拉交互和字体层级均已有对应实现;音频设置标签为 KOOK 已记录的 14px/400,表单卡与字段行按实测宽度/行高调整。
- 直接观察记录覆盖语音侧栏/频道树、成员卡与悬停姓名、当前语音频道聊天开合、语音坞、音频设置字体及设备列表尺寸和状态。独立文字频道不复刻;KOOK 的付费分享呈现不复刻,WebSpeak 自带屏幕分享入口和播放器保留。
- 设备选择菜单已按皮肤实际高度限位;KAAK 音频滑杆、性能反馈、字体和成员卡交互均有对应实现。3.1.66 完整验证为 680/680,服务端 TypeScript 构建、前端类型检查和生产构建通过。用户已明确 KOOK 音乐语音频道附带聊天默认收起、普通语音频道默认展开。TeamSpeak `ChannelInfo` 与皮肤上下文没有音乐类别字段;当前实现按频道分别记住聊天开合,尚不能判断从未设置过的频道是否为音乐频道。
@@ -495,3 +495,12 @@
- 修改范围:SDK 将握手中的横幅 URL、欢迎语加入公开 `ServerInfo`;WebSpeak 改读握手字段并继续做 URL/长度校验,删除依赖额外 `serverinfo` 权限的读取。没有改皮肤布局或图片样式。
- 实测:用已授权测试连接确认握手能提供横幅 URL 和欢迎语;本次 `serverinfo` 查询确实因权限不足被拒绝。测试输出只记录字段是否存在、长度和协议,不记录 URL 或服务器地址。
- 推送与部署:SDK `main` 已推送至 `956d29c`,WebSpeak `dev` 已推送至 `6c57868`;本地 3040 已重启,HTTP 200。实际测试连接的握手可读取横幅 URL 和欢迎语;浏览器需刷新并重新连接后才能目视确认。
## 本轮精修节点(2026-10-11,KAAK 3.1.69 成员卡右键菜单格式)
- 参考依据:在 KOOK 原页对成员卡执行右键,直接核对了菜单的深色浮层、圆角边框、音量滑杆分隔区和悬停行格式;没有抄入 KOOK 的操作项。
- 现状与范围:WebSpeak 的成员卡右键入口和宿主菜单已在 3.1.52 实现。本轮只为 KAAK 的 `voice.context-menu` 添加皮肤限定样式;成员音量、私聊、戳一戳、私语目标、复制昵称和移动成员全部沿用 WebSpeak 现有功能与事件。
- 修改内容:深色面板、标题分隔、音量区分隔线、紧凑灰色动作行、绿色键盘焦点和同风格的移动成员子菜单;窄屏继续使用原有底部菜单布局。未修改宿主菜单组件、事件或其他皮肤。
- 分发与文档:KAAK 版本升至 3.1.69,目录版本、示例包与内置 `.wskin` 同步更新;补充菜单格式与功能边界说明。
- 验证:`npm run skin:kaak:build`、定向皮肤包测试 21/21、完整 `npm run verify`(682/682 测试、服务端 TypeScript、前端类型检查与 Vite 生产构建)及 `git diff --check` 均通过。3040 当前活动语音标签上确认右键会显示 WebSpeak 现有菜单;为避免打断正在连接的语音会话,没有刷新该标签,因此新 CSS 需页面重新加载后目视验收。
- 当前状态:源码和分发包已准备好同步到 `dev`;菜单功能没有引入 KOOK 专属操作。
+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; }