mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
feat(kaak): render TeamSpeak server banner
This commit is contained in:
1 parent
766a9b9b5a
commit
398a4d6c7f
24 files changed
+335
-27
No files matched your search
@@ -2,6 +2,10 @@
|
||||
|
||||
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. The ring and speaking status use KAAK's shared green accent.
|
||||
|
||||
The server sidebar can show the connected TeamSpeak virtual server's configured host-banner image and welcome message between the server header and channel tree. Both fields come from live server information; the card disappears when neither is configured, and a missing or failed banner image does not hide the welcome text. Welcome content is rendered as plain text.
|
||||
|
||||
The server sidebar can show the connected TeamSpeak virtual server's configured host-banner image and welcome message between the server header and channel tree. Both fields come from live server information; the card disappears when neither is configured, and a missing or failed banner image does not hide the welcome text. Welcome content is rendered as plain text.
|
||||
|
||||
The voice-channel sidebar follows KOOK's observed typography: 16px/700 server title, 12px/700 group title, 14px/700 channel title, and 12px/400 low-contrast member count.
|
||||
|
||||
Chat visibility is kept separately for each active TeamSpeak channel, so collapsing one room does not collapse the next room. TeamSpeak does not expose KOOK's music-channel category; a new channel therefore starts expanded until the user changes its chat visibility.
|
||||
|
||||
Binary file not shown.
@@ -323,8 +323,12 @@
|
||||
"widget": "voice.server-header",
|
||||
"part": "server-summary"
|
||||
},
|
||||
{
|
||||
"tag": "nav",
|
||||
{
|
||||
"widget": "voice.server-banner",
|
||||
"part": "server-banner"
|
||||
},
|
||||
{
|
||||
"tag": "nav",
|
||||
"part": "channel-list",
|
||||
"attributes": {
|
||||
"aria-label": "频道 / Channels"
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.67",
|
||||
"version": "3.1.68",
|
||||
"author": "WebSpeak Project",
|
||||
"license": "AGPL-3.0-only",
|
||||
"description": "A KOOK-inspired voice workspace with a searchable server header, nested channel members, attached channel chat, and a compact WebSpeak audio dock.",
|
||||
"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.",
|
||||
"entry": "skin.css",
|
||||
"components": "components.json",
|
||||
"content": "content.json",
|
||||
|
||||
@@ -2897,3 +2897,65 @@
|
||||
[data-ws-plugin-part="kaak-workspace.server-summary"] .ws-voice-server-divider { margin-top: 8px; }
|
||||
[data-ws-plugin-part="kaak-workspace.voice-dock"] { padding-top: 10px; padding-bottom: 8px; }
|
||||
}
|
||||
|
||||
/* Real TeamSpeak host banner and welcome message; omitted when both are unset. */
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] {
|
||||
flex: 0 0 auto;
|
||||
min-width: 0;
|
||||
margin: 15px 16px 13px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #3b3e45;
|
||||
border-radius: 11px;
|
||||
color: #eff0f3;
|
||||
background: #202124;
|
||||
font-family: var(--skin-kaak-font);
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] .ws-voice-server-banner-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 1.95 / 1;
|
||||
object-fit: cover;
|
||||
background: #292b30;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] .ws-voice-server-banner-welcome {
|
||||
display: grid;
|
||||
grid-template-columns: 17px minmax(0, 1fr);
|
||||
gap: 9px;
|
||||
min-width: 0;
|
||||
padding: 12px 12px 13px;
|
||||
border-top: 1px solid #ffffff0b;
|
||||
background: #252628;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] .ws-voice-server-banner-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 17px;
|
||||
height: 19px;
|
||||
margin-top: 1px;
|
||||
color: #72c800;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] .ws-voice-server-banner-copy { min-width: 0; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] [data-ws-part="voice.server-banner.title"] {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
color: #eff0f3;
|
||||
font-size: 12px;
|
||||
font-weight: 750;
|
||||
line-height: 17px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] [data-ws-part="voice.server-banner.body"] {
|
||||
margin: 4px 0 0;
|
||||
color: #a5aab4;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
line-height: 16px;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
@media (max-width: 820px) {
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] { margin: 10px 8px 10px; border-radius: 9px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] .ws-voice-server-banner-welcome { gap: 8px; padding: 9px 10px 10px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] [data-ws-part="voice.server-banner.title"] { font-size: 11px; line-height: 15px; }
|
||||
[data-ws-plugin-part="kaak-workspace.server-banner"] [data-ws-part="voice.server-banner.body"] { margin-top: 3px; font-size: 10px; line-height: 14px; }
|
||||
}
|
||||
Reference in new issue
Block a user