2019-02-12 16:40:06 +01:00
|
|
|
// unified palette
|
|
|
|
// try to use these colors when possible
|
2020-07-14 19:18:42 +02:00
|
|
|
$bg-color: #15191E;
|
|
|
|
$base-color: $bg-color;
|
2020-07-14 18:39:14 +02:00
|
|
|
$base-text-color: #ffffff;
|
2020-07-14 19:19:07 +02:00
|
|
|
$header-panel-bg-color: #20252B;
|
2019-02-13 14:10:55 +01:00
|
|
|
$header-panel-border-color: #000000;
|
2020-07-14 18:39:14 +02:00
|
|
|
$header-panel-text-primary-color: #B9BEC6;
|
2019-02-12 16:40:06 +01:00
|
|
|
$header-panel-text-secondary-color: #c8c8cd;
|
2020-07-14 18:39:14 +02:00
|
|
|
$text-primary-color: #ffffff;
|
|
|
|
$text-secondary-color: #B9BEC6;
|
2021-05-05 17:58:45 +02:00
|
|
|
$quaternary-fg-color: #6F7882;
|
2019-02-13 14:10:55 +01:00
|
|
|
$search-bg-color: #181b21;
|
2019-02-12 16:40:06 +01:00
|
|
|
$search-placeholder-color: #61708b;
|
2019-02-13 14:10:55 +01:00
|
|
|
$room-highlight-color: #343a46;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
|
|
|
// typical text (dark-on-white in light skin)
|
2019-02-12 16:40:06 +01:00
|
|
|
$primary-fg-color: $text-primary-color;
|
|
|
|
$primary-bg-color: $bg-color;
|
2020-01-03 01:40:18 +01:00
|
|
|
$muted-fg-color: $header-panel-text-primary-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2020-07-31 18:52:19 +02:00
|
|
|
// additional text colors
|
|
|
|
$secondary-fg-color: #A9B2BC;
|
|
|
|
$tertiary-fg-color: #8E99A4;
|
|
|
|
|
2018-04-12 01:24:22 +02:00
|
|
|
// used for dialog box text
|
2019-02-12 16:40:06 +01:00
|
|
|
$light-fg-color: $header-panel-text-secondary-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
// used for focusing form controls
|
|
|
|
$focus-bg-color: $room-highlight-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-13 16:11:29 +01:00
|
|
|
$mention-user-pill-bg-color: $warning-color;
|
|
|
|
$other-user-pill-bg-color: $room-highlight-color;
|
2019-02-18 12:41:23 +01:00
|
|
|
$rte-room-pill-color: $room-highlight-color;
|
|
|
|
$rte-group-pill-color: $room-highlight-color;
|
2019-02-13 16:11:29 +01:00
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
// informational plinth
|
|
|
|
$info-plinth-bg-color: $header-panel-bg-color;
|
|
|
|
$info-plinth-fg-color: #888;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
$preview-bar-bg-color: $header-panel-bg-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2020-10-15 00:30:38 +02:00
|
|
|
$groupFilterPanel-bg-color: rgba(38, 39, 43, 0.82);
|
2020-07-14 18:39:14 +02:00
|
|
|
$inverted-bg-color: $base-color;
|
2019-02-13 11:30:38 +01:00
|
|
|
|
|
|
|
// used by AddressSelector
|
|
|
|
$selected-color: $room-highlight-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
|
|
|
// selected for hoverover & selected event tiles
|
2020-07-27 17:49:05 +02:00
|
|
|
$event-selected-color: #21262c;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
|
|
|
// used for the hairline dividers in RoomView
|
2020-07-14 18:39:14 +02:00
|
|
|
$primary-hairline-color: transparent;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
|
|
|
// used for the border of input text fields
|
2020-07-14 19:19:27 +02:00
|
|
|
$input-border-color: rgba(231, 231, 231, 0.2);
|
2019-02-12 16:40:06 +01:00
|
|
|
$input-darker-bg-color: $search-bg-color;
|
|
|
|
$input-darker-fg-color: $search-placeholder-color;
|
|
|
|
$input-lighter-bg-color: #f2f5f8;
|
|
|
|
$input-lighter-fg-color: $input-darker-fg-color;
|
|
|
|
$input-focused-border-color: #238cf5;
|
|
|
|
$input-valid-border-color: $accent-color;
|
2019-02-01 00:36:19 +01:00
|
|
|
$input-invalid-border-color: $warning-color;
|
2019-02-12 16:40:06 +01:00
|
|
|
|
|
|
|
$field-focused-label-bg-color: $bg-color;
|
2021-04-22 00:22:27 +02:00
|
|
|
|
2021-04-24 00:04:53 +02:00
|
|
|
$resend-button-divider-color: #b9bec64a; // muted-text with a 4A opacity.
|
2019-02-12 16:40:06 +01:00
|
|
|
|
2019-01-21 19:01:18 +01:00
|
|
|
// scrollbars
|
|
|
|
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
|
|
$scrollbar-track-color: transparent;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
// context menus
|
|
|
|
$menu-border-color: $header-panel-border-color;
|
|
|
|
$menu-bg-color: $header-panel-bg-color;
|
2019-02-13 15:56:28 +01:00
|
|
|
$menu-box-shadow-color: $bg-color;
|
2019-02-12 16:40:06 +01:00
|
|
|
$menu-selected-color: $room-highlight-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
$avatar-initial-color: #ffffff;
|
|
|
|
$avatar-bg-color: $bg-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-16 04:56:42 +01:00
|
|
|
$h3-color: $primary-fg-color;
|
|
|
|
|
2019-04-05 11:06:35 +02:00
|
|
|
$dialog-title-fg-color: $base-text-color;
|
2019-02-18 13:14:55 +01:00
|
|
|
$dialog-backdrop-color: #000;
|
|
|
|
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
|
|
|
|
$dialog-close-fg-color: #9fa9ba;
|
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
$dialog-background-bg-color: $header-panel-bg-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
$lightbox-background-bg-color: #000;
|
2021-04-22 14:59:02 +02:00
|
|
|
$lightbox-background-bg-opacity: 0.85;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
|
|
|
$settings-grey-fg-color: #a2a2a2;
|
2020-09-23 20:29:49 +02:00
|
|
|
$settings-profile-placeholder-bg-color: #21262c;
|
2019-02-12 16:40:06 +01:00
|
|
|
$settings-profile-overlay-placeholder-fg-color: #454545;
|
2020-09-23 20:30:01 +02:00
|
|
|
$settings-profile-button-bg-color: #e7e7e7;
|
|
|
|
$settings-profile-button-fg-color: $settings-profile-overlay-placeholder-fg-color;
|
2019-02-12 16:40:06 +01:00
|
|
|
$settings-subsection-fg-color: $text-secondary-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
$topleftmenu-color: $text-primary-color;
|
|
|
|
$roomheader-color: $text-primary-color;
|
2020-07-14 19:18:42 +02:00
|
|
|
$roomheader-bg-color: $bg-color;
|
2020-07-14 18:39:14 +02:00
|
|
|
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
|
2019-02-15 19:16:10 +01:00
|
|
|
$roomheader-addroom-fg-color: $text-primary-color;
|
2020-10-15 00:30:38 +02:00
|
|
|
$groupFilterPanel-button-color: $header-panel-text-primary-color;
|
2019-02-12 18:48:27 +01:00
|
|
|
$groupheader-button-color: $header-panel-text-primary-color;
|
2019-02-12 18:31:47 +01:00
|
|
|
$rightpanel-button-color: $header-panel-text-primary-color;
|
2020-07-28 14:19:11 +02:00
|
|
|
$icon-button-color: #8E99A4;
|
2019-02-12 16:40:06 +01:00
|
|
|
$roomtopic-color: $text-secondary-color;
|
|
|
|
$eventtile-meta-color: $roomtopic-color;
|
2018-12-06 22:39:59 +01:00
|
|
|
|
2019-02-13 14:57:59 +01:00
|
|
|
$header-divider-color: $header-panel-text-primary-color;
|
2020-07-14 14:30:05 +02:00
|
|
|
$composer-e2e-icon-color: $header-panel-text-primary-color;
|
2019-02-13 11:52:03 +01:00
|
|
|
|
2020-12-02 13:14:41 +01:00
|
|
|
// this probably shouldn't have it's own colour
|
2021-04-23 14:14:51 +02:00
|
|
|
$voipcall-plinth-color: #394049;
|
2020-12-02 13:14:41 +01:00
|
|
|
|
2020-06-12 21:52:54 +02:00
|
|
|
// ********************
|
|
|
|
|
|
|
|
$theme-button-bg-color: #e3e8f0;
|
|
|
|
|
2020-07-17 23:59:35 +02:00
|
|
|
$roomlist-button-bg-color: rgba(141, 151, 165, 0.2); // Buttons include the filter box, explore button, and sublist buttons
|
2020-08-17 17:59:29 +02:00
|
|
|
$roomlist-filter-active-bg-color: $bg-color;
|
2020-07-17 23:59:35 +02:00
|
|
|
$roomlist-bg-color: rgba(33, 38, 44, 0.90);
|
2020-07-31 18:52:19 +02:00
|
|
|
$roomlist-header-color: $tertiary-fg-color;
|
2020-07-18 00:18:15 +02:00
|
|
|
$roomsublist-divider-color: $primary-fg-color;
|
2020-11-02 18:22:45 +01:00
|
|
|
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
2020-06-12 21:52:54 +02:00
|
|
|
|
2020-10-15 00:30:38 +02:00
|
|
|
$groupFilterPanel-divider-color: $roomlist-header-color;
|
2020-08-22 02:10:05 +02:00
|
|
|
|
2020-07-31 18:52:19 +02:00
|
|
|
$roomtile-preview-color: $secondary-fg-color;
|
2020-07-18 00:18:15 +02:00
|
|
|
$roomtile-default-badge-bg-color: #61708b;
|
|
|
|
$roomtile-selected-bg-color: rgba(141, 151, 165, 0.2);
|
2020-06-12 21:52:54 +02:00
|
|
|
|
|
|
|
// ********************
|
|
|
|
|
2020-07-17 23:59:35 +02:00
|
|
|
$notice-secondary-color: $roomlist-header-color;
|
2020-07-14 22:15:24 +02:00
|
|
|
|
2020-07-14 18:39:14 +02:00
|
|
|
$panel-divider-color: transparent;
|
2018-10-23 15:48:44 +02:00
|
|
|
|
2019-02-15 18:20:02 +01:00
|
|
|
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
2020-10-19 19:47:15 +02:00
|
|
|
$widget-body-bg-color: rgba(141, 151, 165, 0.2);
|
2018-04-12 01:24:22 +02:00
|
|
|
|
2019-02-15 16:14:59 +01:00
|
|
|
// event redaction
|
|
|
|
$event-redacted-fg-color: #606060;
|
|
|
|
$event-redacted-border-color: #000000;
|
|
|
|
|
2019-07-02 18:31:11 +02:00
|
|
|
$event-highlight-fg-color: $warning-color;
|
2019-07-09 19:29:13 +02:00
|
|
|
$event-highlight-bg-color: #25271F;
|
2019-07-02 18:31:11 +02:00
|
|
|
|
2018-04-12 01:24:22 +02:00
|
|
|
// event timestamp
|
2019-02-12 16:40:06 +01:00
|
|
|
$event-timestamp-color: $text-secondary-color;
|
|
|
|
|
|
|
|
// Tabbed views
|
|
|
|
$tab-label-fg-color: $text-primary-color;
|
|
|
|
$tab-label-active-fg-color: $text-primary-color;
|
|
|
|
$tab-label-bg-color: transparent;
|
|
|
|
$tab-label-active-bg-color: $accent-color;
|
|
|
|
$tab-label-icon-bg-color: $text-primary-color;
|
|
|
|
$tab-label-active-icon-bg-color: $text-primary-color;
|
|
|
|
|
|
|
|
// Buttons
|
|
|
|
$button-primary-fg-color: #ffffff;
|
|
|
|
$button-primary-bg-color: $accent-color;
|
|
|
|
$button-secondary-bg-color: transparent;
|
|
|
|
$button-danger-fg-color: #ffffff;
|
2019-02-13 15:05:45 +01:00
|
|
|
$button-danger-bg-color: $notice-primary-color;
|
2019-02-12 16:40:06 +01:00
|
|
|
$button-danger-disabled-fg-color: #ffffff;
|
|
|
|
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
|
2019-07-05 00:45:40 +02:00
|
|
|
$button-link-fg-color: $accent-color;
|
|
|
|
$button-link-bg-color: transparent;
|
2019-02-12 16:40:06 +01:00
|
|
|
|
2020-04-23 13:28:00 +02:00
|
|
|
// Toggle switch
|
|
|
|
$togglesw-off-color: $room-highlight-color;
|
|
|
|
|
2021-03-05 22:14:43 +01:00
|
|
|
$progressbar-fg-color: $accent-color;
|
|
|
|
$progressbar-bg-color: #21262c;
|
|
|
|
|
2019-08-28 18:00:57 +02:00
|
|
|
$visual-bell-bg-color: #800;
|
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
$room-warning-bg-color: $header-panel-bg-color;
|
|
|
|
|
2019-02-18 14:50:17 +01:00
|
|
|
$dark-panel-bg-color: $header-panel-bg-color;
|
2019-02-13 16:06:24 +01:00
|
|
|
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
|
|
|
|
2019-04-30 18:41:11 +02:00
|
|
|
$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;
|
2019-04-29 14:04:16 +02:00
|
|
|
|
2019-05-01 19:05:11 +02:00
|
|
|
$reaction-row-button-bg-color: $header-panel-bg-color;
|
|
|
|
$reaction-row-button-border-color: #616b7f;
|
|
|
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
2019-05-02 12:48:32 +02:00
|
|
|
$reaction-row-button-selected-bg-color: #1f6954;
|
|
|
|
$reaction-row-button-selected-border-color: $accent-color;
|
2019-05-17 13:09:47 +02:00
|
|
|
|
2020-03-18 18:32:36 +01:00
|
|
|
$kbd-border-color: #000000;
|
|
|
|
|
2020-10-15 00:30:38 +02:00
|
|
|
$tooltip-timeline-bg-color: $groupFilterPanel-bg-color;
|
2019-05-17 13:09:47 +02:00
|
|
|
$tooltip-timeline-fg-color: #ffffff;
|
2019-05-01 19:05:11 +02:00
|
|
|
|
2019-06-21 12:41:19 +02:00
|
|
|
$interactive-tooltip-bg-color: $base-color;
|
|
|
|
$interactive-tooltip-fg-color: #ffffff;
|
|
|
|
|
2019-09-12 14:42:27 +02:00
|
|
|
$breadcrumb-placeholder-bg-color: #272c35;
|
|
|
|
|
2020-01-03 01:40:18 +01:00
|
|
|
$user-tile-hover-bg-color: $header-panel-bg-color;
|
|
|
|
|
2021-05-05 05:13:37 +02:00
|
|
|
$message-body-panel-fg-color: $secondary-fg-color;
|
2021-05-05 22:00:56 +02:00
|
|
|
$message-body-panel-bg-color: #394049; // "Dark Tile"
|
|
|
|
$message-body-panel-icon-fg-color: #21262C; // "Separator"
|
2021-05-05 05:13:37 +02:00
|
|
|
$message-body-panel-icon-bg-color: $tertiary-fg-color;
|
2021-03-05 04:07:48 +01:00
|
|
|
|
2021-05-05 22:00:56 +02:00
|
|
|
$voice-record-stop-border-color: $quaternary-fg-color;
|
|
|
|
$voice-record-waveform-bg-color: $message-body-panel-bg-color;
|
|
|
|
$voice-record-waveform-fg-color: $message-body-panel-fg-color;
|
|
|
|
$voice-record-waveform-incomplete-fg-color: $quaternary-fg-color;
|
|
|
|
$voice-record-icon-color: $quaternary-fg-color;
|
|
|
|
$voice-playback-button-bg-color: $message-body-panel-icon-bg-color;
|
|
|
|
$voice-playback-button-fg-color: $message-body-panel-icon-fg-color;
|
|
|
|
|
2020-06-22 13:28:15 +02:00
|
|
|
// Appearance tab colors
|
|
|
|
$appearance-tab-border-color: $room-highlight-color;
|
2020-04-23 12:33:28 +02:00
|
|
|
|
2020-07-14 18:39:14 +02:00
|
|
|
// blur amounts for left left panel (only for element theme, used in _mods.scss)
|
|
|
|
$roomlist-background-blur-amount: 60px;
|
2020-10-15 00:30:38 +02:00
|
|
|
$groupFilterPanel-background-blur-amount: 30px;
|
2020-07-14 18:39:14 +02:00
|
|
|
|
2020-07-16 16:26:25 +02:00
|
|
|
$composer-shadow-color: rgba(0, 0, 0, 0.28);
|
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
// ***** Mixins! *****
|
2018-04-12 01:24:22 +02:00
|
|
|
|
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2020-11-20 16:45:34 +01:00
|
|
|
border-radius: 8px;
|
2018-04-12 01:24:22 +02:00
|
|
|
font-family: $font-family;
|
2020-03-31 16:26:23 +02:00
|
|
|
font-size: $font-14px;
|
2019-02-12 16:40:06 +01:00
|
|
|
color: $button-fg-color;
|
|
|
|
background-color: $button-bg-color;
|
2018-04-12 01:24:22 +02:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-02-12 16:40:06 +01:00
|
|
|
@define-mixin mx_DialogButton_danger {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2018-12-06 22:39:59 +01:00
|
|
|
@define-mixin mx_DialogButton_secondary {
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
2021-04-02 09:07:36 +02:00
|
|
|
border: 1px solid $accent-color !important;
|
2018-12-06 22:39:59 +01:00
|
|
|
color: $accent-color;
|
2019-02-12 16:40:06 +01:00
|
|
|
background-color: $button-secondary-bg-color;
|
2018-12-06 22:39:59 +01:00
|
|
|
}
|
|
|
|
|
2019-08-29 16:20:14 +02:00
|
|
|
@define-mixin mx_Dialog_link {
|
|
|
|
color: $accent-color;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2019-02-13 11:06:18 +01:00
|
|
|
// 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 pre:hover {
|
|
|
|
border-color: #808080 !important; // inverted due to rules below
|
2021-02-11 13:31:06 +01:00
|
|
|
scrollbar-color: rgba(0, 0, 0, 0.2) transparent; // copied from light theme due to inversion below
|
2021-02-13 13:03:26 +01:00
|
|
|
// the code above works only in Firefox, this is for other browsers
|
|
|
|
// see https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: rgba(0, 0, 0, 0.2); // copied from light theme due to inversion below
|
|
|
|
}
|
2019-02-13 11:06:18 +01:00
|
|
|
}
|
|
|
|
.mx_EventTile_content .markdown-body {
|
|
|
|
pre, code {
|
|
|
|
filter: invert(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
filter: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
tr {
|
|
|
|
background-color: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(2n) {
|
|
|
|
background-color: #080808;
|
|
|
|
}
|
|
|
|
}
|
2020-10-27 21:10:23 +01:00
|
|
|
|
|
|
|
blockquote {
|
|
|
|
color: #919191;
|
|
|
|
}
|
2019-02-13 11:06:18 +01:00
|
|
|
}
|
2019-12-29 06:52:57 +01:00
|
|
|
|
2020-01-06 00:35:05 +01:00
|
|
|
// diff highlight colors
|
2020-01-06 00:58:07 +01:00
|
|
|
// intentionally swapped to avoid inversion
|
2019-12-29 06:52:57 +01:00
|
|
|
.hljs-addition {
|
|
|
|
background: #fdd;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-deletion {
|
|
|
|
background: #dfd;
|
|
|
|
}
|