Files
client/docs/evidence/official-parity/ts6spec-controls.md
T
omar ceecbb790a docs: record source parity evidence and remaining acceptance gaps
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.
2026-11-01 19:47:52 +03:00

349 lines
41 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# TS6 6.0.0.5163 — Shared controls & server-tree context menus (source-backed spec)
Conventions
- Medium scale tokens (main.css :root): font 15/content 14/small 13/minimal 13; line-height 19/content 18/small 15/minimal 14; row 24 (large 44, small 20); pad-h 20/small 10/minimal 5; pad-v 8/small 4/minimal 2; bar 36; bar-element 26; control 22; radii xxxl 20/xxl 15/xl 10/large 8/base 4/small 2/pill 100px; icon 22 (small 16, large 33). Global `*,:after,:before{box-sizing:border-box}` (main.css@254).
- `main.js@N` = byte offset in main.js (line-2 column + 62). `main.js@92422@N`/`@201685@N` = dark/light theme module CSS (identical component rules; they load after main.css and win on equal specificity). "theme" below = rule present in both modules.
- D = dark, L = light. Colours resolved through themes.txt.
Common resolved tokens
| token | DARK | LIGHT |
|---|---|---|
| --tsv-font-color | #FFFFFF | #1a1a1a |
| --tsv-font-subtitle-color | #697A97 | #445d77 |
| --tsv-tint / --tsv-tint2 | #1588FA / #1588FA | #5DA1CB / #22658f |
| --tsv-bg | #2b3346 | #f5f5f5 |
| --tsv-shaded-bg | #222A3C | rgb(235,235,235) |
| --tsv-contrast-bg | #0C1326 | #C9D9E5 |
| --tsv-header-bg | #1C2539 | rgb(235,235,235) |
| --strong-bg | #0B1124 | #C9D9E5 |
| --tsv-view-header-gradient-start | #222C41 | #C9D9E5 |
| --tsv-separation-border-color | #1D1F20 | rgb(189,189,189) |
| --tsv-shade | rgba(255,255,255,.05) | rgba(0,0,0,.05) |
| --tsv-preview-bg | #1C2539 | #bccbeb |
| --tsv-error-color / -light | #CC3838 / rgb(255,130,130) | rgb(223,15,15) / rgb(218,77,77) |
| --tsv-accept-color | #13F78D | rgb(5,177,71) |
| --tsv-away-color | #FF8B04 | rgb(247,84,19) |
| --presence-online | #17f78d | rgb(1,192,11) |
| --tsv-disabled-color (global) | #595959 | #888888 |
| --ts-new-header-bg | #121A2C | rgb(235,235,235) |
| --ts-menu-action-color (main.css root, not overridden) | #8ac5fc | #8ac5fc |
| --card-background-inverted | linear-gradient(to bottom,#222C41,#0C1225) | linear-gradient(to bottom,#C9D9E5,#0C1225) |
---------------------------------------------------------------------------------------------------
## 1. Context menu (.ts-context-menu)
### 1.1 DOM skeleton
```
div.ts-context-menu (template string, main.js@519851)
├─ <component :is=context_menu_component> → ToolMenu: (render@3875375 / main.js@3875363)
│ div.tsv-tool-menu.tsv-list.tsv-list-compact.tsv-no-padding
│ [TSLinkInteractionDialog | TSTextInteractionDialog] [hr] (text/link interaction only)
│ ts-list-simple-cell ×N (top-level "buttons") → li.tsv-item(.tsv-action …)
│ .tsv-item-container > .tsv-item-content > ts-icon-stack.tsv-icon-primary
│ > .tsv-item-text.tsv-flex-grow > .tsv-text-truncate
│ .tsv-item-accessory > one of: TSCheckbox | ts-toggle | ts-segmented-control.tsv-mar-l-small(preset compact)
│ | ts-button.tsv-tool-menu-accessory | <accessoryComponent>
│ .tsv-item-highlight
│ div.ts-tool-section(.ts-tool-no-title when title empty) ×M
│ p.ts-style-caption (section title; rendered if items>0 or >1 sections, and title non-empty)
│ ts-list-simple-cell ×K (same as above)
└─ ts-false-context-menu (only when a sub-menu component is displayed) > <component sub_menu_component>
```
Per-item class map (ToolMenu.classForButton, main.js@3874272): `tsv-is-destructive`←isDestructive, `tsv-is-disabled`←isDisabled, `tsv-is-visually-disabled`←isVisuallyDisabled, `tsv-tool-button-no-action`←onSelected===null (pointer-events:none, main.css@646136), `tsv-selectable`←onSelected; plus button.class object merged (e.g. `ts-context-menu-title`, `ts-context-menu-input`, `channel-commander`, `tsv-item-accessory-only`, `tsv-quick-info-group`, `tsv-quick-info-avatar`, `small-presence`).
Sub-menus are NOT flyouts: a sub-menu replaces the menu by pushing a new popup at the same click coordinates, whose first item is "Back" (universal.back, icon NavigationBack). Items that open sub-menus carry an accessory ts-button with icon NavigationForward (chevron) (main.js@1626763, @1628083, @1629403, @1858827).
### 1.2 Geometry & colours
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| position / z-index | absolute / 1000000, -webkit-app-region:no-drag, contain:layout style | same | main.css@156402 |
| background-color | **unset** (theme) — main.css value var(--ts-context-menu-background)=rgba(20,23,32,.85) is overridden | unset (main.css value rgba(230,238,243,.85) overridden) | main.js@92422@55021 |
| painted backdrop (::before) | absolute inset 0, z -1, `linear-gradient(to bottom,#0B1124,#222C41)`, opacity .8, radius 8px | `linear-gradient(to bottom,#C9D9E5,#C9D9E5)` (flat #C9D9E5), opacity .8, radius 8px | main.js@92422@55209 |
| backdrop-filter | blur(4px) | blur(4px) | main.css@156402 |
| border-radius | 8px (theme; main.css 4px) | 8px | main.js@92422@55021 |
| border | none (--tsv-context-menu-border: none) | 1px solid rgb(230,238,243) | themes / main.js@92422@5897 |
| box-shadow | 1px 1px 2px 0 rgba(0,0,0,.2) | same | main.css@156402 |
| text colour | #FFFFFF | #1a1a1a | main.css@156402 |
| base font-size | 14px (content) | 14px | main.css@156402 |
| inner .tsv-tool-menu | radius 4px, overflow hidden, min-width 170px !important, position relative | same | main.css@645569, @167978 |
| max width | client menus: modifiers style maxWidth 260px (from matrixRoomButtons return) | same | main.js@1657344 |
| ul / hr margin | 0 !important | same | main.css@157521 |
| item `li` (.tsv-list-compact li in menu) | padding 4px 5px (theme beats main.css 2px v / .tsv-no-padding 10px h) | same | main.js@92422@60170 |
| item min-height | `.tsv-list-compact li` min-height uses undefined var `--tsv-row-heigh-small` (typo) → invalid → auto; [INFERENCE] row = max(icon 22px, line 19px)+8px = 30px | same | main.css@76569, @70592 |
| item text | 15px / line-height 19px (theme; main.css compact 13px) ; margin-left 10px from icon; ellipsis truncation (.tsv-text-truncate) | same | main.js@92422@60284, main.css@72310, @73400 |
| icon | 22×22 (`--tsv-icon-size`×scale 1); --tsv-icon-base = #FFFFFF, --tsv-icon-tint = #1588FA | 22×22; base #1a1a1a, tint #5DA1CB | main.css@111475, @156402 |
| hover highlight (.tsv-item-highlight) | display:block on li:hover; absolute top 0 bottom 0 left 0 right 0, radius 0, z -1, background rgba(28,37,56,.85) (--tsv-context-menu-item-selection) | background #C9D9E5 | main.css@74548, @76715, @69654, @157050, @88626 |
| disabled (.tsv-is-disabled) | colour/icons #9c9c9c, pointer-events none (no hover) | #888888 | main.css@79745, themes |
| visually disabled (title rows) | #9c9c9c but clickable | #888888 | main.css@80010 |
| destructive (:not(.tsv-is-disabled).tsv-is-destructive) | text+icon rgb(255,130,130) | rgb(230,25,25) | main.css@157190 |
| constructive (.tsv-is-constructive) | text/icon/tint #13F78D | rgb(5,177,71) | main.css@79222 |
| channel-commander class | --tsv-icon-base #daa520 | #daa520 | main.css@157731 |
| title row (.ts-context-menu-title) | font-weight 500, padding 2px 0; `.ts-context-menu-input` padding-top/bottom 0 | same | main.css@157778, @157915 |
| section caption (p.ts-style-caption) | 13px/15px, colour #697A97, margin 4px 10px | #445d77 | main.css@55645, @70770 |
| untitled section separator (.ts-tool-no-title:not(:first-child)) | padding-top 4px; ::after 1px line, bg #697A97, margin 2px 10px, width calc(100%-20px), top 0 | bg #445d77 | main.css@168080, @168179 |
| accessory button | margin-left 10px | same | main.css@646070 |
| accessory-only row (slider/conn-info component) | li padding-h 5px !important; container hidden; accessory flex 1 | same | main.css@71968–72258 |
| inline create channel inside menu | margin 8px 10px | same | main.js@92422@104919 |
| input-dialog inside menu (.tsv-user-input-dialog) | max-width 200px, radius 4, padding-top 0 (tool-menu) / padding-bottom 0 !important; title padding 8px 15px; subtitle 13px subtitle-colour padding 0 15px 8px; option row padding 0 15px 8px; error 13px context-error colour; action padding 0 10px 8px, button width 100% | same | main.css@159329–161251, @157626, @645977 |
| tooltip on items | v-better-tooltip (item.tooltip) | | main.js@3875803 |
Legacy classes still in main.css but not emitted by ToolMenu [INFERENCE: no reference found in ToolMenu render]: `.ts-context-menu-group` (border-top 1px hsla(0,0%,95.7%,.1) between groups, `.scroll` max-height 250px), `.ts-context-menu-item` (padding 6px 9px, border-bottom 3px #274266), `.ts-context-menu-sub` (flyout right 100%, chevron = 3px black rotated border at right 6px), `.ts-context-menu-sub-group` (bg --tsv-bg, shadow 0 0 40px -5px rgba(0,0,0,.6)), `.ts-context-menu-inline-text-item` width 220px (main.css@157969–159290).
### 1.3 Menu assembly & ordering (main.js@1658003 openContextMenu / @1658438 getSortedButtonsAndSections)
- Providers run in order [serverButtons, channelButtons, matrixRoomButtons]; results merged.
- Per provider: a button/section without `order` gets `order = ++n`; an explicit order sets n = order. All buttons concatenated, then sorted by order (stable → ties keep provider order). Sections merged by identical title (items concatenated by order) and sorted; empty sections dropped.
- Modifiers merged (style maxWidth 260px etc). Menu not shown if 0 buttons and 0 sections.
- Section title = `p.ts-style-caption`; there are no hr separators between sections (separator line only for untitled sections).
### 1.4 CLIENT context menu (server tree)
Tree client passes `{client:{client}, display:{server:{serverName:false}}}` (main.js@4134324). Hence p (matrix/channel/recentExtras)=false → `_`=true, `b`=false; no server-name header; no "Action" section; matrixRoomButtons adds only the title row (no chat/contact rows because display.matrix.chatActions is absent). w = own client; u = client online in this connection; S = >1 clients selected.
A. Single client, **another** client (online). Final order:
| # | key | EN | RU | icon | condition / behaviour | src |
|---|---|---|---|---|---|---|
| 0 | (nickname) | client nickname | — | avatar (url) or SettingsAccount, stack ClientDetailed/ChatContact, mask ContactMask | classes ts-context-menu-title + ts-context-menu-input (+tsv-quick-info-avatar); isVisuallyDisabled; click on avatar opens lightbox ("universal.avatar_image") | main.js@1655144–1657344 |
| 1 | client.action.poke.title | Poke | Толкнуть | ChatPokeSolid | if CanExecuteAction(PokeClient). Opens input dialog: title client.action.poke.user "Poke {name}"/"Толкнуть {name}", subtitle client.action.poke.information, placeholder client.action.message.placeholder ("Optional Message"/"Необязательное сообщение"), button "Poke", maxLength 100; error shows "(Nx) An error occurred: …" and keeps input | main.js@1627203–1628083 |
| 2 | client.menu.change_volume | Change Volume | Регулировать громкость | SettingsAudio + › | always (online) → sub-menu 1.4.E | main.js@1628083 |
| 3 | client.connection_info.title | Connection Info | Информация о подключении | ModeStats + › | always (online) → sub-menu 1.4.F | main.js@1626763 |
| sec | universal.permissions (plural) | Permissions | Разрешения | — | section order 5; shown if serverGroups or channelGroups non-empty or perms below | main.js@1628963 |
| | universal.server_groups (plural) | Server Groups | Группы сервера | Contacts + › | if client has ≥1 server group (x.serverGroups) → sub-menu 1.4.G | main.js@1629403 |
| | universal.channel_groups (singular) | Channel Group | Группа канала | Groups + › | if online and channelGroups non-empty → sub-menu 1.4.H | main.js@1629403 |
| | universal.client_permissions | Client Permissions | Разрешения клиента | ModeServerPermissions | if b_virtualserver_client_permission_list; opens Permissions view | main.js@1629843 |
| | universal.channel_client_permissions (singular) | Channel Client Permissions | Разрешения клиента на канале | ModeServerPermissions | if b_virtualserver_channelclient_permission_list | main.js@1629843 |
| sec | settings.whisper.whispering | Whispering | Шептание | — | always | main.js@1857958 |
| | settings.whisper.add_to_list | Add to Whisperlist | Добавить в список шепотов | Add + ›, constructive (green) | sub-menu: Back, "settings.whisper.list.new" New Whisperlist/Новый список шепотов (Add, constructive), then each whisper list name (ModeServerCompact); non-List type asks confirmation settings.whisper.edit.type.warning | main.js@1857958–1858827 |
| sec | universal.moderation | Moderation | Модерация | — | if any item | main.js@1631163 |
| | client.action.move.to_self.title | Move to Own Channel | Переместить в собственный канал | Drag | online, in different channel, CanExecuteAction(MoveClient→own channel); password-protected own channel → input dialog "Move {name}", placeholder universal.channel_password, button client.action.move.button | main.js@1631163–1632043 |
| | client.action.kick.channel.title | Kick from Channel | Кикнуть с канала | ItemLeave, destructive | online & CanExecuteAction(KickFromChannel); dialog "Kick {name}", subtitle client.action.kick.channel.information, placeholder client.action.reason.placeholder, warning-style button, maxLength 80 | main.js@1632043–1632483 |
| | client.action.kick.server.title | Kick from Server | Кикнуть с сервера | ItemLeave, destructive | online & CanExecuteAction(KickFromServer); maxLength 80 | main.js@1632483–1632923 |
| | client.action.ban.title | Ban from Server | Забанить на сервере | ItemLeave, destructive | CanExecuteAction(BanClient); ban dialog render@4082364 (title client.action.ban.detail.title, duration input + select, reason) | main.js@1633363–1633803 |
| | client.avatar.delete | Delete Avatar | Удалить аватар | Delete, destructive | client has avatar and b_client_avatar_delete_other; confirmation client.avatar.delete.warning.other | main.js@1630283–1631163 |
B. Single client, **own** client:
| # | key | EN | RU | icon | condition |
|---|---|---|---|---|---|
| 0 | (own nickname) | nickname | — | avatar/SettingsAccount | editable: accessory Edit (pencil) icon, click → inline text editor (min 3 / max PRz chars; errors client.action.rename.error.with_min / too_long.with_max), showDelete | main.js@1656904 |
| 1 | client.info.channel_commander.title | Channel Commander | Командир канала | ChannelCommander | if b_client_use_channel_commander>0. When OFF: class channel-commander (gold #daa520 icon). When ON: isDestructive (red). Toggles flag | main.js@1626323 |
| 2 | client.connection_info.title | Connection Info | Информация о подключении | ModeStats + › | always |
| 3 | client.avatar.set | Set Avatar | Установить аватар | ContactNormal | if i_client_max_avatar_filesize = -1 or >0; file dialog client.avatar.select, png/jpeg | main.js@1628523 |
| 4 | client.avatar.delete | Delete Avatar | Удалить аватар | Delete, destructive | if own avatar set; confirm client.avatar.delete.warning |
| sec | Permissions section (same rules as A) | | | | |
(no Whispering / Moderation for own client.)
C. Multi-selection (>1 clients selected in tree; main.js@1620163–1625883). Buttons: none except title. Sections:
| section | key | EN | RU | items |
|---|---|---|---|---|
| order 5 | client.menu.multi_select.title | Multi Selection | Множественный выбор | client.menu.multi_select.deselect "Deselect all Clients"/"Снять выбор со всех клиентов" (ItemClose, badgeCount = selected count) |
| next | settings.whisper.whispering | Whispering | Шептание | Add to Whisperlist (for selection) |
| next | universal.chats (singular) | Chat | Чат | client.action.poke.title "Poke" (dialog title client.action.poke.multi "Poke {count} Users"/"Толкнуть пользователей ({count})"); client.action.message.title "Text Message"/"Текстовое сообщение" (ModeChat; dialog client.action.message.multi, subtitle client.action.message.information, button client.action.message.button, maxLength 8192). Section hidden when >10 selected |
| next | universal.moderation | Moderation | Модерация | Move to Own Channel (if not all already in own channel & allowed), Kick from Channel (destructive, always; per-target permission check at execution), Kick from Server (destructive, if allowed), Ban from Server (destructive, if allowed; nickname "N Users") |
D. Other contexts of the same provider (not the tree): `display.serverInteractions` without server → single "client.menu.server_interactions.title" Server Interactions/Взаимодействие с сервером (ServerGlobal + ›) listing servers where user is present; `b` path (chat/channel/recent) → section client.menu.action.title "Action"/"Действие": client.menu.action.join.channel "Join Channel of Client"/"Присоединиться к каналу клиента" (NavigationForward; if joinable & not own channel), client.action.find.title "Find Client in Server"/"Найти клиент на сервере" (ChannelSelectDefault; normal clients) (main.js@1634243). Chat-only rows (account/matrix-bound: client.action.open_chat "Open Private Chat"/"Открыть приватный чат", chat.user.action.add "Add as Contact"/"Добавить как контакт", ignore, favourite, call, notification settings, category, e2ee, copy user tag) appear only when display.matrix.* flags are set — not from the server tree (main.js@1647664–1654704).
E. Change Volume sub-menu (main.js@1616607): button Back; section "Change Volume": [accessory-only row with client fader component (class tsv-item-accessory-only, closeOnClicked false)], universal.mute "Mute"/"Заглушить" ↔ universal.unmute "Unmute"/"Включить звук" (InputMutedLocal; label flips), universal.reset "Reset"/"Сбросить" (destructive, Empty icon, does not close; unmutes and sets volume modifier 0). scrollEnabled false.
F. Connection Info sub-menu (main.js@1615746): first row Back (or title "Connection Info" if no parent) with accessory universal.close "Close" (ItemClose); then accessory-only row with connection-info component (showPropertyList).
G. Server Groups sub-menu (main.js@1635563): Back; section "Server Groups": one row per group: group icon (class client-group-icon), name, TSCheckbox accessory checked = membership; closeOnClicked false; toggles membership (reverts on error).
H. Channel Groups sub-menu (main.js@1636883): Back; rows per channel group with checkbox; exclusive selection (radio-like) — checking one unchecks others.
### 1.5 CHANNEL context menu (server tree)
Tree channel passes `{channel, display:{server:{serverName:false}}}` (main.js@4113301) → "Find Channel in Servertree" hidden (requires matrix/channel/recentExtras flag). Source channelButtons main.js@1610466–1615306.
| # | key | EN | RU | icon | condition |
|---|---|---|---|---|---|
| 0 | (channel name) | channel name | — | channel icon_url or Channel, stack Channel, mask ChannelMask | class ts-context-menu-title; isDisabled (renders disabled colour) |
| (removed channel) | universal.unavailable | Unavailable | Недоступно | Empty | only row when channel.isRemoved |
| 1 | universal.join | Join | Вступить | NavigationForward | if not own current channel; password prompt if needed |
| – | channel.action.find_in_tree | Find Channel in Servertree | Найти канал в дереве сервера | ChannelSelectDefault | NOT in tree (only chat/recent contexts) |
| 2 | universal.show.details | Show Details | Подробнее | ModeInfo | always (opens Info) |
| 3 | channel.action.browse_files | Browse Files | Просмотр файлов | ModeFiles | if ownClientCanBrowseFiles |
| 4 | share.action.create_invite | Create Invite | Создать приглашение | Share | always |
| 5 | universal.edit | Edit | Редактировать | Edit | ownClientCanModify && has any b_channel_modify_* perm (make_default/permanent/semi/temporary, name, topic, description, password, banner, codec, codec_quality, maxclients, maxfamilyclients, needed_talk_power, make_codec_encrypted, temp_delete_delay) |
| 6 | universal.delete | Delete | Удалить | ItemClose, destructive | requires b_channel_delete_{permanent|semi_permanent|temporary}>0 by channel type; if channel has clients or subchannels additionally b_channel_delete_flag_force. Confirm "channel.delete.are_you_sure" "Are you sure you want to delete {name}?" |
| sec (order 1) | settings.whisper.whispering | Whispering | Шептание | | Add to Whisperlist (constructive, ›) |
| sec | universal.management | Management | Управление | | shown if any of: |
| | universal.channel_permissions (singular) | Channel Permissions | Разрешения канала | ModeServerPermissions | b_virtualserver_channel_permission_list |
| | channel.create.new_subchannel | New Subchannel | Новый подканал | Add | b_channel_create_child && one of b_channel_create_permanent/semi_permanent/temporary → inline create-channel menu (mode subchannel, order 0) |
| | channel.create.inline.insert_below | Insert Channel Below | Вставить канал ниже | Add | b_channel_create_with_sortorder → inline create below (parent = channel parent or 0) |
| sec | universal.tools | Tools | Инструменты | | always |
| | server.recording.title | Local Recording | Локальная запись | ModeRecording | accessory while recording: universal.active "Active"/"Активно" with StatusRecording icon (class no-pulse + tsv-icon-recording-paused when paused) |
---------------------------------------------------------------------------------------------------
## 2. Buttons (.tsv-button / ts-button)
Base (main.css@148161 + theme main.js@92422@47884): inline-flex, center, cursor pointer, font-size 1rem, min-height 26px (theme; main.css 22px), height auto. `.tsv-button-content`: line-height 22px, centred; with image: 5px gap (left, or right if `.tsv-button-reversed` row-reverse). `.tsv-button.disabled`: cursor default, opacity .4 (main.css@156006). `.tsv-button-left-aligned` content start (theme).
| Variant | DARK | LIGHT | States | Source |
|---|---|---|---|---|
| .tsv-button-filled | bg linear-gradient(60deg,#0058FF,#1365BB); colour/icon #FFFFFF; border none; radius 100px (theme); padding 4px 20px (theme) | bg linear-gradient(-45deg,rgb(95,135,213) 1%,rgb(142,166,255) 100%); colour #1a1a1a | hover:not(.disabled) bg #1c82cc (D) / rgba(50,114,155,.3) (L) | main.css@151571, @151868; main.js@92422@46806, @47677 |
| filled + .tsv-is-destructive | linear-gradient(to top,#f33d3d,#ca3838); hover #f84e4e | linear-gradient(-45deg,rgba(223,15,15,.5) 1%,rgba(223,15,15,.3) 100%); hover rgba(223,15,15,.3) | | main.js@92422@46919, @47086 |
| .tsv-button-filled-warning | bg --tsv-button-warning-bg = linear-gradient(-45deg,#CC3838 1%,rgb(255,130,130) 100%); hover rgb(255,130,130); radius 4; padding 0 20px | linear-gradient(-45deg,rgba(223,15,15,.5),rgba(223,15,15,.3)); hover rgba(223,15,15,.3) | | main.css@153499 |
| .tsv-button-hero | theme: colour #FFFFFF, radius 100px, border none, bg filled gradient (as above); height 44px; padding 0 60px; font-weight 500; width fit-content; animation pulse 2s infinite (shadow #25eb93) | colour #1a1a1a, bg light filled gradient | hover: bg filled gradient, colour #8ac5fc; .disabled: no animation, opacity .5; .no-pulse: no animation/shadow; .ts-small: height 24, padding 0 20; .tsv-button-hero-slim: height 27.5px, padding 0 20 | main.css@153860–154750, @85031; main.js@92422@47160–47372 |
| .tsv-button-outlined | bg #1C2539; border 1px solid #1588FA; radius 8px; colour/icons #1588FA; padding 0 10px | bg rgb(235,235,235); border/colour #22658f | hover: bg rgba(255,255,255,.05)/rgba(0,0,0,.05), colour tint; constructive border/colour accept, hover accept-light (#b8ffd3 D / rgb(67,184,86) L); destructive error-color, hover error-light | main.css@151927–153259 |
| .tsv-button-plain | colour #1588FA | #22658f | hover #8ac5fc; constructive (theme) #17f78d / rgb(1,192,11); destructive rgb(255,130,130)/rgb(218,77,77) | main.css@149176–149631; main.js@92422@61495 |
| .tsv-button-tinted | colour tint2, padding 0 | | hover transparent, colour #8ac5fc | main.css@154829 |
| .tsv-button-gray | bg #1C2539 (theme preview-bg); radius 100px (theme); padding 4px 20px; cursor default | bg #bccbeb | hover colour #8ac5fc | main.css@155699; main.js@92422@47608, @47677 |
| .tsv-button-warning | colour/icons error-color | | | main.css@155175 |
| .tsv-button-tint-icon | icon base tint2 (destructive → error-light) | | | main.css@155552 |
| sizes | .tsv-button-small: font 14px, padding 4px 14px, height max-content; .tsv-button-large: font 16px, height 33px; .tsv-button-minimal: height max-content | | | main.css@148346–148610 |
| modal-dialog actions | primary/destructive: radius 15px, font 15px bold(700), height 30px, padding 0 20px, .is-busy opacity .7; link: no bg, 15px normal(450), padding 6px 0; disabled cursor not-allowed opacity .5; close: 30×30 radius 8 hover bg shade | | | main.css@425978–426505, @425186 |
| footer buttons | .tsv-footer filled/hero min-width 120px | | | main.js@92422@11768 |
## 3. Text input (ts-text-input → render@3201993)
DOM: `div.ts-text-input-box(.warning|.xl|.l|.s) > div.ts-text-input-box-inner(.hideDelete|.hideDisclosure|.hideReveal|.showDelete|.showDisclosure) > div.ts-input-wrapper > [div.ts-input-addon.addon-left|right > ts-icon] input.ts-input(.has-addon-left|right|.error-condition)` + accept/reveal/delete buttons + `.ts-text-input-box-warning`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| wrapper height | 26px (--ts-text-input-box-height) | same | main.css@141253, @5982 |
| box font-size / colour | 14px; colour #8ac5fc (box) | same | main.css@6181, @140811 |
| input bg | #2b3346 | #f5f5f5 | main.css@141697 |
| input border | 1.5px solid transparent | same | |
| input radius | 100px (theme `.ts-input-wrapper>.ts-input` overrides 5px) | same | main.js@92422@59997 |
| input padding | 12px 10px (theme) — overrides main.css padding-left 5 / right 26. [INFERENCE] with height 26 and border-box the vertical padding exceeds the box; text still overflows visibly — verify visually | same | main.js@92422@59997 |
| input height | 26px; box-shadow none !important | same | main.css@141697 |
| hover / focus | border 1.5px solid #1588FA; focus outline none | #5DA1CB | main.css@141998, @142090 |
| error | border 1.5px solid #f82929 (--ts-error-color) | same | main.css@142189 |
| placeholder | #697A97 opacity .5 | #445d77 opacity .5 | main.css@142278 |
| addon icon | left: 2.5px; right: 13px; with addon padding-left 27px | | main.css@141503–142376 |
| accept/reveal/delete | absolute right 10px, colour #8ac5fc, hover tint; reveal width 30px; tooltip "universal.input.password.reveal" show delay 750ms | | main.css@142675–143803; main.js@3207069 |
| warning | colour #db5959, 12px, icon margin-right 8, shown with margin 5px 0 | | main.css@143852–144199 |
| sizes | xl: 16px, wrapper 31.2px, input 36.4px; l: 15px, 31.2px; s: 13px, inner height 26px | | main.css@146205–147043 |
| generic .ts-input (non-box) | border 1px solid sep-colour, radius 4, padding 0 4px; hover/focus bg --tsv-bg + box-shadow 0 0 0 2px tint | | main.css@5753, @94638 |
## 4. Select (vue-multiselect `.multiselect`, render@5079157; class .ts-select)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| box | theme: border unset; box-sizing border-box; bg #2b3346 (--ts-select-bg=--tsv-bg); padding 2px 10px; radius 10px (theme root --ts-select-border-radius = xlarge); font 15px; line-height 15px; height fit-content; min-height 26px | bg #f5f5f5 | main.js@92422@64432; main.css@8488 |
| text colour | #FFFFFF | #1a1a1a | --ts-select-color |
| tags/single/input bg | unset (theme) | | main.js@92422@64934 |
| arrow (.multiselect__select) | 26×26 box at right, top 50% translateY(-50%); ::before 5px CSS triangle colour #2580c3 (--ts-primary-accent-color); transition transform .2s; active → rotate(180deg) | same | main.css@12093, @12344; main.js@92422@65187, @65569 |
| open state | z-index 50; bottom radii 0 (above: top radii 0) | | main.js@92422@64997 |
| dropdown | bg --tsv-bg; border unset !important; min-width 100%, width max-content; margin-left -10px; bottom radii 10px; max-height 240px; scroll | | main.css@12861; main.js@92422@65298 |
| option | padding 8px 10px; min-height 26px; line-height 13px; nowrap | | main.css@13869 |
| option highlight | bg --tsv-bg (theme); :hover bg #222A3C / rgb(235,235,235); :after hint (data-select) 13px subtitle colour | | main.js@92422@65435, @65510 |
| selected option | colour tint (#1588FA / #5DA1CB), bold 700, bg transparent; selected+highlight bg shaded-bg | | main.css@14687, @15082 |
| disabled | opacity .6; bg #2b3346; colour #000 | | main.css@8811, @15313 |
| .multiselect.medium | width fit-content, option padding 2px 2px 2px 8px; option title line-height 22px | | main.css@18299–18571 |
| native `select` | bg --tsv-bg, no border, radius 4, colour tint2, 13px, margin 2px 5px; hover opacity .75; checked option bg contrast-bg | | main.css@7015–7356 |
## 5. Toggle (ts-toggle)
Tokens: main.css --ts-toggle-width 20px; theme root --ts-toggle-height 0px, --ts-toggle-pill-size 16px, --ts-toggle-pill-left 0, --ts-toggle-checked-pill-left 0.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| track (.ts-toggle) | 40×20 px (width 20+16+4; theme height 16+4); radius 14px; background unset (theme); border 1px solid #697A97; flex centre | border 1px solid #445d77 | main.css@164820; main.js@92422@61535 |
| checked track | border 1px solid #17f78d | rgb(1,192,11) | main.js@92422@61665 |
| focus-within | border 2px solid tint | | main.css@165128 |
| inner rail (.ts-toggle-inner) | width 20px, height 0, bg unset (theme) | | main.css@165191; theme@61722 |
| knob (::after) | 16×16, radius 8px; bg #697A97 (theme); unchecked translateX(-8px) from rail left; checked translateX(12px); transitions transform .12s ease-in-out, width/left/bg .1s | bg #445d77 | main.css@165730, @165543; theme@61768 |
| checked knob | bg #17f78d | rgb(1,192,11) | theme@61841 |
| label | font 14px, line-height 18px; secondary lines margin-top 4px; p padding-right 20 | | theme@61933–62213; main.css@164725 |
## 6. Checkbox (ts-checkbox / TSCheckbox)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| size | 20×20 (element-level `--ts-checkbox-size:20px` on .ts-checkbox overrides theme root 22px) | same | main.css@166354, @166688 |
| background | #0c0d0f (--ts-checkbox-bg-color, main.css root) | #bccbeb | main.css@167064 |
| radius | 4px; transition background .1s | | |
| checkmark | SVG path stroke 3.12px, dasharray 29.78334 animated to 0 over .1s cubic-bezier(.4,0,.6,1); theme: size 100%, margin-left -5%, margin-top 5%, colour #17f78d | rgb(1,192,11) | main.css@167571, @167943; main.js@92422@82355 |
| disabled | opacity .6 | | main.css@167333 |
| label | line-height 24px, margin-right 10px, 13px (global label) | | main.css@166508, @658 |
Radio buttons: no `.radio`/ts-radio rule or component found; exclusive choices use segmented controls or exclusive checkboxes (channel groups). → UNRESOLVED/none.
## 7. Slider (ts-slider, render@3190925)
DOM: `div.ts-slider(.ts-slider-compact|.ts-slider-small|.has-marks) > input.ts-slider-hidden, marks div.ts-mark/.ts-bigmark, .ts-slider-track.overlay.ts-slider-track-fill, .ts-slider-track > .ts-slider-segment.ts-slider-segment-placeholder, .ts-slider-track > .ts-slider-segment > .ts-slider-segment-value, .ts-slider-track.ts-slider-track-progress …, knob`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| height | 36px (bar); min-width 40px; small: 20px | | main.css@173300, @176470 |
| track | 10px tall, vertically centred (small 8px) | | main.css@173713, @176549 |
| track fill | bg #131824, radius 4 | #bbbbbb | main.css@173406 |
| segment | margin 2px, radius 4, flex 1; compact: radius 0, margin 2px 0, end segments rounded | | main.css@175876–176101 |
| placeholder segment | bg shaded-bg | | main.css@176591 |
| segment value | radius 4; on: border 2px transparent; off: border 2px #fff, opacity 0, scale(.8,0); transitions transform .3s, border .5s, opacity .2s | | main.css@176658–177170 |
| knob | absolute, top calc(-50%+2px), translate(-50%,-50%), z 10; compact knob 8px, svg translateY(-3px) | | main.css@173965, @173545 |
| value bubble | bg contrast-bg (#0C1326 / #C9D9E5), radius 4, line-height 22, min-width 50, padding 0 5px, opacity 0 → .visible 1 (.1s); above knob; .bottom variant 6px below | | main.css@174113–174701 |
| marks | 2px wide, subtitle colour, opacity .6, inset 8px vertical | | main.css@175702 |
| VAD overlay | #13F78D, radius 4, width transition .1s | #30ee17 | main.css@680609 |
## 8. Segmented control (ts-segmented-control, render@3244964)
DOM: `div.tsv-segmented-control > div.tsv-segmented-button.tsv-action(.active) > ts-icon + span(.tsv-title-with-image)`, optional `.tsv-segment-control-reveal`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| container | bg #2b3346; radius 100px (theme, non-list); height 26px; inline-flex; colour tint | bg #f5f5f5 | main.css@162933; main.js@92422@13740 |
| in .tsv-bar | bg #121A2C (sidebar/secondary: --tsv-bg) | rgb(235,235,235) | main.css@163877, @164403 |
| button | font 10pt (13.33px), colour font-color, padding 0 4px, nowrap; span padding 0 5px; title-with-image padding-left 5 | | main.css@163184, @163775 |
| active | colour tint (#1588FA / #5DA1CB), bg transparent | | main.css@163549 |
| separators | ::after between buttons: 1px wide, height calc(100%-8px), margin 4px 0, bg #0B1124 (strong-bg), right -1px | bg #C9D9E5 | main.js@92422@36427 |
| only-active-highlight | inactive icons subtitle colour | | main.js@92422@67225 |
## 9. Tabs (.tsv-tabs)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| bar | min-height 26px; in .tsv-body no border | | main.css@68457, @93335 |
| tab item | padding 0 5px | | main.css@95284 |
| active tab (.tsv-tab-item-active::before) | bg --tsv-bg, radius 4, inset top/bottom 2px | | main.css@95512 |
| sidebar/secondary active bar-item | bg --tsv-tab-item-active = linear-gradient(to bottom,#0C1326,#222A3C) | linear-gradient(to bottom,#E5EBF9,rgb(235,235,235)) | main.css@91435 |
| .tsv-tabs-slim | transparent; margin-top 5px; ::before bg contrast-bg radius 4 inset left/right 10px (sidebar body: ::before bg --tsv-bg, margin-top 8px); first item margin-left 4px | | main.css@398266–398440; main.js@92422@11093 |
| .tsv-tabs-combined | tab hover highlight bg shaded-item-selection (=--tsv-bg) | | main.css@399159 |
| tab title | .tsv-bar-item-title 13px, margin 0 5px | | main.css@398703 |
| badge in tabs | hidden by default, scale-in .2s | | main.css@95147 |
## 10. Modals / dialogs / lightbox
| Element | Properties (D / L) | Source |
|---|---|---|
| .tsv-modal-overlay | absolute full-size; padding 8px 20px; backdrop-filter blur(2px); box-shadow inset 0 0 15px contrast-bg; ::before contrast-bg opacity .25; z 100 (`.root` z 1000, top 44px, height calc(100%-44px); login overlay full) | main.css@39549–40964, @468275 |
| enter/leave | opacity transition .15s | main.css@41067 |
| .tsv-modal-overlay-inner | flex column centred, 100% | main.css@40250 |
| .tsv-modal-container | theme bg #0C1326 / #C9D9E5; border 1px solid tint2 (#1588FA / #22658f); radius 8; min-width min(300px,100%); max-width min(680px,100%); height calc(100%-16px); .is-flexible-height auto, max calc(100%-16px); .is-loadable fade .1s | main.css@40455; main.js@92422@105718–106032 |
| .tsv-modal-title | width round(100% + 5.5px); h5 margin 16px 0, ellipsis | main.css@40638, @40057 |
| .ts-modal-dialog (scoped) | 480px, radius 8, shadow 0 24px 60px rgba(0,0,0,.55), overflow hidden; header flex padding 18px 18px 0 20px gap 10; title 16px bold 700 letter-spacing -.01em; subtitle 13px subtitle-colour mt 2; body 13px lh 1.5 gap 16 padding 18px 20px 20px scroll; footer padding 14px 20px gap 10 space-between | main.css@424367–425811 |
| .ts-lightbox | content-basis bg contrast-bg, border 1px sep-colour, radius 8, shadow 0 0 80px -10px rgba(0,0,0,.45), 90%×90% max 1920×1080 (fullscreen: no border/radius); close area top-right padding 4px 10px; platter bg shaded-bg radius 8, height calc(100% - 15px - 10px); hover overlay text gradient rgba(6,6,6,.9)→transparent fade .15s; footer 13px padding 2px 10px, spans subtitle colour | main.css@458244–464087 |
## 11. Notifications / toasts (.ts-notification, render@3944097/@3940123)
DOM: `div.ts-notification(.ts-notification-info|warning|error|announcement|plain) > .ts-notification-occurrences-container > span.ts-notification-occurrences; .ts-notification-image > ts-icon; .ts-notification-body > .ts-notification-title, .ts-notification-subtitle, .ts-notification-text; .ts-notification-actions.tsv-action-subtle > ts-icon(close); .ts-notification-progress-container > .ts-notification-progress-bar`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| box | flex, align centre, min-height 26px, margin-bottom 4px, backdrop blur(4px), text-shadow 1px 1px 2px contrast-bg; theme: border unset (removes 2px left tint), padding 8px 10px, radius 15px | | main.css@381477; main.js@92422@77507 |
| ::before (fill) | theme gradient linear-gradient(to right,#0B1124 0%,#222A3C 100%) opacity .95, radius 10px | linear-gradient(to right,#C9D9E5,rgb(235,235,235)) | main.js@92422@76764, @77881 |
| ::after (shadow) | box-shadow #000 4px 8px 5px 0, opacity .25, radius 10px | | main.js@92422@77690 |
| info | ::before linear-gradient(to right,#0C1326,#222A3C) opacity .85 | #C9D9E5→rgb(235,235,235) | theme@78281 |
| warning | linear-gradient(to right,#FF8B04,#222A3C) opacity .65 | rgb(247,84,19)→… | theme@78133 |
| error | linear-gradient(to right,#CC3838,#222A3C) opacity .65; text font-colour | rgb(223,15,15)→… | theme@78431, @78595 |
| announcement | linear-gradient(to right,#17f78d,#222A3C) opacity .75 | rgb(1,192,11)→… | theme@77981 |
| title / subtitle / text | 13px font-colour / 13px subtitle-colour (error subtitle error-light) / 13px subtitle-colour full width | | main.css@227077–227411 |
| image | margin-right 5px; icon scale 1.5 (33px) | | main.css@226921; theme@79981 |
| close icon (svg[name=item-close]) | icon base error-color | | theme@78686 |
| occurrences | 13px, margin-right 5px | | main.css@226724 |
| progress | 8px high bar container contrast-bg; bar gradient(to right,tint,#fb16c9) inset 2px; bottom radii 10px | | main.css@227534–227960 |
| widget variant | border 1px tint (theme: unset), radius 4, padding-left 10; title min-height 24px | | main.css@228235–228650; theme@77002 |
| notifications center | theme bg --card-background-inverted, max-height 320px; main.css radius 4, shadow 0 0 0 2px tint, arrow pointer 9px tint / 6px shaded; item separators 1px subtitle opacity .8 inset 10px; group notif bar 4px wide × (33+2)px | | main.css@384674–386828; theme@80028–81193 |
## 12. Tooltips (v-popper / v-better-tooltip)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| inner | bg #0C1326; radius 4; colour #697A97; 13px; padding 4px 10px | bg #C9D9E5; colour #445d77 | main.css@26597 |
| arrow | 5px CSS triangle in contrast-bg; 5px offset from target per placement | | main.css@26849–28454 |
| show/hide | opacity+visibility .15s; z 1000001 | | main.css@28700, @26419 |
| delay | example: password reveal tooltip show 750ms / hide 0 | | main.js@3207069 |
| item popover (.tsv-item-popover) | inner padding 4px 10px; items 14px min-width 180 | | main.css@223505 |
## 13. Badges
| Element | Properties | Source |
|---|---|---|
| .tsv-item-badge-count (list rows, e.g. "Deselect all Clients") | bg tint; radius 10px; colour contrast-bg (#0C1326 / #C9D9E5); 13px bolder; margin 0 5px; padding 0 5px | main.css@72950 |
| .tsv-badge-count | colour tint; 13px; 700; absolute z 1 | main.css@94956, @185006 |
| .tsv-badge-warning | colour away | main.css@95050 |
| .tsv-icon-badge::after (dot) | 6×6, bg error-color, radius 4, top/right 2px | main.css@95811 |
---------------------------------------------------------------------------------------------------
## UNRESOLVED
1. Exact popup positioning/flip logic of `He.Push` (attachment {x,y}, offset/size/noShrink modifiers) and whether a menu opens left/up near screen edges — not read.
2. Whether matrixRoomButtons throws/returns early for the channel menu (affects whether maxWidth 260px also applies to channel menus) — [INFERENCE] probably applies.
3. Row height: computed 30px assumes the `--tsv-row-heigh-small` typo invalidates min-height; not visually verified.
4. Text input vertical padding 12px within a 26px border-box height (theme) — actual rendered appearance not verified.
5. `1rem` base font-size for .tsv-button (html root font-size not resolved).
6. Slider knob SVG colours/shape and segment-value fill colour (likely inline/SVG) — not found in CSS.
7. `.ts-modal-dialog` background colour — no rule found in extracted CSS.
8. Client-fader (volume slider) component and connection-info component internals inside sub-menus — not extracted.
9. Icon glyphs (NY.* names listed) — SVG sources not mapped to files.
10. Radio control — none found.
11. Default v-better-tooltip delay for menu items (only the 750ms instance verified).