diff --git a/docs/examples/KAAK-VOICE.md b/docs/examples/KAAK-VOICE.md index f733966..9ed9fee 100644 --- a/docs/examples/KAAK-VOICE.md +++ b/docs/examples/KAAK-VOICE.md @@ -1,6 +1,6 @@ # KAAK voice skin -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. +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. 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. 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. diff --git a/docs/examples/kaak-voice.wskin b/docs/examples/kaak-voice.wskin index aace51d..7a2a307 100644 Binary files a/docs/examples/kaak-voice.wskin and b/docs/examples/kaak-voice.wskin differ diff --git a/docs/examples/kaak-voice/components.json b/docs/examples/kaak-voice/components.json index 75cb275..0e43e5d 100644 --- a/docs/examples/kaak-voice/components.json +++ b/docs/examples/kaak-voice/components.json @@ -571,7 +571,7 @@ "part": "conversation-glyph", "children": [ { - "text": "◉" + "text": "#" } ], "when": { @@ -592,19 +592,6 @@ "equals": true } }, - { - "tag": "span", - "part": "connection-state", - "when": { - "path": "state.chatopen", - "equals": true - }, - "children": [ - { - "text": "已连接" - } - ] - }, { "tag": "button", "part": "chat-panel-toggle", @@ -625,8 +612,8 @@ "equals": true }, "children": [ - { - "text": "›" + { + "text": "×" } ] }, @@ -754,8 +741,8 @@ "type": "text", "maxlength": 1000, "autocomplete": "off", - "placeholder": "发送频道消息", - "aria-label": "发送频道消息" + "placeholder": "给 #{{session.status.channelName}} 发消息", + "aria-label": "给 #{{session.status.channelName}} 发消息" } }, { diff --git a/docs/examples/kaak-voice/manifest.json b/docs/examples/kaak-voice/manifest.json index 381b658..0c6c809 100644 --- a/docs/examples/kaak-voice/manifest.json +++ b/docs/examples/kaak-voice/manifest.json @@ -3,7 +3,7 @@ "packageType": "open-skin", "id": "community.kaak-voice", "name": "KAAK", - "version": "3.1.11", + "version": "3.1.12", "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.", diff --git a/docs/examples/kaak-voice/skin.css b/docs/examples/kaak-voice/skin.css index 38c11b2..76a1fa6 100644 --- a/docs/examples/kaak-voice/skin.css +++ b/docs/examples/kaak-voice/skin.css @@ -571,13 +571,13 @@ grid-column: 4; grid-row: 2; display: grid; - grid-template-rows: 48px minmax(0, 1fr) auto; + grid-template-rows: 58px minmax(0, 1fr) auto; gap: 10px; min-width: 0; min-height: 0; - padding: 0 17px 12px; + padding: 0 24px 14px; border-left: 1px solid var(--skin-kaak-border); - background: #303136; + background: #26272b; } [data-ws-plugin-part="kaak-workspace.conversation-heading"] { @@ -603,13 +603,6 @@ white-space: nowrap; } -[data-ws-plugin-part="kaak-workspace.connection-state"] { - color: var(--skin-kaak-accent); - font-size: 9px; - font-weight: 800; - letter-spacing: .06em; -} - [data-ws-plugin-part="kaak-workspace"] [data-ws-part="voice.chat"] { min-width: 0; min-height: 0; @@ -638,12 +631,15 @@ } [data-ws-plugin-part="kaak-workspace.chat-empty"] { - align-self: center; - margin: auto; - color: var(--skin-kaak-muted); - font-size: 13px; + align-self: stretch; + margin: 28px 0 0; + color: var(--skin-kaak-dim); + font-size: 11px; + line-height: 1.5; } +[data-ws-plugin-part="kaak-workspace.chat-message-list"]:has([data-ws-plugin-part="kaak-workspace.chat-empty"]) { justify-content: flex-start; } + [data-ws-plugin-part="kaak-workspace.chat-message"] { display: grid; grid-template-columns: 34px minmax(0, 1fr); @@ -704,16 +700,16 @@ align-items: center; gap: 8px; min-width: 0; - padding: 8px; - border: 1px solid var(--skin-kaak-border); - border-radius: 9px; - background: var(--skin-kaak-panel); + padding: 8px 10px; + border: 0; + border-radius: 11px; + background: #303136; } [data-ws-plugin-part="kaak-workspace.chat-input"] { flex: 1; min-width: 0; - height: 38px; + height: 36px; padding: 0 10px; border: 0; outline: 0; @@ -722,16 +718,24 @@ } [data-ws-plugin-part="kaak-workspace.chat-send"] { - min-width: 54px; - min-height: 36px; + display: grid; + place-items: center; + flex: 0 0 32px; + width: 32px; + min-width: 32px; + min-height: 32px; + padding: 0; border: 0; - border-radius: 7px; - color: #111; - background: var(--skin-kaak-accent); - font-weight: 700; + border-radius: 50%; + color: var(--skin-kaak-muted); + background: transparent; + font-size: 0; cursor: pointer; } +[data-ws-plugin-part="kaak-workspace.chat-send"]::after { content: "➤"; font-size: 15px; } +[data-ws-plugin-part="kaak-workspace.chat-send"]:hover { color: var(--skin-kaak-text); background: #ffffff0b; } + [data-ws-plugin-part="kaak-workspace"] .chat-panel { min-height: 0; background: transparent; } [data-ws-plugin-part="kaak-workspace"] .chat-heading { border-color: var(--skin-kaak-border); } [data-ws-plugin-part="kaak-workspace"] .message-bubble { color: var(--skin-kaak-text); background: var(--skin-kaak-panel); } diff --git a/web/public/skins/kaak-voice.wskin b/web/public/skins/kaak-voice.wskin index aace51d..7a2a307 100644 Binary files a/web/public/skins/kaak-voice.wskin and b/web/public/skins/kaak-voice.wskin differ diff --git a/web/src/services/skin-catalog.ts b/web/src/services/skin-catalog.ts index 40315ec..edf83b5 100644 --- a/web/src/services/skin-catalog.ts +++ b/web/src/services/skin-catalog.ts @@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [ { id: BUILTIN_KAAK_SKIN_ID, name: "KAAK", - version: "3.1.11", + version: "3.1.12", 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.", diff --git a/web/src/services/skin-pack.test.ts b/web/src/services/skin-pack.test.ts index b7c0142..17882ff 100644 --- a/web/src/services/skin-pack.test.ts +++ b/web/src/services/skin-pack.test.ts @@ -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.11"); + assert.equal(skin.version, "3.1.12"); 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"); @@ -518,6 +518,9 @@ test("the distributable KAAK package provides full home and voice surfaces", asy assert.equal(findPart(voice?.root, "screen-player")?.widget, "voice.screen-share-player"); assert.equal(findPart(voice?.root, "performance-panel")?.widget, "voice.performance-panel"); assert.equal(findPart(voice?.root, "chat-input")?.bindValue, "message"); + assert.equal(findPart(voice?.root, "chat-input")?.attributes?.placeholder, "给 #{{session.status.channelName}} 发消息"); + assert.equal(findPart(voice?.root, "conversation-glyph")?.children?.[0]?.text, "#"); + assert.equal(findPart(voice?.root, "connection-state"), undefined); assert.equal(findPart(voice?.root, "chat-message-avatar")?.children?.[0]?.text, "{{message.author}}"); assert.equal(findPart(voice?.root, "chat-message-body")?.children?.[0]?.part, "chat-message-heading"); assert.equal(findPart(voice?.root, "chat-message-body")?.attributes?.["data-kind"], "{{message.kind}}"); @@ -536,6 +539,8 @@ test("the distributable KAAK package provides full home and voice surfaces", asy 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, /conversation[\s\S]*?grid-template-rows: 58px minmax\(0, 1fr\) auto/); + assert.match(skin.css, /chat-send[\s\S]*?::after \{ content: "➤";/); 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/);