# TS6 6.0.0.5163 — Settings activity + Screenshare setup dialog (source-backed spec) Scale: **Medium** (main.css :root defaults). Theme values: DARK = module `main.js@92422`, LIGHT = module `main.js@201685` (both load the same component overrides after main.css; at equal specificity theme-module rules win). `render@N` = render-skeletons.txt offsets. [INFERENCE] marks anything not read directly from source. Token cheat-sheet used below (themes.txt): | token | DARK | LIGHT | |---|---|---| | --tsv-bg | #2b3346 | #f5f5f5 | | --tsv-header-bg | #1C2539 | = shaded rgb(235,235,235) | | --tsv-shaded-bg | #222A3C | rgb(235,235,235) | | --tsv-contrast-bg | #0C1326 | #C9D9E5 | | --tsv-tint | #1588FA | #5DA1CB | | --tsv-tint2 | = tint #1588FA | #22658f | | --tsv-font-color | #FFFFFF | #1a1a1a | | --tsv-font-subtitle-color | #697A97 | #445d77 | | --tsv-separation-border-color | #1D1F20 | rgb(189,189,189) | | --strong-bg | #0B1124 | = contrast #C9D9E5 | | --presence-online | #17f78d | = online rgb(1,192,11) | | --settings-highlight-bg | #282F40 | = deviant #d3d5de | | --tsv-item-selection | = shaded #222A3C | = shaded rgb(235,235,235) | | --tsv-slider-track-bg | #131824 | #bbbbbb | | --tsv-slider-vad-color | #13F78D | #30ee17 | | --tsv-disabled-color | #595959 | #888888 | | --tsv-error-color / -light | #CC3838 / rgb(255,130,130) | rgb(223,15,15) / rgb(218,77,77) | | --tsv-button-filled-bg | linear-gradient(60deg,#0058FF,#1365BB) | linear-gradient(-45deg,rgb(95,135,213) 1%,rgb(142,166,255) 100%) | | --tsv-preview-bg / -font-color | #1C2539 / #FFFFFF | #bccbeb / #1a1a1a | | --ts-menu-action-color (main.css root) | #8ac5fc | #8ac5fc | Scale px: font 15 / content 14 / small 13 / minimal 13 / large 16; line-heights 19 / content 18 / small 15 / large 19; pad-h 40/20/10/5; pad-v 16/8/4/2; bar 36; bar-element 26; control 22; radii xxxl20 xxl15 xl10 large8 4 small2; pill 100px; icons 16/22/33/55/110; scrollbar 8; readability 640. --- ## 1. Presentation / routing * Router: route `{name:"settings", path:"settings", props:{activityIdentifier:"settings"}}` uses module **6528** (the normal activity window). Module **73038** is the *second* route also named `settings` with `path:"/popup"` (popup window) — `main.js@~2769417`. (The assignment's "module 73038" is the popup variant.) * Activity class (`main.js@~1846891`): `name = t("universal.settings")`, `type/identifier "settings"`, `image TSIcon.Settings`, `excludeFromHistory`, `showContentHeader false`, `presentWithBackground true`, `shouldDisplayContentModeControl = windowLayout.isSlim`, `customContentModesDropdownComponentData {isMenu:true}` (in slim windows a content-mode dropdown menu lists the categories; picking closes the menu — `isMenu` → `$emit("close")`, `main.js@4198601`). * `resourcesComponent = showSettingsInSidebar ? : null`; `showSettingsInSidebar = windowLayout.windowSize.width < 900` (`main.js@1371244`). * **Window ≥ 900 px**: the page view `ts-settings-view` renders `.tsv-settings` = flex row: `SettingsCategories (in-sidebar=false, collapsed=false, detailed=true)` **left column inside the content pane** + selected page component `.tsv-settings-subcategory` (flex-grow 1) (`render@2965998`, `main.js@2965752`, `main.css@422392/422458`: `.tsv-settings{display:flex;z-index:1}`). * **Window < 900 px**: in-page column is hidden (`showSettings = !showSettingsInSidebar`); the categories component is supplied as the sidebar resources component (prop default `inSidebar:true`, `main.js@4201918`) → rendered as sidebar list with a `.tsv-bar.tsv-tabs.tsv-tabs-slim` title + close (×) action [INFERENCE: placed in the sidebar's resources area]. * On mode change the activity pushes a navigation item (title + icon) for About / Chats / Privacy (`main.js@1848015`) [INFERENCE: shown in the window/content header bar, not as an in-page title]. There is **no in-page page-title header**; pages start directly with section cards. * Sidebar footer gear: `.tsv-bar-item.tsv-action-subtle {active:settingsVisible}` with tooltip `universal.settings`; icon becomes `ItemClose` when settings visible and window compact (`render@2960759`, `main.js@2840524`). * Settings pages live in the primary activity: `.tsv-activity-primary .tsv-settings-subcategory .ts-widget-wrapper, … .ts-widget:not(.transparent) {background: var(--tsv-header-bg) !important}` and segmented controls inside get `background: var(--tsv-bg)` (`main.js@92422@75451/75684`, same in @201685). ## 2. Category inventory (order is source order) Lookup `categoriesLookup` (`main.js@4197285–4198151`); groups with no available modes vanish; any unassigned mode goes to an extra group `other` = `universal.others` ("Others"/"Прочие"). | # | Group (i18n key) | EN | RU | Mode key | Page title key | EN | RU | Icon (TSIcon) | Page module | |---|---|---|---|---|---|---|---|---|---| | 1 | settings.categories.user | User | Пользователь | SettingsAccount | settings.account.title | Account | Учетная запись | SettingsAccount | 63586 | | 2 | 〃 | | | SettingsIdentity | settings.identity.title (tc 28 → plural) | Identities | Идентификаторы | SettingsIdentities | 13427 | | 3 | 〃 | | | SettingsPrivacy | settings.privacy.title | Privacy | Конфиденциальность | SettingsPrivacy | 30484 | | 4 | universal.application | Application | Приложение | SettingsAppearance | settings.appearance.title | Appearance | Внешний вид | SettingsAppearances | 74462 | | 5 | 〃 | | | SettingsAudio | settings.audio.title | Audio | Аудио | SettingsAudio | 702 | | 6 | 〃 | | | SettingsVideo | settings.video.title | Video | Видео | StreamPlaying | 30484 | | 7 | 〃 | | | SettingsKeybind | settings.hotkey.title | Key Bindings | Привязки клавиш | SettingsKeybindings | 92350 | | 8 | 〃 | | | SettingsChat | universal.chats (tc 28) | Chats | Чаты | SettingsChat | 30484 | | 9 | 〃 | | | SettingsWhisper | settings.whisper.title | Whispers | Шепоты | SettingsWhispers | 86324 | | 10 | 〃 | | | SettingsNotifications | universal.notifications | Notifications | Уведомления | Notifications | 186 | | 11 | 〃 | | | SettingsFileTransfer | filetransfer.title | File Transfer | Передача файла | FileTransfer | 87209 | | 12 | 〃 (only `navigator.platform==="win32"`) | | | SettingsOS | settings.os.title | OS Specific | Системные | SettingsBehavior | 64558 | | 13 | settings.categories.customization | Extensions | Расширения | SettingsRemoteApps | settings.remote_apps.title | Remote Apps | Удаленные приложения | SettingsAddons | 24864 | | 14 | universal.information | Information | Информация | SettingsAbout | universal.about | About | Информация | ModeInfo | 30484 | Sources: mode defs `main.js@1335471–1338429` (`contentModes.settings`, all `component:"ts-settings-view", keepAlive, renderKey:"settings"`). Note: definition order differs from display order (display uses lookup order above). RemoteApps is excluded from TeamsPeach scope per parent; listing it only for parity awareness. ## 3. DOM skeletons ### 3.1 Categories column (`render@4202584`, `render@4199411`) ``` div.tsv-settings-categories{.not-in-sidebar when !inSidebar} div.tsv-settings-title{.tsv-bar.tsv-tabs.tsv-tabs-slim when inSidebar} div{inSidebar: .tsv-bar-item.tsv-bar-item-title.tsv-bar-item-title-container | else: .tsv-flex.tsv-flex-snd-center.ts-font-muted} (omitted when collapsed) ts-icon.tsv-icon-subtitle-base.tsv-icon-large [icon Settings] (only when !inSidebar) span{.tsv-mar-l-small when !inSidebar} "universal.settings" div.tsv-flex-grow (inSidebar only) div.tsv-bar-item.tsv-action-subtle > ts-icon[ItemClose] (inSidebar only) SettingsCategoriesList.tsv-scroll-area div.tsv-list div.tsv-settings-category (per group) TSSidebarTabHeader [headerTitle = group title] ul.tsv-activity-group-list ContentItemCell.tsv-icon-subtitle-base (per mode; item=itemForMode, isActive = settings.focused && lastContentModeKey===key) ``` ### 3.2 Generic page (all pages share this; e.g. `render@4850979` audio) ``` div.ts--settings.tsv-view div.tsv-body.tsv-view.tsv-scroll-area(.tsv-scroll-area-v on Appearance).tsv-clearance div.tsv-readability.ts-widget-container div.ts-widget-wrapper (one per section) div.ts-widget-section-header > div.title "
" div.ts-card.ts-widget.full div.ts-card-content (some pages) div.ts-card-setting-container (one per setting row) ts-toggle > (span "