mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat(kaak): surface noise controls in audio settings
This commit is contained in:
1 parent
7c3e32d671
commit
cb504c95bc
12 files changed
+90
-21
No files matched your search
Binary file not shown.
@@ -77,8 +77,7 @@
|
||||
{{ microphoneMuted ? t("unmuteMic") : t("muteMic") }}</button
|
||||
></div
|
||||
><label
|
||||
v-if="isMobileViewport"
|
||||
class="mobile-noise-toggle"
|
||||
class="noise-suppression-toggle settings-form-row"
|
||||
><span
|
||||
><strong>{{ t("noiseSuppression") }}</strong
|
||||
><small>{{ t("noiseSuppressionHint") }}</small></span
|
||||
@@ -293,7 +292,6 @@ const props = defineProps<{
|
||||
model: AudioSettingsState;
|
||||
controls: AudioSettingsControls;
|
||||
microphoneError: string;
|
||||
isMobileViewport: boolean;
|
||||
t: (key: string, variables?: Record<string, string | number>) => string;
|
||||
localizedMessage: (message: string) => string;
|
||||
rangeStyle: (value: number, max: number) => CSSProperties;
|
||||
|
||||
@@ -46,7 +46,7 @@ export const BUILTIN_SKIN_CATALOG: SkinCatalogEntry[] = [
|
||||
{
|
||||
id: BUILTIN_KAAK_SKIN_ID,
|
||||
name: "KAAK",
|
||||
version: "3.1.46",
|
||||
version: "3.1.47",
|
||||
author: "WebSpeak Project",
|
||||
license: "AGPL-3.0-only",
|
||||
description: "A KOOK-inspired voice-room workspace with collapsible voice groups, current voice-channel chat, TeamSpeak profile cards, and accessible host-owned voice controls.",
|
||||
|
||||
@@ -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.46");
|
||||
assert.equal(skin.version, "3.1.47");
|
||||
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");
|
||||
@@ -570,6 +570,7 @@ test("the distributable KAAK package provides full home and voice surfaces", asy
|
||||
assert.match(skin.css, /settings-section h3 \{[\s\S]*?color: #eceef0;\s*font-size: 16px;\s*font-weight: 600;/);
|
||||
assert.match(skin.css, /settings-audio-card \{\s*width: min\(660px, 100%\);[\s\S]*?background: #25262a;[\s\S]*?border-radius: 16px;/);
|
||||
assert.match(skin.css, /settings-form-row \{\s*display: grid;\s*grid-template-columns: minmax\(0, 268fr\) minmax\(0, 320fr\);[\s\S]*?min-height: 72px;[\s\S]*?padding: 16px 24px;/);
|
||||
assert.match(skin.css, /noise-suppression-toggle \{\s*grid-template-columns: minmax\(0, 1fr\) 34px;[\s\S]*?padding: 16px 24px;/);
|
||||
assert.match(skin.css, /@media \(max-width: 680px\) \{[\s\S]*?settings-form-row \{\s*grid-template-columns: minmax\(0, 1fr\);/);
|
||||
assert.match(skin.css, /voice\.audio-settings"] \.settings-label \{\s*margin: 0;\s*font-weight: 400;/);
|
||||
assert.match(skin.css, /voice\.audio-settings"] \.settings-select \{[\s\S]*?border-radius: 12px;/);
|
||||
|
||||
@@ -6705,7 +6705,7 @@
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row),
|
||||
:deep(.mobile-noise-toggle) {
|
||||
:deep(.noise-suppression-toggle) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -6714,18 +6714,18 @@
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row > span),
|
||||
:deep(.mobile-noise-toggle > span) {
|
||||
:deep(.noise-suppression-toggle > span) {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row strong),
|
||||
:deep(.mobile-noise-toggle strong) {
|
||||
:deep(.noise-suppression-toggle strong) {
|
||||
display: block;
|
||||
color: var(--text-primary);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
:deep(.mobile-noise-toggle) {
|
||||
:deep(.noise-suppression-toggle) {
|
||||
margin-bottom: 18px;
|
||||
padding: 12px;
|
||||
background: var(--surface-2);
|
||||
@@ -6733,7 +6733,7 @@
|
||||
border-radius: 11px;
|
||||
}
|
||||
|
||||
:deep(.mobile-noise-toggle small) {
|
||||
:deep(.noise-suppression-toggle small) {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
color: var(--text-muted);
|
||||
@@ -6742,7 +6742,7 @@
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row input),
|
||||
:deep(.mobile-noise-toggle input) {
|
||||
:deep(.noise-suppression-toggle input) {
|
||||
position: relative;
|
||||
width: 34px;
|
||||
height: 20px;
|
||||
@@ -6759,7 +6759,7 @@
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row input::before),
|
||||
:deep(.mobile-noise-toggle input::before) {
|
||||
:deep(.noise-suppression-toggle input::before) {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
@@ -6772,19 +6772,19 @@
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row input:checked),
|
||||
:deep(.mobile-noise-toggle input:checked) {
|
||||
:deep(.noise-suppression-toggle input:checked) {
|
||||
border-color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 72%, var(--surface-2));
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row input:checked::before),
|
||||
:deep(.mobile-noise-toggle input:checked::before) {
|
||||
:deep(.noise-suppression-toggle input:checked::before) {
|
||||
background: var(--surface-1);
|
||||
transform: translateX(14px);
|
||||
}
|
||||
|
||||
:deep(.dock-switch-row input:focus-visible),
|
||||
:deep(.mobile-noise-toggle input:focus-visible) {
|
||||
:deep(.noise-suppression-toggle input:focus-visible) {
|
||||
outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
@@ -6817,7 +6817,7 @@
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
:deep(.dock-hover-panel),
|
||||
:deep(.dock-switch-row input),
|
||||
:deep(.mobile-noise-toggle input) {
|
||||
:deep(.noise-suppression-toggle input) {
|
||||
transition-duration: .01ms;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -948,7 +948,6 @@
|
||||
:model="audioSettingsState"
|
||||
:controls="audioControls"
|
||||
:microphone-error="voiceState.microphoneError"
|
||||
:is-mobile-viewport="isMobileViewport"
|
||||
:t="t"
|
||||
:localized-message="localizedMessage"
|
||||
:range-style="rangeStyle"
|
||||
|
||||
Reference in new issue
Block a user