mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
feat: let skins dock the recovery capsule into their layout with runtime fallback
- chrome.json#slots names an existing skin data-ws-part as anchor for host.recovery (align start/center/end, optional compact); host/trusted parts rejected as anchors - reusable host-slot-placement module: positions the closed-shadow top-layer capsule over the anchor, re-checks visibility/size/on-screen/elementFromPoint, snaps back to the default corner on any failure with anti-flap re-slotting - --skin-recovery-* tokens (accent/background/foreground/radius/font/size tier) sanitized with 28px minimum hit target and WCAG contrast fallback - compact mode only after 5s full display post-activation; shortcut always full - no new skin CSS compile-time restrictions; docs and host-chrome-demo updated
This commit is contained in:
1 parent
fa720bf260
commit
aefa0bc163
18 files changed
+1547
-254
No files matched your search
@@ -25,6 +25,13 @@
|
||||
[data-ws-part="voice.audio-dock"] {
|
||||
border-top: 1px solid var(--skin-border);
|
||||
background: #f7f9fb;
|
||||
/* Fold the trusted recovery capsule into the audio dock (chrome.json#slots). */
|
||||
--skin-recovery-accent: #1d4f9c;
|
||||
--skin-recovery-background: #ffffff;
|
||||
--skin-recovery-foreground: #141414;
|
||||
--skin-recovery-radius: 999px;
|
||||
--skin-recovery-font: Tahoma, "Segoe UI", sans-serif;
|
||||
--skin-recovery-size: small;
|
||||
}
|
||||
|
||||
/* --- Host chrome (outside .ws-skin-root) --- */
|
||||
|
||||
Reference in new issue
Block a user