Remove Electron and make Rust Slint the sole native client
This commit is contained in:
1 parent
eb24965076
commit
220852f8cb
720 files changed
+2535
-130856
No files matched your search
@@ -46,7 +46,7 @@ colors:
|
||||
tsv-commander-color: "#daa520"
|
||||
typography:
|
||||
body:
|
||||
fontFamily: '"Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Fixed", "Segoe UI", Roboto, Helvetica, Arial, sans-serif'
|
||||
fontFamily: '"Noto Sans"'
|
||||
fontSize: "15px"
|
||||
lineHeight: "19px"
|
||||
fontWeight: 450
|
||||
@@ -105,20 +105,21 @@ come from installed client 6.0.0.5163 (`main.css` sha256 `bc700401…`, `main.js
|
||||
tokens from its webpack theme modules (`main.js` @92422 dark, @201685 light), scale tokens and component
|
||||
geometry from `main.css`, layout constants from `main.js` (window slots @1273206). The extracted values
|
||||
and source offsets are in `docs/evidence/official-parity/ts6spec-{shell,tree,chat,controls,settings}.md`.
|
||||
The stylesheet keeps the official `--tsv-*` token names so values can be compared one to one. Source
|
||||
matching, screenshot similarity and functional parity are separate evidence claims; this document is
|
||||
the implementation contract, not proof that every rendered pixel or feature matches.
|
||||
Native stock theme data retains the official `--tsv-*` names in
|
||||
`native/src/services/themes/stock.css`; `native/ui/` expresses the Slint geometry and presentation.
|
||||
Source matching, screenshot similarity and functional parity are separate evidence claims; this document
|
||||
is the retained implementation contract, not proof that every native pixel or feature matches.
|
||||
|
||||
The product name and application icon stay TeamsPeach's own. Non-brand interface pictograms now use
|
||||
the installed client's SVG artwork; provenance and redistribution limitations are recorded in
|
||||
`LICENSES/teamspeak-client-icons-PROVENANCE.md`. The official JavaScript application is reference-only,
|
||||
not the product's implementation.
|
||||
The product name and application icon stay TeamsPeach's own. Retained source-derived fonts and sounds,
|
||||
and historical non-brand pictograms, have provenance/redistribution limitations in `LICENSES/`.
|
||||
The official JavaScript application and removed browser implementation are historical references only,
|
||||
not product runtime dependencies. Native cutover does not establish visual or functional acceptance.
|
||||
|
||||
## Colors
|
||||
|
||||
Dark is the default for new profiles; light follows the official light module. Both are declared as
|
||||
plain `:root` (dark) and `@media (prefers-color-scheme: light) :root` blocks at (0,1,0) specificity, so a
|
||||
locally installed theme file can override them by order, as with the official stock theme.
|
||||
Dark is the default for new profiles; light follows the official light module. Native stock token data
|
||||
and the supported user-theme importer preserve the dark/light contract without a browser cascade.
|
||||
Supported declaration order/specificity and `!important` are handled as data; see `docs/themes.md`.
|
||||
|
||||
Blue `--tsv-tint` (#1588FA dark, #5DA1CB light; `--tsv-tint2` #22658f light) marks own nickname,
|
||||
selection outlines, active toggles and primary actions; green (`--presence-online`) marks talking/online
|
||||
@@ -129,37 +130,39 @@ in the tree use `--ts-third-font-color` (#bbd6f3).
|
||||
## Typography
|
||||
|
||||
Noto Sans variable files version 2.013 from the installed client are bundled under
|
||||
`app/renderer/assets/fonts/`, with SIL OFL 1.1 in `LICENSES/NotoSans-OFL.txt`. Normal, italic and
|
||||
oblique declarations follow the original font-face semantics. Body 15/19, content 14/18, small 13,
|
||||
header titles 24/28 bold. Channel labels use 14px normal weight; client names use 14px semibold.
|
||||
`native/resources/fonts/`, with SIL OFL 1.1 in `LICENSES/NotoSans-OFL.txt`. Preserve normal, italic and
|
||||
oblique source semantics where the native font backend supports them. Body 15/19, content 14/18,
|
||||
small 13, header titles 24/28 bold. Channel labels use 14px normal; client names use 14px semibold.
|
||||
Chat names use the source hash/contrast colour calculation, with 16/19 message text and 13/15 events.
|
||||
|
||||
## Layout
|
||||
|
||||
The window is the official three-slot frame (`.tsv-window`):
|
||||
The desktop target is the official three-slot frame (source component names below are historical
|
||||
geometry labels, not required DOM selectors):
|
||||
|
||||
1. **Sidebar** `#app-sidebar`, 270px default, max 420; dragging below 200 collapses it to the 62px rail.
|
||||
1. **Sidebar**, 270px default, max 420; dragging below 200 collapses it to the 62px rail.
|
||||
Header gradient #121A2C → #1D2537, activity rows 44px with an always-visible 8px-radius pill inset
|
||||
10px (4px gap), group captions 13px subtitle, footer 55px with a 3px separator inset 20px.
|
||||
2. **Server pane** `#server-panel`, 500px default, min 220: 44px window bar (#121A2C) carrying the toolbar
|
||||
2. **Server pane**, 500px default, min 220: 44px window bar (#121A2C) carrying the toolbar
|
||||
pill (26px, `--tsv-bg`, 1px `--strong-bg` separators) with microphone and speaker; separate Away action; a 10px
|
||||
inverse fillet; the server tree on the 25° gradient (#252F44 → #2E374C); the 92px server header card;
|
||||
channel rows 44px with a 30px pill (inset 7/10, radius 9, 1.5px outline, channel background gradient
|
||||
on by default); client rows 40px with 33px avatars and 23px status plates; the 55px status bar with
|
||||
40px side padding.
|
||||
3. **Detail pane** `.workspace`, min 295, body `--tsv-shaded-bg`: 44px window bar with the native caption
|
||||
overlay, 71px content header (38px icon, 24/28 bold title, segmented mode switch), 4px separator, the
|
||||
3. **Detail pane**, min 295, body `--tsv-shaded-bg`: 44px window bar reserving native caption
|
||||
integration, 71px content header (38px icon, 24/28 bold title, segmented mode switch), 4px separator, the
|
||||
stream stage, chat log and composer.
|
||||
|
||||
Settings occupy the main and detail slots as the official settings activity does at ≥900px: category
|
||||
column `clamp(30ch, 20vw, 50ch)` with 44px rows, `--settings-highlight-bg` selection and a 4px tint bar;
|
||||
pages max 640px wide with section cards (`--tsv-header-bg`, radius 15, padding 8px 20px, 12px apart).
|
||||
Below 900px the same settings category node moves into sidebar resources and returns on leaving settings
|
||||
or widening the window. Small/Large use the official token modules (53225/68865), not browser zoom;
|
||||
collapsed rail widths are 52/62/72px. The native caption bar remains 44px to match its OS overlay.
|
||||
Below 900px retain category navigation without losing settings drafts/focus. Small/Large use the official
|
||||
token modules (53225/68865), not browser zoom; collapsed rail widths are 52/62/72px. Compact/mobile
|
||||
adaptation preserves usable targets, safe areas, IME and an independent voice strip; it is not desktop
|
||||
pixel-parity evidence. Native caption integration retains the 44px design target where supported.
|
||||
|
||||
Resize handles are invisible 9px strips centred on each pane edge, tinted at 50% while focused or
|
||||
dragged. The native caption overlay is 44px high in the window-bar colour (`app/main/titlebar.js`).
|
||||
dragged. Native window/caption colors follow the window-bar palette through real platform integration.
|
||||
|
||||
## Elevation & Depth
|
||||
|
||||
@@ -199,9 +202,9 @@ notifications), pill (toolbar, filled buttons, segmented controls).
|
||||
type, receive the shared source control styling. These changes address the first packaged capture
|
||||
batch; confirmation screenshots are QA evidence, not assumed passes.
|
||||
- **Selected values:** language flags and sidebar icon-mode pictograms come from the original local
|
||||
artwork. The underlying select owns the value; decorative selected artwork is aria-hidden. Default
|
||||
audio-device captions come only from Chromium's explicit `default` alias and remain available to
|
||||
assistive technology. Missing alias metadata leaves the caption blank, not guessed.
|
||||
artwork where legally available. The native value control owns selection; decorative artwork is not
|
||||
a second accessibility control. Default-device captions require actual platform default metadata,
|
||||
not guesses from device names; absent alias metadata leaves the caption unset.
|
||||
|
||||
Motion is limited to the official short state transitions (pill growth 150ms, toolbar 100ms, controls
|
||||
120ms, toast 180ms); reduced motion removes them. Reduced transparency/increased contrast make menus and
|
||||
@@ -222,10 +225,10 @@ notifications opaque; forced colours use system tokens.
|
||||
the central toolbar preserves the source Away + microphone/speaker geometry.
|
||||
- Information/Chat/Files modes are in the detail header. Open private conversations and explicitly
|
||||
opened server chat are sidebar activities; no extra tab row occupies the channel chat canvas.
|
||||
- Stream placement moves the same stage/media nodes between chat and the 175px tree overlay. Tile layout
|
||||
and stream controls depend on the native/media capabilities described in FEATURE_COMPATIBILITY.md.
|
||||
- Original non-brand SVGs and the exact 2.013 font replace the earlier approximate glyphs and font.
|
||||
This is not evidence that every component's placement or state matches the original.
|
||||
- Stream placement reuses the same decoded media/session between chat and the 175px tree overlay.
|
||||
Tile layout and native controls require the scoped capabilities/evidence in FEATURE_COMPATIBILITY.md.
|
||||
- The exact 2.013 font and retained source-derived artwork preserve reference provenance; native
|
||||
component placement/state and any legally unavailable pictograms remain separate acceptance questions.
|
||||
- A "System" theme tile exists beside the official Dark and Light tiles.
|
||||
- New server administration, identity, snapshot, whisper, recording and file surfaces use the source
|
||||
control tokens around real APIs. Token conformity alone does not establish identical screen composition.
|
||||
@@ -239,7 +242,7 @@ notifications opaque; forced colours use system tokens.
|
||||
or event logs. The disabled-category message and system notification subtitles use the original strings.
|
||||
- Privacy, Video, Notifications and About follow the owner's explicit original-composition choice.
|
||||
Unsupported controls keep their source positions but are disabled and explained; no telemetry, cloud
|
||||
account, Cisco native backend or fabricated service is introduced. Real Chromium decoder settings,
|
||||
account, Cisco native backend or fabricated service is introduced. Real native decoder policy,
|
||||
project links and installation details live on working subpages with back-focus restoration.
|
||||
About retains TeamsPeach branding and real metadata; Report Issue targets the verified project tracker.
|
||||
Content reporting, Terms and five source-position social tiles explicitly state their unavailable status.
|
||||
@@ -251,8 +254,8 @@ notifications opaque; forced colours use system tokens.
|
||||
## Do's and Don'ts
|
||||
|
||||
- **Do** take every new value from the installed client and cite its offset in the evidence specs.
|
||||
- **Do** keep the native caption overlay colours equal to `--ts-new-header-bg` and `--tsv-font-color`.
|
||||
- **Do** keep the stock `--tsv-*` token declarations at (0,1,0) specificity.
|
||||
- **Do** keep native caption colors aligned with `--ts-new-header-bg` and `--tsv-font-color` where supported.
|
||||
- **Do** retain stock token names and the explicitly supported native theme-import subset; no DOM fallback.
|
||||
- **Don't** reinterpret, restyle or "improve" the official look; deviations above are product constraints.
|
||||
- **Don't** present unavailable account or native controls as working; original-layout compatibility rows
|
||||
must be disabled, explained and incapable of storing an ineffective preference.
|
||||
|
||||
Reference in new issue
Block a user