Fix screen-share letterboxing across skins

This commit is contained in:
illusia committed 2026-10-12 09:38:26 +08:00
1 parent acdc7a2330
commit 833357e278
22 files changed
+67 -65

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# ILLUSIA风
ILLUSIA 风格 is a schema v3 open-skin example built from the local artwork in [illusia-voice/assets](./illusia-voice/assets/). Version 2.0.1 keeps its existing light-glass CSS and current-channel card, and adds matching visual treatment for the host member-card screen-share status and watch action. The package still uses WebSpeak's base translations and contains no executable skin code.
ILLUSIA 风格 is a schema v3 open-skin example built from the local artwork in [illusia-voice/assets](./illusia-voice/assets/). Version 2.0.2 keeps its existing light-glass CSS and current-channel card, adds matching visual treatment for the host member-card screen-share status and watch action, and uses a black letterbox background for the fixed WebSpeak screen-share player. The package still uses WebSpeak's base translations and contains no executable skin code.
The new voice-page component is defined in [components.json](./illusia-voice/components.json). It reads only the current public channel name through session.status.read and uses a local mascot image for a compact, non-interactive glass badge. The component needs the user's local approval before it renders; that approval is scoped to this skin version and can be revoked from the host access control. It cannot switch channels, read favorites, access a server address, or control audio.
+1 -1
View File
@@ -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. 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.74 keeps the shared-screen player on WebSpeak's fixed 16:9 canvas and shows the full source image 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 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.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.illusia-voice",
"name": "ILLUSIA风",
"version": "2.0.1",
"version": "2.0.2",
"author": "WebSpeak Project",
"license": "All rights reserved",
"description": "A bright original-character art skin with a safe declarative live-channel badge.",
+3 -2
View File
@@ -891,11 +891,12 @@
[data-ws-part="voice.screen-player.stage"] {
border-radius: 22px;
background: radial-gradient(ellipse at 50% 38%, rgba(248, 255, 255, .98), rgba(220, 246, 250, .92) 58%, rgba(202, 237, 244, .9));
background: #000;
}
[data-ws-part="voice.screen-player.video"] {
background: #e5f4f8;
object-fit: contain;
background: #000;
}
[data-ws-part="voice.screen-player.placeholder"] {
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@
"packageType": "open-skin",
"id": "community.kaak-voice",
"name": "KAAK",
"version": "3.1.73",
"version": "3.1.74",
"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.",
+2
View File
@@ -1682,6 +1682,8 @@
background: #20251e;
box-shadow: 0 5px 16px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(108, 191, 0, .08);
}
[data-ws-plugin-part="kaak-workspace"] [data-ws-part="voice.screen-player.stage"] { background: #000; }
[data-ws-plugin-part="kaak-workspace"] [data-ws-part="voice.screen-player.video"] { object-fit: contain; background: #000; }
[data-ws-plugin-part="kaak-workspace.member-cards"] .screen-share-live-indicator::before {
background: #7bd80a;
box-shadow: 0 0 0 3px rgba(123, 216, 10, .18);