mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(kaak): match audio settings layout
This commit is contained in:
1 parent
2fcea5622b
commit
2a80ade08b
10 files changed
+264
-76
No files matched your search
@@ -12,6 +12,8 @@ The design target is the voice-client portion of KOOK, as requested by the proje
|
||||
|
||||
The device picker now follows the public KOOK style geometry: a 40px trigger with 12px corners, a menu with 12px corners and 8px inset, and 32px rows with 2px gaps and 8px corners. Hover and selected rows use distinct low-contrast fills. The shared host measures the rendered menu before applying viewport limits, so skin-defined padding and row spacing stay visible without a KAAK-specific placement path. KAAK uses KOOK's dark-theme brand green (`#6cbf00`, `#7ac51a` hover) for speaker, slider, and control highlights. The performance trigger, metric values, volume readouts, audio settings icons, and sliders reuse the same accent tokens. Volume sliders use a 4px track, a 16px white thumb with a 2px brand-green border, and a 3px hover/focus halo without extra hover scaling.
|
||||
|
||||
The audio settings surface now follows the observed KOOK form proportions: a 660px dark card, 16px corners, 72px field rows, and a two-column label/control layout. Device and volume controls keep their WebSpeak behavior; only their shared form grouping and KAAK skin presentation changed. The layout stacks fields on narrow screens. KOOK's settings typography remains PingFang SC-first, with a 32px/600 title, 16px/600 section headings, and 14px/400 field labels.
|
||||
|
||||
## Reference access note
|
||||
|
||||
The owner authorized inspection of the first two voice rooms in the KOOK server. Both rooms were entered and viewed; the microphone remained off and no message was sent. The in-room view confirmed a single large participant tile in the center, a separate right-side panel for the active voice channel's text chat, a narrow server rail, grouped voice channels, and a compact voice-control dock near the lower left. The chat was empty, so no message contents were recorded. Server/room identifiers and member names were not recorded.
|
||||
|
||||
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
"packageType": "open-skin",
|
||||
"id": "community.kaak-voice",
|
||||
"name": "KAAK",
|
||||
"version": "3.1.45",
|
||||
"version": "3.1.46",
|
||||
"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.",
|
||||
|
||||
@@ -1657,6 +1657,12 @@
|
||||
font-family: var(--skin-kaak-font);
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"].settings-modal {
|
||||
width: min(760px, 100%);
|
||||
max-height: min(760px, calc(100dvh - 56px));
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.modal-backdrop:has([data-ws-part="voice.audio-settings"]) {
|
||||
background: #101115bd;
|
||||
backdrop-filter: blur(7px);
|
||||
@@ -1669,7 +1675,34 @@
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-header {
|
||||
min-height: 64px;
|
||||
min-height: 0;
|
||||
padding: 30px 16px 32px 56px;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-content {
|
||||
min-height: 0;
|
||||
padding: 0 16px 40px 56px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-audio-card {
|
||||
width: min(660px, 100%);
|
||||
box-sizing: border-box;
|
||||
overflow: visible;
|
||||
color: #e6eaf0;
|
||||
background: #25262a;
|
||||
border: 1px solid #ffffff0d;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-section {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-header {
|
||||
min-height: 0;
|
||||
border-bottom-color: #35363c;
|
||||
}
|
||||
|
||||
@@ -1677,6 +1710,7 @@
|
||||
color: #f2f3f5;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
line-height: 38px;
|
||||
letter-spacing: -.025em;
|
||||
}
|
||||
|
||||
@@ -1693,9 +1727,12 @@
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-section h3 {
|
||||
min-height: 22px;
|
||||
margin: 24px 24px 16px;
|
||||
color: #eceef0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-section h3 .ui-icon {
|
||||
@@ -1710,7 +1747,41 @@
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-label {
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-form-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 268fr) minmax(0, 320fr);
|
||||
align-items: center;
|
||||
column-gap: 24px;
|
||||
min-height: 72px;
|
||||
box-sizing: border-box;
|
||||
padding: 16px 24px;
|
||||
border-top: 1px solid #ffffff0a;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-form-row > .settings-label {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-form-control,
|
||||
[data-ws-part="voice.audio-settings"] .settings-device-select,
|
||||
[data-ws-part="voice.audio-settings"] .settings-select {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-form-control {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-range-form-row {
|
||||
min-height: 72px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-hint,
|
||||
@@ -1793,6 +1864,10 @@
|
||||
background: #25262a;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, .32);
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-select {
|
||||
min-height: 40px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-select-option {
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
@@ -1855,8 +1930,9 @@
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-range {
|
||||
height: 22px;
|
||||
margin: 8px 0 20px;
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
margin: 1px 0 0;
|
||||
appearance: none;
|
||||
border: 0;
|
||||
border-radius: 99px;
|
||||
@@ -1874,6 +1950,35 @@
|
||||
border-color: #35363c;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-separator {
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
border-top: 1px solid #ffffff12;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .audio-diagnostic,
|
||||
[data-ws-part="voice.audio-settings"] .microphone-control,
|
||||
[data-ws-part="voice.audio-settings"] .mic-test,
|
||||
[data-ws-part="voice.audio-settings"] .mode-note,
|
||||
[data-ws-part="voice.audio-settings"] .settings-error,
|
||||
[data-ws-part="voice.audio-settings"] .audio-level-row,
|
||||
[data-ws-part="voice.audio-settings"] .audio-level-track {
|
||||
margin-inline: 24px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .mic-test {
|
||||
margin-block: 16px 24px;
|
||||
padding: 20px 24px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .settings-footer {
|
||||
min-height: 64px;
|
||||
justify-content: flex-end;
|
||||
padding: 12px 16px 16px 56px;
|
||||
border-top-color: #35363c;
|
||||
}
|
||||
|
||||
[data-ws-part="voice.audio-settings"] .mic-test {
|
||||
border: 1px solid #3b3c42;
|
||||
border-radius: 10px;
|
||||
@@ -1927,3 +2032,43 @@
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-webkit-slider-thumb,
|
||||
[data-ws-part="voice.audio-settings"] .settings-range::-moz-range-thumb { transition: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
[data-ws-part="voice.audio-settings"].settings-modal {
|
||||
width: 100%;
|
||||
max-height: calc(100svh - env(safe-area-inset-top, 0px));
|
||||
border-radius: 22px 22px 0 0;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-header {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-content {
|
||||
padding: 0 20px 24px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-audio-card {
|
||||
width: 100%;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-form-row {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
row-gap: 8px;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-section h3 {
|
||||
margin-inline: 16px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .audio-diagnostic,
|
||||
[data-ws-part="voice.audio-settings"] .microphone-control,
|
||||
[data-ws-part="voice.audio-settings"] .mic-test,
|
||||
[data-ws-part="voice.audio-settings"] .mode-note,
|
||||
[data-ws-part="voice.audio-settings"] .settings-error,
|
||||
[data-ws-part="voice.audio-settings"] .audio-level-row,
|
||||
[data-ws-part="voice.audio-settings"] .audio-level-track {
|
||||
margin-inline: 16px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .mic-test {
|
||||
padding: 16px;
|
||||
}
|
||||
[data-ws-part="voice.audio-settings"] .settings-footer {
|
||||
padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user