* refactor(room-list): migrate SpaceStore off the legacy room list store SpaceStore.setActiveRoomInSpace iterated the legacy RoomListStore's `orderedLists` in `TAG_ORDER`; switch it to the space-aware RoomListStoreV3.getSortedRoomsInActiveSpace() accessor. This drops the last non-UI dependency on the legacy store and on `TAG_ORDER` (exported from LegacyRoomList, deleted next). * feat(room-list)!: remove the legacy room list UI Delete the old sublist-based room list and its components now that the new RoomListPanel is the default. Removed: LegacyRoomList, LegacyRoomListHeader, RoomSublist, ExtraTile, RoomTile (+ Subtitle/ CallSummary), RoomBreadcrumbs and RoomSearch, plus their styles and tests. LeftPanel collapses to the RoomListPanel-only path. The shared `contextMenuBelow` helper is relocated into RoomResultContextMenus (its only remaining consumer). * feat(room-list)!: remove the legacy RoomListStore The legacy sublist-based room list UI is gone, so the old `stores/room-list` store (Algorithm, sorters, filters, layout store, space watcher) has no remaining consumers. Delete the directory and its tests. MatrixChat.forgetRoom no longer calls the legacy `manualRoomUpdate`; the new room list store removes the room on the `AfterForgetRoom` dispatch that still fires. Drop the `mxRoomListStore`/`mxRoomListLayoutStore` globals and the now-dead test imports. * feat(room-list)!: remove the feature_new_room_list labs flag The new room list is now the only room list, so remove the feature_new_room_list labs flag and make its enabled behaviour unconditional everywhere it was gated: - LoggedInView: always use the resizable layout and NEW_ROOM_LIST_MIN_WIDTH; drop the collapsible/minimized legacy path. - SpaceStore: People and Favourites are dropped from metaSpaceOrder (per the long-standing TODO on the removed accessor). - MessagePreviewStore: stop appending thread replies to previews. - Settings, SidebarUserSettingsTab, PreferencesUserSettingsTab, QuickSettingsButton, SpacePanel, LandmarkNavigation: drop the flag reads and legacy branches. Update the tests that toggled the flag; the People/Favourites meta space tests covered behaviour that the flag (default on) already disabled. * feat(room-list)!: remove the dead legacy left-panel resizer LoggedInView still built the old `Resizer`/`CollapseDistributor` over an `lp-resizer` ResizeHandle and persisted `mx_lhs_size`. That handle is no longer rendered (the resizable layout is now driven by LeftResizablePanelView + ResizerViewModel, which persists its own state via RoomList.panelSize/RoomList.isPanelCollapsed), so the old resizer was inert dead code left over from the legacy room list. Remove createResizer/loadResizer/loadResizerPreferences, the _resizeContainer/resizeHandler refs, the ResizeHandle render, the mx_lhs_size handling and NEW_ROOM_LIST_MIN_WIDTH, plus the unit tests that exercised the mocked resizer. * feat(room-list)!: update i18n files * refactor(room-list): remove the now-unused collapseLhs state `collapseLhs` is write-only since the left panel no longer collapses: it was last read by LoggedInView's `shouldUseMinimizedUI`, removed with the feature_new_room_list flag. Drop it from MatrixChat's IState (and its assignments), collapsing the hide/show_left_panel handlers to just the `notifyLeftHandleResized()` call they still need, and from LoggedInView's IProps and the test props. * fix(room-list): instantiate message previewers lazily Removing the unused SettingsStore import from MessagePreviewStore (when the feature_new_room_list flag was dropped) changed module load order and exposed a latent circular dependency: ReactionEventPreview imports MessagePreviewStore, which eagerly did `new ReactionEventPreview()` at module-eval — so importing ReactionEventPreview first (as its unit test does) hit "ReactionEventPreview is not a constructor". Construct the previewers lazily on first use (cached) instead of at module load, so nothing dereferences a mid-evaluation module. Fixes ReactionEventPreview-test. * test(room-list): remove `feature_new_room_list` labs flag in e2e tests * chore: remove remaining `newRoomList` flag * chore: cleanup theme files * fix: restore the re-resizable TouchEvent polyfill * chore: remove usage of breadcrumbs settings in BreadcrumbStore * Revert "fix(room-list): instantiate message previewers lazily" This reverts commit 4e6eedfff0449c68a96c0470a4eb425b5aec5512. * chore: remove unused function in BreadCrumbStore * test: remove unused fuction of BreadcrumStore in tests * test: add tests for RoomResultContextMenu
251 lines
7.4 KiB
Plaintext
251 lines
7.4 KiB
Plaintext
/* Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 */
|
|
$system: #21262c;
|
|
$system-transparent: #e1e6ec00;
|
|
|
|
/* unified palette */
|
|
/* try to use these colors when possible */
|
|
$bg-color: #181b21;
|
|
$base-color: #15171b;
|
|
$base-text-color: #edf3ff;
|
|
$header-panel-bg-color: #22262e;
|
|
$header-panel-bg-hover: var(--cpd-color-gray-200);
|
|
$header-panel-text-primary-color: #a1b2d1;
|
|
$header-panel-text-secondary-color: #c8c8cd;
|
|
$text-primary-color: #edf3ff;
|
|
$text-secondary-color: #a1b2d1;
|
|
$room-highlight-color: #343a46;
|
|
|
|
/* typical text (dark-on-white in light skin) */
|
|
$primary-fg-color: $text-primary-color;
|
|
$secondary-fg-color: $primary-fg-color;
|
|
$tertiary-fg-color: $primary-fg-color;
|
|
$primary-bg-color: $bg-color;
|
|
$muted-fg-color: $header-panel-text-primary-color;
|
|
|
|
/* used for dialog box text */
|
|
$light-fg-color: $header-panel-text-secondary-color;
|
|
|
|
/* used for focusing form controls */
|
|
$focus-bg-color: $room-highlight-color;
|
|
|
|
$pill-bg-color: var(--cpd-color-bg-action-primary-rest);
|
|
$pill-hover-bg-color: var(--cpd-color-bg-action-primary-hovered);
|
|
$pill-press-bg-color: var(--cpd-color-bg-action-primary-pressed);
|
|
|
|
/* informational plinth */
|
|
$info-plinth-bg-color: $header-panel-bg-color;
|
|
$info-plinth-fg-color: #888;
|
|
|
|
$spacePanel-bg-color: $base-color;
|
|
$inverted-bg-color: $spacePanel-bg-color;
|
|
|
|
/* used by Autocomplete */
|
|
$selected-color: $room-highlight-color;
|
|
|
|
/* selected for hoverover & selected event tiles */
|
|
$event-selected-color: $header-panel-bg-color;
|
|
|
|
/* used for the hairline dividers in RoomView */
|
|
$primary-hairline-color: #000000;
|
|
$secondary-hairline-color: var(--cpd-color-gray-300);
|
|
|
|
/* used for the border of input text fields */
|
|
$input-border-color: #e7e7e7;
|
|
$input-darker-bg-color: #181b21;
|
|
$input-darker-fg-color: #61708b;
|
|
$input-lighter-bg-color: #f2f5f8;
|
|
$input-placeholder: var(--cpd-color-text-secondary);
|
|
|
|
$resend-button-divider-color: $muted-fg-color;
|
|
|
|
/* scrollbars */
|
|
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
|
|
/* context menus */
|
|
$menu-border-color: #000000;
|
|
$menu-bg-color: $header-panel-bg-color;
|
|
$menu-box-shadow-color: $bg-color;
|
|
$menu-selected-color: $room-highlight-color;
|
|
|
|
$avatar-initial-color: #ffffff;
|
|
|
|
$h3-color: $primary-fg-color;
|
|
$icon-button-color: var(--cpd-color-icon-tertiary);
|
|
|
|
$dialog-title-fg-color: $base-text-color;
|
|
$dialog-backdrop-color: #00000080;
|
|
$dialog-close-fg-color: $icon-button-color;
|
|
$dialog-close-external-color: $text-primary-color;
|
|
|
|
$lightbox-background-bg-color: #000;
|
|
$lightbox-background-bg-opacity: 0.85;
|
|
|
|
$settings-grey-fg-color: #a2a2a2;
|
|
$settings-subsection-fg-color: $text-secondary-color;
|
|
|
|
$topleftmenu-color: $text-primary-color;
|
|
$roomheader-addroom-bg-color: #3c4556;
|
|
$roomheader-addroom-fg-color: $text-primary-color;
|
|
$roomtopic-color: $text-secondary-color;
|
|
$room-icon-unread-color: var(--cpd-color-icon-tertiary);
|
|
|
|
/* Legacy theme backports */
|
|
$accent: #0dbd8b;
|
|
$alert: #ff5b55;
|
|
$links: #0086e6;
|
|
$link-external: #0467dd;
|
|
$primary-content: $primary-fg-color;
|
|
$secondary-content: $secondary-fg-color;
|
|
$tertiary-content: $tertiary-fg-color;
|
|
$quaternary-content: #6f7882;
|
|
$quinary-content: $quaternary-content;
|
|
$background: $primary-bg-color;
|
|
$overlay-background: rgba($background, 0.85);
|
|
|
|
$panels: rgba($system, 0.9);
|
|
$panel-actions: #1a1d23;
|
|
|
|
$separator: var(--cpd-color-gray-400);
|
|
|
|
/**
|
|
* Creating a `semantic` color scale. This will not be needed with the new
|
|
* visual language, but necessary during the transition period
|
|
* This abstract the `green` away from where accent shades are used
|
|
* Take: `background: rgba($accent, 0.1);`
|
|
* would be transformed to: `background: $accent-300;`
|
|
*
|
|
* To use under very rare circumstances, always prefer the semantics defined
|
|
* in https://compound.element.io/?path=/docs/tokens-semantic-colors--docs
|
|
*/
|
|
$accent-100: var(--cpd-color-green-100);
|
|
$accent-200: var(--cpd-color-green-200);
|
|
$accent-300: var(--cpd-color-green-300);
|
|
$accent-400: var(--cpd-color-green-400);
|
|
$accent-500: var(--cpd-color-green-500);
|
|
$accent-600: var(--cpd-color-green-600);
|
|
$accent-700: var(--cpd-color-green-700);
|
|
$accent-800: var(--cpd-color-green-800);
|
|
$accent-900: var(--cpd-color-green-900);
|
|
$accent-1000: var(--cpd-color-green-1000);
|
|
$accent-1100: var(--cpd-color-green-1100);
|
|
$accent-1200: var(--cpd-color-green-1200);
|
|
$accent-1300: var(--cpd-color-green-1300);
|
|
$accent-1400: var(--cpd-color-green-1400);
|
|
/* Legacy theme backports */
|
|
|
|
/* ******************** */
|
|
|
|
$call-view-button-on-foreground: $primary-content;
|
|
$call-view-button-on-background: $system;
|
|
$call-view-button-off-foreground: $system;
|
|
$call-view-button-off-background: $primary-content;
|
|
$call-view-content-background: $quinary-content;
|
|
|
|
$video-feed-secondary-background: $system;
|
|
|
|
$call-system: $system;
|
|
$call-background: $background;
|
|
$call-primary-content: $primary-content;
|
|
$call-light-quaternary-content: #c1c6cd;
|
|
|
|
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
|
|
|
$spacePanel-divider-color: $tertiary-content;
|
|
|
|
/* ******************** */
|
|
|
|
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
|
$widget-body-bg-color: #1a1d23;
|
|
|
|
$event-highlight-bg-color: #25271f;
|
|
|
|
/* event timestamp */
|
|
$event-timestamp-color: $text-secondary-color;
|
|
|
|
/* Tabbed views */
|
|
$tab-label-fg-color: $text-primary-color;
|
|
$tab-label-active-fg-color: $text-primary-color;
|
|
|
|
/* Buttons */
|
|
$button-primary-fg-color: #ffffff;
|
|
$button-secondary-bg-color: transparent;
|
|
$button-danger-fg-color: #ffffff;
|
|
$button-danger-disabled-fg-color: #ffffff;
|
|
$button-danger-disabled-bg-color: #f5b6bb; /* TODO: Verify color */
|
|
|
|
/* Toggle switch */
|
|
$togglesw-off-color: $room-highlight-color;
|
|
|
|
$progressbar-bg-color: #21262c;
|
|
|
|
$visual-bell-bg-color: #800;
|
|
|
|
$dark-panel-bg-color: var(--cpd-color-bg-subtle-secondary);
|
|
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
|
|
|
$message-action-bar-bg-color: $header-panel-bg-color;
|
|
$message-action-bar-fg-color: $header-panel-text-primary-color;
|
|
$message-action-bar-border-color: #616b7f;
|
|
$message-action-bar-hover-border-color: $header-panel-text-primary-color;
|
|
|
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
|
$reaction-row-button-selected-bg-color: #1f6954;
|
|
|
|
$kbd-border-color: $strong-input-border-color;
|
|
|
|
$tooltip-timeline-bg-color: $spacePanel-bg-color;
|
|
$tooltip-timeline-fg-color: #ffffff;
|
|
|
|
$breadcrumb-placeholder-bg-color: #272c35;
|
|
|
|
/* See non-legacy dark for variable information */
|
|
$voice-record-stop-border-color: #6f7882;
|
|
$voice-record-icon-color: #6f7882;
|
|
|
|
$composer-shadow-color: tranparent;
|
|
|
|
$codeblock-background-color: #2a3039;
|
|
$inlinecode-border-color: #2a3039;
|
|
$inlinecode-background-color: #2a3039;
|
|
|
|
/* Bubble tiles */
|
|
$eventbubble-self-bg: #14322e;
|
|
$eventbubble-others-bg: $event-selected-color;
|
|
$eventbubble-bg-hover: #1c2026;
|
|
|
|
/* Location sharing */
|
|
/* ******************** */
|
|
$location-marker-color: #ffffff;
|
|
$location-live-color: #5c56f5;
|
|
$location-live-secondary-color: #deddfd;
|
|
/* ******************** */
|
|
|
|
body {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
/* Nasty hacks to apply a filter to arbitrary monochrome artwork to make it */
|
|
/* better match the theme. Typically applied to dark grey 'off' buttons or */
|
|
/* light grey 'on' buttons. */
|
|
.mx_filterFlipColor {
|
|
filter: invert(1);
|
|
}
|
|
|
|
/* markdown overrides: */
|
|
.mx_EventTile_content .markdown-body {
|
|
table {
|
|
tr {
|
|
background-color: #000000;
|
|
}
|
|
|
|
tr:nth-child(2n) {
|
|
background-color: #080808;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* highlight.js overrides: */
|
|
.hljs-tag {
|
|
color: inherit; /* Without this they'd be weirdly blue which doesn't match the theme */
|
|
}
|