Document accumulated interoperability findings and current source-backed design. Record build-specific visual results, matched acceleration policy, passing packaged behavior checks, and explicit native/ARM and strict visual acceptance limits. No complete 1:1 claim.
382 lines
36 KiB
Markdown
382 lines
36 KiB
Markdown
# TS6 6.0.0.5163 — Server tree pane + video overlay spec (source-extracted)
|
||
|
||
Scale: Medium (main.css defaults). Theme modules: DARK = main.js@92422, LIGHT = main.js@201685. Both modules carry the same component rules (identical offsets inside each module) and load after main.css. Where a theme rule and a main.css rule have equal specificity, the theme rule wins. Refs: `css@N` = main.css offset; `D@N` / `L@N` = offset inside the dark/light module; `js@N` = raw main.js column; `render@N` = render-skeletons.txt.
|
||
|
||
Token values used below (from themes.txt): padding-h 20 / h-small 10 / h-minimal 5; padding-v 8 / v-small 4 / v-minimal 2 / v-large 16; row-height 24, large 44, small 20, xlarge 52; icon 22 / small 16 / large 33 / xlarge 55; font 15 / content 14 / small 13 / minimal 13 / large 16; radius 4 / large 8 / xlarge 10 / pill 100px; bar-element 26; control 22; scrollbar 8; video-border 2; video-radius 8.
|
||
|
||
---
|
||
## 1. DOM skeleton
|
||
|
||
```
|
||
.ts-server-tree-wrapper[.preview] render@1590114
|
||
ts-loader.ts-server-tree-loader (100×100, margin auto)
|
||
.ts-server-tree-item-root
|
||
ts-virtual-list.scroller.ts-server-tree-scroller.tsv-scrollbar-safe-area
|
||
(component ServerTreeItem, height-key treeHeight, static-height, sticky-slots)
|
||
slot top: div(ref serverHeader)
|
||
.ts-server-tree-content-spacer-top[.has-notifications]
|
||
ts-audio-device-recovery
|
||
TSServerHeader render@1565648
|
||
.ts-server-header (click → server info, contextmenu → server menu)
|
||
.tsv-view.tsv-view-banner[.tsv-active]
|
||
.tsv-view-background > img.tsv-view-background__img (host banner, optional)
|
||
.tsv-view-image > ts-icon-stack.tsv-detail-info-topic-image.tsv-icon-xlarge
|
||
.tsv-view-content.tsv-flex-grow.tsv-item-text > .tsv-text-truncate (server displayName)
|
||
.tsv-view-accessory > ts-tool-buttons (activity.headerBarItems, if any)
|
||
.tsv-view-accessory-corner.clearance
|
||
rows: ServerTreeItem → ChannelItem | ClientItem, style padding-left = indent (js@4158612)
|
||
slot bottom: .ts-server-tree-content-spacer-bottom
|
||
.server-tree-overlay (only if showOverlay; style height = floor(effectiveOverlayHeight)px)
|
||
ResizeHandle.overlay-resize-handle[.is-destructive] (anchor top, should-display-bar)
|
||
ts-button.video-overlay-action.inline.tsv-icon-subtitle-base (icon Expand)
|
||
.video-overlay.tsv-flex
|
||
.video-overlay__streaming.tsv-pad-l-small.tsv-pad-r-minimal.tsv-pad-v-small.tsv-flex-no-shrink.tsv-flex-column (style width)
|
||
.ts-notification.ts-notification-info > .ts-notification-body.join-requests-info.tsv-flex.pointer
|
||
span.join-requests-info__text.tsv-text-truncate, .tsv-flex-grow, ts-button.join-requests-info__enlarge.tsv-icon-tint-base (Expand)
|
||
.video-overlay__streaming__others > .tsv-flex.video-overlay__streaming__others__list
|
||
TSScreenshareStream.overlay-stream.video-overlay__streaming__others__list__stream ×≤3
|
||
TSScreenshareStream.overlay-stream.video-overlay__streaming__hero[--has-others]
|
||
.video-overlay__viewing.tsv-flex-column.tsv-pad-r-small.tsv-pad-l-minimal.tsv-pad-v-small
|
||
.video-overlay__viewing__hero.tsv-flex (style max-height) > TSScreenshareStream.overlay-stream
|
||
.video-overlay__viewing__others.tsv-flex (style max-height) > TSScreenshareStream.overlay-stream.showRecordingLamp ×n
|
||
(when minimized instead) .video-overlay-minimized.tsv-flex.tsv-pad-minimal.ts-font-minimal
|
||
ts-icon.inline.tsv-icon-error-base (VideoScreen), span.ts-style-error.stream-text-limit (outbound text),
|
||
ts-icon.inline.subtitle-to-base-fill (StreamPlaying), span.stream-text-limit (inbound text),
|
||
ts-button.inline.tsv-icon-subtitle-base (Expand)
|
||
.tsv-modal-overlay > .tsv-modal-overlay-inner.tsv-server-password-modal (wrong-password)
|
||
```
|
||
|
||
Channel row (render@4119970, js@4120154–4124274):
|
||
```
|
||
.ts-server-tree-item-leaf.channel{spacer,tsv-selected,tsv-active,ts-server-tree-item-has-banner,
|
||
tsv-highlight-whisper-preview,tsv-highlight-whisper,has-password,is-full} [draggable]
|
||
.ts-server-tree-item-node
|
||
.ts-server-tree-item-node-content.channel{ts-server-tree-item-node-with-childs,
|
||
ts-server-tree-item-key-without-chevron, ts-dnd-treeitem-border-top|bottom, ts-dnd-drag-into}
|
||
ts-icon-stack.tsv-server-tree-icon.channel (not for spacers; icons, mask ChannelMask, maskedIcon = channel icon_url)
|
||
span.ts-server-tree-channel-info.tsv-tree-preserve-spaces.<displayClasses> > span(ref textSpan) name
|
||
(no-text spacer: bare span.<displayClasses>)
|
||
.channel__user-preview.tsv-mar-l (only when !spacer && collapsed)
|
||
.channel__user-preview__avatar ×N (tooltip, --avatar-bg url) [+ overflow avatar "+N" ≤99, --avatar-font-size .75em]
|
||
.tsv-flex-grow
|
||
.tsv-item-accessory (only if tags or children)
|
||
span.ts-server-tree-item-tag ×n ("M" = moderated; tooltip delay 350ms)
|
||
ts-expander.ts-collapse-control (if children) | span.ts-tag-spacing (no children, has tags)
|
||
.ts-server-tree-item-background-image-full (banner && animated) > img
|
||
.ts-server-tree-item-background-image (banner; style --margin-left=indent) > img.__img (--margin-left = -indent) + .ts-server-tree-item-background-image-blur.<displayClasses>
|
||
.ts-server-tree-item-background-no-image (no banner && setting show_servertree_channel_background; margin-left=indent)
|
||
.tsv-item-highlight (no banner; margin-left=indent) | .tsv-item-highlight-extra (banner; margin-left=indent); .translucent if banner URL
|
||
```
|
||
|
||
Client row (render@4141049, js@4141223–4144975):
|
||
```
|
||
.ts-server-tree-item-leaf.client.tsv-animated-icon-on-hover{compact,self,tsv-selected,tsv-active,contact,
|
||
tsv-highlight-whisper-preview,tsv-highlight-whisper,is-streaming} [draggable]
|
||
.ts-server-tree-item-key.ts-server-tree-item-key-without-chevron.ts-server-tree-item-node-content.client
|
||
compact: ts-icon-stack.tsv-server-tree-icon.client{talking,whispering,channel-commander,normal,away,
|
||
output-muted,input-muted,hardware-muted,muted-avatar,<imageClasses>} (icons = status icon + PlayerOn)
|
||
default: ts-icon-stack.tsv-server-tree-icon.tsv-icon-large.client.detailed{talking,whispering,channel-commander,muted(=away)}
|
||
(icons clientDetailedIcons, mask ClientDetailedMask, maskedIcon avatar)
|
||
+ mute-indicator (span.mute-indicator > ts-icon) render@3168789
|
||
.ts-server-tree-client-info.compact
|
||
.ts-server-tree-client-info__name-row
|
||
.tsv-flex-column.ts-server-tree-client-info__name
|
||
span.ts-server-tree-item-text.ts-client-nick.tsv-text-truncate{talking,away}
|
||
.ts-server-tree-item-text-wrapper.tsv-text-truncate
|
||
span.ts-server-tree-item-groups > span.before ×n (group names shown before nick)
|
||
span.tsv-tree-preserve-spaces nickname
|
||
span.ts-away-message-inner (if away && awayMessage)
|
||
span.ts-server-tree-item-groups > span.after ×n
|
||
span.ts-server-tree-item-groups.recording (if recording; tooltip server.recording.title (self) / client.info.recording)
|
||
> span.after > ts-icon.tsv-icon-small(StatusRecording) + span.ts-server-tree-recording-label.tsv-hide-on-h-compressed "client.info.recording.short"
|
||
.tsv-flex.ts-server-tree-client-status-wrapper
|
||
ts-server-tree-client-active-status → .ts-server-tree-active-status > __item…
|
||
ts-server-tree-client-inactive-status → .ts-server-tree-inactive-status{hasExtra} > __item…
|
||
.tsv-item-highlight (style margin-left = indent)
|
||
```
|
||
Badge content order (render@4119970 tail): ACTIVE: voice-granted (.ts-client-voice-granted) | voice-requested (.ts-client-voice-requested{animate}) | voice-needed (.ts-client-voice-needed) | streaming icon (.tsv-icon-subtitle-accept, tooltip client.info.streaming) | channel commander (.channel-commander, tooltip client.info.channel_commander.title) | priority speaker (tooltip client.info.priority_speaker.title). INACTIVE: client icon (.client-icon.floaty, tooltip client.info.icon) | server-group icons (.server-group-icon.floaty) | channel-group icon (.channel-group-icon.floaty) | `.server-group-icon.extra` (+N) | second item: more server-group / client icons. Talk-power tooltips: client.talk_power, client.talk_power.request(.with_reason), client.talk_power.insufficient.
|
||
|
||
---
|
||
## 2. Measurements
|
||
|
||
### 2.1 Row heights (theme `:root` overrides main.css `:root`@615700)
|
||
| var | theme value (D & L) | px | main.css value (overridden) |
|
||
|---|---|---|---|
|
||
| --channel-height | 30px | 30 | – |
|
||
| --channel-spacing | `2 * (var(--tsv-padding-v) - 1px)` (no calc; used inside calc) | 14 | – |
|
||
| --ts-tree-channel-height-default | calc(30 + 14) | **44** | row-height-large 44 |
|
||
| --ts-tree-spacer-height-default | calc(30 + 14) | **44** | row-height-xlarge 52 |
|
||
| --ts-tree-client-height-default | calc(44 − 4) | **40** | 44 |
|
||
| --ts-tree-client-height-compact | calc(24 + 4) | **28** | 44 |
|
||
| --ts-tree-badges-height-default/compact | calc(24 − 1) | **23** | 20 |
|
||
JS reads these four vars via variableCache and passes them as virtual-list item heights (js@1585341, js@1578806). Rows: `.channel{height}` css@620674, `.spacer` css@620900, `.client` css@623635, `.client.compact` css@623877. Query clients are skipped (js@1577626).
|
||
|
||
### 2.2 Indentation (js@4152551, js@1577626)
|
||
depth: root channels 0; sub-channel = parent+1; clients get their channel's depth (not +1).
|
||
`indent(d) = min(d,4)·10px + max(d−4,0)·5px` → 0, 10, 20, 30, 40, 45, 50, …
|
||
Applied as `padding-left` on the row root, and as `margin-left` on `.tsv-item-highlight`, `-extra`, `background-no-image`, `background-image` (bannerIndent js@4111601, clientIndent js@4134667) so the pill moves with depth. Banner `<img>` gets the negative indent so the image stays anchored.
|
||
|
||
### 2.3 Wrapper / scroller
|
||
| prop | value | ref |
|
||
|---|---|---|
|
||
| .ts-server-tree-wrapper | display flex; height 100%; min-height 50%; position relative; contain layout size style paint | css@628081 |
|
||
| root background | `--tsv-servertree-bg-gradient` = linear-gradient(25deg, start 0%, end 60%): D #252F44→#2E374C; L #e1e3ed→#f5f5f5 | D/L@38084 |
|
||
| .scroller padding-left | 20−1−10 = **9px** | D/L@37278 |
|
||
| .scroller padding-right | 20−1−8−10 = **1px**; scrollbar-gutter stable (8px scrollbar) | D/L@37278 |
|
||
| h-compressed view | padding-left/right 10px | D/L@37612 |
|
||
| spacer-top | height 0 (theme) — main.css had 5px | D/L@106243, css@628790 |
|
||
| spacer-top.has-notifications | padding-top 26+8 = 34px, transition padding .2s ease | css@628598/628493 |
|
||
| spacer-bottom | 4+1 = 5px | css@628790 |
|
||
| safe-area | spacer-top margin-top = header height | css@628916 |
|
||
| `span` inside wrapper | overflow hidden; text-overflow ellipsis | css@628395 |
|
||
| overlay-info not inline | tree leafs pointer-events none | css@629084 |
|
||
|
||
### 2.4 Server header (TSServerHeader)
|
||
| prop | DARK | LIGHT | ref |
|
||
|---|---|---|---|
|
||
| banner --top-spacing | 16+2 = 18px | same | D/L@38491 |
|
||
| --total-banner-height / min-height | 18+55+16+3 = **92px** | same | D/L@38491 |
|
||
| banner margin | 0 10px 8px 10px | same | D/L@38491 |
|
||
| banner padding-left/right | 20px | | css@43842 |
|
||
| banner background | --tsv-contrast-bg #0C1326 | #C9D9E5 | css@43842 |
|
||
| banner radius | 4px; overflow hidden; flex row; align center | | css@43842 |
|
||
| .tsv-view-background | abs inset 0, **margin-top 18px** (so visible card is 74px tall [INFERENCE: abs box with top+bottom → height shrinks]), radius 10px, overflow hidden, bg cover | | css@45107, D/L@38383, @39771 |
|
||
| background ::before | display none | | D/L@40163 |
|
||
| background ::after | background --tsv-view-header-bg = linear-gradient(to bottom, #0B1124, #222C41); radius 10px; border none; opacity .9 | gradient #C9D9E5 → #d3d5de | D/L@39921 |
|
||
| selected (.tsv-active) ::after | border 1px solid subtitle #697A97 | #445d77 | D/L@40332 |
|
||
| banner img | radius 10px, object-fit unset, object-position 0 0, no mask; hostBannerMode 1 → width 100%, max-height 300px; mode 2 → width 100% | | D/L@40406, js@1562899 |
|
||
| .tsv-view-image | margin-right 20px; margin-top (92−55)/2 = 18.5px; svg drop-shadow(0 0 2px rgba(29,31,32,.4)) | | css@44179/44268, D/L@38949 |
|
||
| server icon | ts-icon-stack .tsv-icon-xlarge = 55px | | render@1565648 |
|
||
| .tsv-view-content | color --tsv-font-color #FFFFFF / #1a1a1a; 16px; line-height 28px; weight 700; margin-top 18.5px; margin-bottom 4px; --tsv-icon-base subtitle; text truncated | | D/L@39499, @39259, css@44355 |
|
||
| .tsv-view-accessory | margin-left 20px; margin-top 18.5px; icon base subtitle | | css@44520, D/L@39259 |
|
||
| accessory-corner.clearance | abs bottom 8px right 20px | | css@44704 |
|
||
|
||
### 2.5 Channel row
|
||
| prop | DARK | LIGHT | ref |
|
||
|---|---|---|---|
|
||
| row | height 44px; display flex; align stretch; white-space nowrap; user-select none; contain layout | | css@615085/616154 |
|
||
| node-content | flex, align center, height 100%, padding-left 20px, padding-right 10px | | css@615203 |
|
||
| channel icon | ts-icon-stack `.tsv-icon` = 22×22 [INFERENCE root class .tsv-icon.tsv-icon-stack per render@3165368]; margin-right 5px | | css@111475, css@624409 |
|
||
| name span | margin 2px 0 2px 5px; white-space pre; font-size 13px; colour inherits font colour #FFFFFF / #1a1a1a | | css@624508, @626810, @623431 |
|
||
| name over banner (.banner) | text-shadow 0 0 10px contrast-bg, 0 0 5px contrast-bg | | css@623527 |
|
||
| **pill highlight** (.tsv-item-highlight) geometry | top/bottom 4+2+1 = **7px**, left/right **10px** → pill 30px tall; radius 8+1 = **9px** | same | D/L@17369, @20654, @23240 |
|
||
| pill background (default) | --tsv-item-selection = shaded-bg **#222A3C** | rgb(235,235,235) | css@88626 |
|
||
| pill background when channel-background setting on | linear-gradient(to right, **#192031 50%, #1D263A 100%**) | #a9bee1 50% → #8391b3 100% | D/L@22727 |
|
||
| background-no-image (setting show_servertree_channel_background, no banner) | same gradient; top/bottom 7px; left/right 10px; radius 9px; width unset; z-index −1; always visible | same | D/L@29470, @27666, @23240, css@611093 |
|
||
| pill border | 1.5px solid --highlight-outline-color | | D/L@17369, css@618991 |
|
||
| outline colour normal/hover/active | subtitle **#697A97** | #445d77 | css@618991 |
|
||
| outline colour selected | --tsv-tint2 **#1588FA** | **#22658f** | D/L@19949 |
|
||
| box-shadows from main.css (selected/active 1px) | disabled: `box-shadow: unset !important` | | D/L@17003 |
|
||
| visibility | opacity 0; opacity 1 on :hover, .tsv-active, .tsv-selected, whisper, whisper-preview | | D/L@17369, @19800 |
|
||
| hover / active grow | top/bottom 7−3 = **4px**, left/right 10−3 = **7px** (pill 36px tall) | | D/L@26918 |
|
||
| transitions | left/right/top/bottom/border-radius(/opacity on hover) ease-out, duration 150ms; 32ms while :hover/.tsv-active | | D/L@22590, @26129, @27666, @28375 |
|
||
| has-password indicator | pill opacity 1, border transparent; ::after inset −1px (round to-zero of −1.5), border **2px** solid away **#FF8B04**, radius 9px, mask fade black 5px → transparent 25px (left-edge accent only) | rgb(247,84,19) | D/L@23412, @23764, @24181, @25890 |
|
||
| is-full indicator | same, colour error **#CC3838** | rgb(223,15,15) | D/L@25994 |
|
||
| has-password/is-full hover/active/selected | pill border becomes 1.5px outline colour (see above) | | D/L@25756 |
|
||
| whisper highlight | --highlight-outline-color = rgb(248,41,41) (whisper-talking gradient-stop, both themes) | | css@620565 |
|
||
| whisper preview (not hover, not selected) | outline = commander-talking outline **#FFB700** | **#fb842e** | css@620164 |
|
||
| whisper preview selected | outline = --tsv-tint #1588FA / #5DA1CB | | css@620412 |
|
||
| whisper (main.css) | background transparent, box-shadow ring (killed by !important unset), mask fade black 5px→transparent 120px | | css@619739 |
|
||
| focus | outline none | | css@614764 |
|
||
| banner bg (.background-image) | abs, top/bottom 7px, l/r 10px, radius 9px, shaded-bg, overflow hidden; img left −10px, max-width 500px (large scale 583, small 458), mask black until (100%−80px) → transparent; hover img margin-left +3px | | css@611093/613068, D/L@27263 |
|
||
| banner blur overlay | width 150px, gradient transparent → contrast-bg (at 20px/60%) → transparent; .centered full width; .right to-left | | css@611966–612848 |
|
||
| background-image-full | display none (theme) | | D/L@29416 |
|
||
| loading banner | shimmer gradient shaded→contrast→shaded→transparent 300px | | css@611564 |
|
||
| has-banner accessory backplate | ::before contrast-bg, height 16px, opacity .6, radius 4px | | css@614171 |
|
||
|
||
Channel icons (js@4112920): password → ChannelYellow + ChannelStatusRestricted; full → ChannelRed + ChannelStatusFull; default channel → ChannelDefault; otherwise ChannelGreen. Server-set channel icon goes into the mask (ChannelMask).
|
||
|
||
Accessory (right end of row):
|
||
| element | value | ref |
|
||
|---|---|---|
|
||
| tag (.ts-server-tree-item-tag) | only "M" (moderated, tooltip channel.flags.moderated); 13px; colour font; min 16×16; margin-left 5px; flex centre; text-shadow 0 0 10px/5px contrast-bg | js@4110217, css@610222 |
|
||
| expander (.ts-expander in node) | margin 0 5px 0 0 (base vertical margin 4px replaced by `margin-left:0;margin-right:5px` only → top/bottom 4px kept [INFERENCE: longhands override only l/r]); min-width 22px; padding-right 22px; min-height 16px | css@47615, css@610635 |
|
||
| chevron | ts-icon ItemExpand (22px), abs right 0; rotates 90° when `.collapsed`, transition transform .1s ease | js@3056905, css@47936, css@129305/129396 |
|
||
| chevron colour expanded, not hover | --tsv-font-color #FFFFFF / #1a1a1a | css@614669 |
|
||
| chevron hover | --tsv-icon-tint2 #1588FA / #22658f; cursor pointer | css@48141 |
|
||
| chevron collapsed | --tsv-icon-tint #1588FA / #5DA1CB | css@48238 |
|
||
| spacing span w/o children (tags) | .ts-tag-spacing margin-right 5px min-width 5px | css@610764 |
|
||
|
||
Collapsed-channel user preview (.channel__user-preview, css@609161–610002): --avatar-size 22px; overlap 22·0.33 = 7.26px; padding-left 3.63px; padding-right 5+3.63 = 8.63px; inline-flex. Each avatar slot width 22−7.26 = 14.74px, height 22px; circle 22×22, border 1px solid var(--tsv-bg) (D #2b3346, L #f5f5f5), radius 100%, shifted −3.63px; image cover via --avatar-bg. Overflow chip "+N" (N ≤ 99), font .75em of 13px, subtitle colour. Hidden for spacers and expanded channels (js@4121835, js@4122553).
|
||
|
||
### 2.6 Spacer rows
|
||
Name parse: `^\[([^\]]*)spacer[^\]]*\](.*)` (js@4112183). Prefix c → .centered, r → .right, l → .left, * → .repeat (text repeated to fill width, text-overflow clip). Body `---` dash-line, `...` dot-line, `-.-` dash-dot-line, `___` solid-line, `-..` dash-dot-dot-line, empty → none; these add `.line`. No-text spacers render only an empty span.
|
||
| prop | DARK | LIGHT | ref |
|
||
|---|---|---|---|
|
||
| height | 44px | | §2.1 |
|
||
| node-content (no children) padding-right | 20px | | css@621054 |
|
||
| text | font-style normal; size 14px; colour --tsv-font-color #FFFFFF / #1a1a1a; **weight 600** (0,6,0 semibold rule beats the 0,4,0 450 rule) | | D/L@29677, @21990 |
|
||
| .line | height 1.35em, width 100%, bg subtitle colour masked by SVG pattern (mask-size contain) | | css@621417–622850 |
|
||
| hover/selected pill | radius pill 100px; top/bottom 7px; l/r 10px; background linear-gradient(−115deg, **#1E2538, #374263**) | #d3d5de → #C9D9E5 | D/L@20654, @21829, @22161 |
|
||
| spacer icon | none | | js@4121400 |
|
||
|
||
### 2.7 Client rows
|
||
| prop | DARK | LIGHT | ref |
|
||
|---|---|---|---|
|
||
| height | default 40px; compact 28px; white-space normal | | §2.1 |
|
||
| node-content padding-left | 20+5 = **25px** (+ indent) | | D/L@31141 |
|
||
| text colour | --ts-third-font-color **#bbd6f3** (main.css :root) | **#445d77** | css@623635 |
|
||
| own client (.self) | colour --tsv-highlight-color = tint **#1588FA**; weight 500 | --tsv-icon-tint = **#5DA1CB** | css@624151 |
|
||
| contact (.contact) | --tsv-online-color #13F78D | rgb(1,192,11) | css@624241 |
|
||
| nick font size | default (not compact) **14px**; compact **15px** | | css@623994, @623790 |
|
||
| nick row | flex align baseline; name col min-width 0; text truncate | | css@407755 |
|
||
| avatar default | `.tsv-icon-large` → **33×33** (masked avatar, ClientDetailedMask) | | js@4142264, css@116335 |
|
||
| avatar compact | **22×22** status icon stack | | css@111475 |
|
||
| avatar margin-right | 5px | | css@624409 |
|
||
| client-info margins | top/bottom 2px, left 5px, right 10px | | css@624508, D/L@29832 |
|
||
| highlight pill | top/bottom **1px**, left/right 10px, radius pill, background transparent, border 1.5px; mask fade black 5px → transparent 160px | | D/L@22403, @21686 |
|
||
| highlight outline | subtitle #697A97 (hover/active); selected tint2 #1588FA | #445d77; #22658f | D/L@22292, @19949 |
|
||
| whisper / preview | as channel (§2.5) | | css@620164–620565 |
|
||
| focus | outline none | | css@411513 |
|
||
|
||
Group-name tags (.ts-server-tree-item-groups span): background --tsv-header-bg **#1C2539** / rgb(235,235,235); colour subtitle; 13px; weight 400; padding 0 5px; line-height 13+4 = 17px; radius 8−2 = 6px; no shrink. `.before` margin-right 4px (last child: 5px); `.after` margin-left 4px (last child: 5px). Refs D/L@29011–29333, css@409246–409719.
|
||
|
||
Away message (.ts-away-message-inner): colour away #FF8B04 / rgb(247,84,19); width 50px, max 100px, ellipsis; wrapped in " [" … "]" (css@409016–409201). Shown only when away and message is not empty.
|
||
|
||
Recording chip: inline-flex baseline, normal line-height; icon StatusRecording 16px; label colour error #CC3838 / rgb(223,15,15), no background, margin-left 2px; label hidden in h-compressed (css@409803–410066).
|
||
|
||
Status badges (.ts-server-tree-active-status / inactive):
|
||
| prop | DARK | LIGHT | ref |
|
||
|---|---|---|---|
|
||
| height | 23px; padding 0 5px; flex align centre | | css@407337 |
|
||
| background | --ts-tree-badges-bg **#222A3B** | **#C9D9E5** | D/L@28936 |
|
||
| radius | 8−1 = 7px | | D/L@31043 |
|
||
| empty | display none | | css@407603 |
|
||
| --element-spacing | 5+2−1 = 6px | | css@406091 |
|
||
| separator between items | ::before 1px wide, colour subtitle, margin 0 6px | | css@406540 |
|
||
| icon size | 23−6 = **17×17** (also min) | | D/L@30041 |
|
||
| inactive z-index | 1 | | css@406019 |
|
||
| 2nd badge group | margin-left 5px | | css@407234 |
|
||
| `.expanded` variant | height 20−5 = 15px; icons 15px; spacing 3px; separator height 10px, vertically centred | | D/L@30434–30780 |
|
||
| icon colours | voice-granted online; voice-requested/needed away (requested flashes when window focused: voice-request-flashing 1s infinite alternate ease-out); commander #daa520 | | css@410230–410538 |
|
||
| group icon `.extra` (+N) | subtitle colour, 13px, height 14px, padding 0 3px 0 2px, margin-left 1px | | css@408563 |
|
||
|
||
Mute indicator (default mode only; render@3168789, css@615519): absolute; margin-left 1.15em; margin-top .7em; padding 3px; radius 50%; z-index 1; background D shaded-bg **#222A3C**, L contrast-bg **#C9D9E5** (L@115647). Icon order (js@2890909): local mute → InputMutedLocal; away → Away; speakers off / no output (not talking) → OutputMuted; mic off / no input → InputMuted; else none. `.ts-server-tree-icon.client.away` opacity .5 (legacy); detailed icon gets `.muted` when away → grayscale(100%) brightness(50%) (css@71501).
|
||
|
||
Talking / whisper / commander (css@125498–128744):
|
||
- silent icon tint/base = --tsv-client-silent--outline (= --tsv-icon-tint = #1588FA dark / #5DA1CB light); gradient silent start→stop: D rgb(3,90,246)→rgba(17,99,197); L rgb(54,82,105)→rgb(32,45,55).
|
||
- talking: tint = talking outline; gradient D rgb(3,90,246)→rgba(17,99,197); L rgb(34,178,231)→rgb(23,122,158); talking icons opacity 1, scale 1.
|
||
- whisper: outline error (#CC3838 / rgb(223,15,15)); silent #c42121→#b45c5c; talking rgb(255,130,130)→rgb(248,41,41).
|
||
- commander (when showCommanderAsLamp): D outline #FFB700, gradients #FFB700→#BD8700 (silent and talking); L outline #fb842e, silent #624b2f→#3a2c1e, talking #fb842e→#b05b24; voiceless #5e492e→#3a2e20.
|
||
- away / input-muted / output-muted (not talking): tint & base = font colour; talking glyph opacity 0.
|
||
- transitions: 0.15s (+0.15s delay on colour vars); while talking 5ms.
|
||
|
||
### 2.8 Drag & drop
|
||
- border-top drop: ::before 2px solid --ts-drag-border #16bcfb at top −1.4px (css@82852).
|
||
- border-bottom drop: ::after 2px solid #16bcfb at bottom −3.4px (css@83060).
|
||
- drag-into: ::after background rgba(60,34,204,.1), border 1px rgba(41,194,255,.5), radius 2px, inset 0 (css@83669).
|
||
- rows draggable; dragstart only from row root (js@4120154).
|
||
|
||
---
|
||
## 3. Video overlay (.server-tree-overlay)
|
||
|
||
Constants (js@1586484, js@1567799): DEFAULT_OVERLAY_HEIGHT_PCT .2; initial effectiveOverlayHeight 175; OVERLAY_HEADER_EXTRA_PADDING 32; minimize breakpoint 90; short-text breakpoint 260 (tree width); STREAMING_OTHERS_MAX 3; MIN_HERO_HEIGHT 135; MIN_OTHERS_PCT .66; OTHERS_PADDING_X 4; ratio 16/9; own-stream column width = clamp(0.33·treeWidth, 132, 260) (js@1583276).
|
||
|
||
Behaviour:
|
||
- Shown when there are visible outbound (if "show own streams" is on) or inbound streams, the grid is not in a popup, and the own channel's chat is not already open in the detail pane (js@1581878).
|
||
- Height = min(pct·treeHeight, treeHeight − header height − 32); drag updates the pct (js@1582041). Height below 90px → handle `.is-destructive`; on drag end below 90 → minimized (js@1582802). Minimized click → height = max(pct·treeHeight, 91) (js@1583934).
|
||
- Expand button (`.video-overlay-action`, icon Expand) shown when height ≥ 90; disabled if the channel chat is already open; opens the screenshare view.
|
||
- Streaming hero = chosen outbound session or first; "others" = remaining outbound (up to 3). Viewing hero = inbound[0]. Viewing others only if height ≥ 1.66·135 = 224.1px; count = floor((W − sw − 4)/(89.1·16/9 + 4)); others height = min(((W−sw−4)/n − 4)/(16/9), H/(1+1/0.66)); hero max-height = calc(100% − othersHeight) (js@1580836–1581489).
|
||
- Minimized texts: tree width < 260 → only counts; otherwise outbound = stream name if one, else "video.streams"; inbound = "video.streams" plural.
|
||
|
||
| element | value | ref |
|
||
|---|---|---|
|
||
| .server-tree-overlay | abs bottom 0, width 100% | css@629830 |
|
||
| resize handle | top 0, z 0 | css@629912 |
|
||
| .video-overlay | height 100% | css@631832 |
|
||
| streaming column | padding-left 10, right 5, v 4 (tsv-pad-* [INFERENCE class → token]); justify flex-end; width style | css@629954 |
|
||
| others strip | height (26+8)/2 = 17px; list abs bottom 0, height 34px, left 5px, translateY(100%), z1; tiles square (aspect 1), translateY(−50%), video object-fit cover; hover outline 2px tint2 offset 0 | css@630013–630776 |
|
||
| viewing column | flex-grow 1, min-width 0, justify flex-end; padding r10 l5 v4 | css@630852/630930 |
|
||
| .overlay-stream | margin 2px 5px; first child / streaming hero margin-left 0; last margin-right 0; box-sizing border-box; max-height 100% | css@630971–631860 |
|
||
| join-request on hero with others | left 2px, top 16px, no pointer events | css@631240 |
|
||
| .video-overlay-action | abs top 4px right 10px z 10 | css@632339 |
|
||
| .video-overlay-minimized | abs bottom 4px right 10px z 5; line-height 22px; cursor pointer; ::before contrast-bg (#0C1326 / #C9D9E5) opacity .9 radius 4px; text max 10ch | css@631923–632302 |
|
||
|
||
### 3.1 TSScreenshareStream tile (render@4070151, js@4070161–4076563)
|
||
Root `.video-stream.tsv-flex-center{show-outline,is-fullscreen}`; events: hover tracking, context menu, click → focus mode after delay, double-click → fullscreen.
|
||
| prop | DARK | LIGHT | ref |
|
||
|---|---|---|---|
|
||
| tile | aspect 16/9; background shaded-bg #222A3C / rgb(235,235,235); border 2px solid --tsv-bg (#2b3346 / #f5f5f5); radius 8px; box-sizing content-box; overflow hidden | | css@56083 |
|
||
| talking outline | default transparent 2px offset −2px; .show-outline: 2px solid tint2 (#1588FA / #22658f) offset 1px; transition .12s | | css@368542/368914 |
|
||
| --bar-inset / --bar-height | 10px / 24+2 = 26px | | css@368542 |
|
||
| bottom bar | abs left/right/bottom 10px; height 26px; bg color-mix(contrast-bg 70%, transparent); blur 2px; radius 8px; hidden: opacity 0, translateY(100%+10px); shown on hover when the mouse is not idle (opacity .12s, transform .08s); z1 | | css@370281, @366651 |
|
||
| bottom bar fullscreen | height 24+8+8 = 40px | | css@370719 |
|
||
| idle hover | cursor none | | css@366878 |
|
||
| video-border overlay | inset −2px, opacity 0 → 1 on hover | | css@370924, @366768 |
|
||
| always-visible name chip | abs bottom 10px, left 15px, height 26px, max-width calc(100% − 80px); chip padding 2px 5px, ::before contrast-bg .85 radius 4px; badge ::before contrast-bg .7 radius 8px blur 2px, inset 0 −5px; fades out (.08s, .04s delay) on hover | | css@367818–368303, @374246/374483 |
|
||
| viewers button | icon StatusRecording 16px, base subtitle; count 13px subtitle; hover (pointer) tint | | css@374699–375108, @366352 |
|
||
| volume group | max-width 80+22 = 102px; slider scales in on hover/active (appear-scale-x .09s), out by reverse animation | | css@371363–372099 |
|
||
| hero-actions (top) | padding-top 8px; fullscreen: top-fade bg + close button | | css@371221 |
|
||
| preview (not connected / paused / minimized) | static bg image; avatar 33.75% width; join icon 33.75% (scale .2 → .75 on hover); paused bg blur 2px opacity .7; status/error text chip at top −4px centred | | css@372431–374246 |
|
||
|
||
Control inventory, left → right (js@4074370–4076563):
|
||
1. [outbound] viewers button (StatusRecording + viewer count) → manage viewers
|
||
2. [inbound with audio] volume: mute toggle (Output / OutputMuted) + slider shown on hover
|
||
3. flex spacer
|
||
4. [outbound] pause/resume (Pause / Play; disabled when pauseDisabled)
|
||
5. [outbound] stream settings (StreamSettings)
|
||
6. [not joining] fullscreen toggle (enlargeImage; video.action.fullscreen.open/close)
|
||
7. [supportsPopout] popout (Expand, tooltip video.action.popout)
|
||
8. leave/stop: tooltip universal.abort (joining) / video.action.leave (inbound) / video.action.stop_stream (outbound)
|
||
Top (fullscreen only): close (WindowClose, large). Every button becomes `large` in fullscreen.
|
||
In-tile join request: `.screen-overlay.join-request` notification with avatar, name, accept (video.join.request.accept_full / universal.accept, viewer-limit tooltip), deny (settings.remote_apps.app.deny), block (video.join.request.block). Box: left 5px, top 4px, width calc(100% − 10px); fullscreen: centred, top 8px, min-width 33vw, height 24+8 = 32px (css@366936–367450).
|
||
Overlay usage: others tiles are `small-mode`, no overlay, no recording lamp; hero is `small-mode`; viewing others carry `.showRecordingLamp` (js@1595420–1596700).
|
||
|
||
### 3.2 Fullscreen (.screenshare-fullscreen-host)
|
||
- Portal target in the root window (render@3035185) and in the popup (render@3045191): abs inset 0, z 800, display none; `.is-active` → block, background --tsv-bg (#2b3346 / #f5f5f5) (css@469353/469443).
|
||
- Window `.is-fullscreen-presented`: `.tsv-activity` fixed inset 0; sidebar-pane hidden; root modal overlay full height (css@469532–469685).
|
||
- Fullscreen tile: aspect auto, no border or radius, 100%×100%; video object-fit contain; border overlay off (css@369157–369426).
|
||
- Grid fullscreen callbar `.screen-fullscreen-callbar`: fixed, bottom 24+32 = 56px, centred, opacity 0 / translateY(8px) → 1 / 0 when `.callbar-active` (.28s) (css@560020–560426). Host indicators shifted left by 24+10 (css@558658).
|
||
- screenshare-bar (data-v-0041b501): bg --ts-new-header-bg D #121A2C / L rgb(235,235,235); border 1px var(--ts-header-bg); radius 8px; gap 5px; height 44−4−2 = 38px; padding 0 10px; opacity 0 → 1 `.is-visible`. Large: gap 10, height 52, padding 0 20. Slim: icons 16, gap 2.5, height 28, padding 0 2. Separator: 2px border --strong-bg (#0B1124 / #C9D9E5), 50% height. Status: max 16em, opacity .85 (css@544415–546067).
|
||
|
||
### 3.3 Stream manager menu (render@3868692, css@375244–378596)
|
||
- max-height 100vh − 36px; max-width min(420px, 100vw − 20px); padding-right 10−8 = 2px.
|
||
- --control-width 22+8 = 30px; --stream-enlarged-width 30·1.77778·2.5 − 20 = **113.33px**.
|
||
- Row grid: columns min(113.33px, 25vw) | 30px+1ch | 1fr | 30px | 30px; rows 30px 30px. Areas: "video room_icon room actions actions" / "video viewers name actions actions"; inbound: "… show leave".
|
||
- Row hover: ::before --tsv-bg, radius 4px, extends 10px right.
|
||
- Room icon/room margin-top 8px; name/viewers margin-bottom 8px; viewers padding-right 4px, hover tint icon / tint2 text; actions gap 5px.
|
||
- Video cell padding 2px 10px; playback 16/9; hover pause overlay; pause button 22×22 pill, rgba(0,0,0,.4) (hover .55), icon colour font. Popup chip ::before --tsv-bg .8 radius 4.
|
||
- Strings: video.unknown_room, video.stream.show_stream(.disabled).
|
||
|
||
---
|
||
## 4. i18n (EN / RU)
|
||
| key | EN | RU |
|
||
|---|---|---|
|
||
| channel.flags.moderated | Moderated | Модерируемый |
|
||
| client.info.channel_commander.title | Channel Commander | Командир канала |
|
||
| client.info.priority_speaker.title | Priority Speaker | Приоритетный спикер |
|
||
| client.info.streaming | Streaming | Ведет трансляцию |
|
||
| client.info.recording | Recording | Запись |
|
||
| server.recording.title | Local Recording | Локальная запись |
|
||
| client.talk_power | Talk Power | Право говорить |
|
||
| client.talk_power.insufficient | Insufficient Talk Power | Недостаточный уровень права говорить |
|
||
| client.talk_power.request | Talk Power Request | Запрос права говорить |
|
||
| video.streams | No Stream \| 1 Stream \| {count} Streams | Нет трансляции \| 1 трансляция \| Трансляции: {count} |
|
||
| video.join.request.notification.small | {n} join request \| {n} join requests | {n} запрос на подключение \| запросы на подключение: {n} |
|
||
| video.stream.paused | Paused | Приостановлена |
|
||
| video.stream.minimized | Minimized | Свернута |
|
||
| video.action.leave | Leave | Выйти |
|
||
| video.action.stop_stream | Stop Stream | Остановить трансляцию |
|
||
| video.action.fullscreen.open | Switch to Fullscreen | Полноэкранный режим |
|
||
| video.action.fullscreen.close | Exit Fullscreen | Выйти из полноэкранного режима |
|
||
| video.action.manage_viewers | Manage Viewers | Управление зрителями |
|
||
| video.stream.hide_stream | Hide this stream | Скрыть эту трансляцию |
|
||
| video.stream.show_stream | Show this stream again | Показать эту трансляцию снова |
|
||
| video.unknown_room | Unknown Room | Неизвестная комната |
|
||
| universal.abort | Abort | Прервать |
|
||
(en.json/ru.json lines 130–2994 / 130–2896.)
|
||
|
||
---
|
||
## 5. UNRESOLVED
|
||
- `client.info.recording.short` and `video.action.popout` strings (the grep hit its result cap; look them up in en/ru.json).
|
||
- Server header `headerBarItems` (set by the activity, possibly native): which buttons and their order.
|
||
- Channel and client name font-weight: no tree rule sets it; inherited body weight not traced.
|
||
- `tsv-mar-l`, `tsv-pad-minimal`, `tsv-pad-l-small` utility values assumed to equal the matching tokens [INFERENCE]; not verified.
|
||
- `.ts-expander` vertical margin inside the tree (4px assumed kept from the base rule).
|
||
- Whether the banner's `contrast-bg` fill is visible in the 18px top spacing (the CSS says yes; not visually confirmed).
|
||
- SVG artwork for ChannelGreen/Yellow/Red/Default, status overlays, ItemExpand rest orientation, client talking glyphs, and the spacer mask SVGs (/62d145bb…svg etc.): file names known, contents not extracted.
|
||
- ResizeHandle `.overlay-resize-handle` bar visuals (render@3049567 exists; CSS not pulled). Minimized-bar condition for hiding the outbound/inbound halves when one side is empty.
|
||
- `--ts-header-bg` used by screenshare-bar border is not defined in themes.txt (may resolve to nothing).
|
||
- Light-theme `--tsv-highlight-color` = var(--tsv-icon-tint) → #5DA1CB; dark = tint #1588FA (resolved). The dark `--ts-third-font-color` comes only from main.css :root (#bbd6f3); the dark module was not seen overriding it.
|
||
- Context-menu contents for channel/client/server rows; stream context menu items.
|