mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-01 02:52:49 +08:00
style: match KAAK password dialogs to reference
This commit is contained in:
1 parent
2f5cdcba90
commit
53324ef02b
12 files changed
+228
-12
No files matched your search
@@ -30,7 +30,7 @@ The owner authorized inspection of the first two voice rooms in the KOOK server.
|
||||
|
||||
## Components and permissions
|
||||
|
||||
The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, disconnect, and screen-share status/read/control. Its member-card widget explicitly enables share status and watch actions; the KAAK dock uses the host's screen-share control. The performance panel hides only share transport metrics. The host renders trusted connection, language, skin, and audio controls. KAAK 3.1.77 keeps the shared-screen player inside the central voice-stage column with an explicit responsive height, so the player cannot collapse when the host applies its inline video sizing; member cards scroll in the remaining area. The full source image remains visible with black letterboxing. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control.
|
||||
The connection page and voice workspace are full-page declarative surfaces in [components.json](./kaak-voice/components.json). The voice surface requests only the capabilities it uses: visible server shortcuts, channel and member data, cached profile-avatar display inside the trusted member-card widget, channel joining, channel chat, voice status, microphone/output controls, whisper controls, disconnect, and screen-share status/read/control. Its member-card widget explicitly enables share status and watch actions; the KAAK dock uses the host's screen-share control. The performance panel hides only share transport metrics. The host renders trusted connection, language, skin, and audio controls. KAAK 3.1.78 keeps the shared-screen player inside the central voice-stage column with an explicit responsive height, so the player cannot collapse when the host applies its inline video sizing; member cards scroll in the remaining area. The full source image remains visible with black letterboxing. Server and channel password prompts use the compact dark KAAK dialog style while retaining WebSpeak's trusted password, error, cancel, and retry behavior. It rechecks permissions and connection state when each action runs; approval is local to this skin version and can be revoked from the host access control.
|
||||
|
||||
The server header uses the live, privacy-filtered TeamSpeak server label and a trusted `voice.server-switcher` menu backed by favorites and recent connections. Its click handler reuses WebSpeak's existing connection flow with an opaque local ID; addresses and credentials never enter skin data. The left panel uses the trusted `voice.channel-tree` widget to retain TeamSpeak channel nesting, member counts and capacity, available avatars, and mute/speaking/away states. Expanding a branch is local UI state, a single click selects a channel, and double-click joins it. With `memberActions` enabled, right-clicking another member row opens WebSpeak's existing host-owned action menu. With `memberDragDrop` enabled, another member can be dragged onto a different channel row; the member row and target channel receive visual feedback, and the host reuses its existing move-client operation. Both options default off for other skins. The skin does not add KOOK's separate text-channel list.
|
||||
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.77",
|
||||
"version": "3.1.78",
|
||||
"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.",
|
||||
|
||||
@@ -322,7 +322,7 @@
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
[data-ws-plugin-part="kaak-workspace.identity-entry"] {
|
||||
[data-ws-plugin-part="kaak-workspace.identity-entry"] {
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
left: 0;
|
||||
@@ -3125,3 +3125,169 @@
|
||||
[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; }
|
||||
}
|
||||
|
||||
[data-ws-part="auth.password.backdrop"] {
|
||||
padding: 16px;
|
||||
background: rgba(10, 11, 13, .54);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
[data-ws-part="auth.password.dialog"] {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
width: min(438px, calc(100vw - 32px));
|
||||
min-height: 204px;
|
||||
max-height: min(90dvh, 380px);
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
color: #f0f1f3;
|
||||
border: 1px solid #303136;
|
||||
border-radius: 16px;
|
||||
background: #242529;
|
||||
box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
|
||||
}
|
||||
[data-ws-part="auth.password.decoration"],
|
||||
[data-ws-part="auth.password.eyebrow"],
|
||||
[data-ws-part="auth.password.lead"],
|
||||
[data-ws-part="auth.password.label"],
|
||||
[data-ws-part="auth.password.field-icon"] {
|
||||
display: none;
|
||||
}
|
||||
[data-ws-part="auth.password.title"] {
|
||||
margin: 0 30px 18px 0;
|
||||
color: #f0f1f3;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: normal;
|
||||
line-height: 20px;
|
||||
}
|
||||
[data-ws-part="auth.password.form"] {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
}
|
||||
[data-ws-part="auth.password.field"] {
|
||||
box-sizing: border-box;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
gap: 0;
|
||||
padding: 0 15px;
|
||||
color: #d6d7db;
|
||||
border: 1px solid #3b3c40;
|
||||
border-radius: 12px;
|
||||
background: #242529;
|
||||
transition: border-color .16s ease, box-shadow .16s ease;
|
||||
}
|
||||
[data-ws-part="auth.password.field"]:focus-within {
|
||||
border-color: #6cbf00;
|
||||
background: #242529;
|
||||
box-shadow: 0 0 0 2px rgba(108, 191, 0, .2);
|
||||
}
|
||||
[data-ws-part="auth.password.field"] input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
color: #f0f1f3;
|
||||
outline: none;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
}
|
||||
[data-ws-part="auth.password.field"] input::placeholder {
|
||||
color: #777980;
|
||||
}
|
||||
[data-ws-part="auth.password.error"] {
|
||||
margin: 10px 0 0;
|
||||
padding: 8px 10px;
|
||||
color: #ff9999;
|
||||
border: 1px solid #57383a;
|
||||
border-radius: 9px;
|
||||
background: #342729;
|
||||
font-size: 12px;
|
||||
}
|
||||
[data-ws-part="auth.password.actions"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 24px;
|
||||
margin-top: 47px;
|
||||
}
|
||||
[data-ws-part="auth.password.actions"] > button:first-child {
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
color: #aeb0b6;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
[data-ws-part="auth.password.actions"] > button:first-child:hover:not(:disabled) {
|
||||
color: #f0f1f3;
|
||||
}
|
||||
[data-ws-part="auth.password.actions"] > button:last-child {
|
||||
box-sizing: border-box;
|
||||
width: 82px;
|
||||
height: 36px;
|
||||
min-height: 36px;
|
||||
padding: 0 10px;
|
||||
color: #fff;
|
||||
border: 0;
|
||||
border-radius: 13px;
|
||||
background: #6cbf00;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background-color .16s ease;
|
||||
}
|
||||
[data-ws-part="auth.password.actions"] > button:last-child:hover:not(:disabled) {
|
||||
background: #7ac51a;
|
||||
}
|
||||
[data-ws-part="auth.password.actions"] > button:last-child:disabled {
|
||||
cursor: wait;
|
||||
opacity: 1;
|
||||
}
|
||||
[data-ws-part="auth.password.dialog"] > button {
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
right: 16px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
color: #777980;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
cursor: pointer;
|
||||
transition: color .16s ease, background-color .16s ease;
|
||||
}
|
||||
[data-ws-part="auth.password.dialog"] > button:hover:not(:disabled) {
|
||||
color: #f0f1f3;
|
||||
background: #303137;
|
||||
}
|
||||
[data-ws-part="auth.password.dialog"] > button > svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
[data-ws-part="auth.password.dialog"] > button:focus-visible,
|
||||
[data-ws-part="auth.password.actions"] > button:focus-visible {
|
||||
outline: 2px solid #8cda33;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
@media (max-width: 740px) {
|
||||
[data-ws-part="auth.password.backdrop"] {
|
||||
align-items: center;
|
||||
padding: 12px;
|
||||
}
|
||||
[data-ws-part="auth.password.dialog"] {
|
||||
width: min(438px, calc(100vw - 24px));
|
||||
padding: 20px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user