Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Task/colors 11 #7211

Merged
merged 25 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ab7220e
Remove $memberstatus-placeholder-color
SimonBrandner Nov 27, 2021
b428d33
Remove $event-notsent-color
SimonBrandner Nov 27, 2021
ad1a17e
$preview-bar-bg-color -> $info-plinth-bg-color
SimonBrandner Nov 27, 2021
a625d9f
Use $secondary-accent-color for $input-lighter-bg-color
SimonBrandner Nov 27, 2021
7de6386
Remove $tertiary-accent-color
SimonBrandner Nov 27, 2021
1f9f3a6
Use $background for $button-fg-color
SimonBrandner Nov 27, 2021
b565ee2
$greyed-fg-color -> $info-plinth-fg-color
SimonBrandner Nov 27, 2021
34805dd
Use $focus-bg-color for $preview-widget-bar-color
SimonBrandner Nov 27, 2021
096e244
Use $panel-actions
SimonBrandner Nov 27, 2021
bbfb64d
$roomlist-button-bg-color -> $panel-actions
SimonBrandner Nov 27, 2021
cd963c0
Use $roomlist-bg-color for $authpage-modal-bg-color
SimonBrandner Nov 27, 2021
3d14c81
Use $background
SimonBrandner Nov 27, 2021
32167b3
Use $focus-bg-color
SimonBrandner Nov 27, 2021
11d6357
Use $menu-border-color
SimonBrandner Nov 28, 2021
e7c4200
$rte-group-pill-color -> $rte-room-pill-color
SimonBrandner Nov 28, 2021
b337e7e
$input-focused-border-color -> $accent-alt
SimonBrandner Nov 28, 2021
8ca91f7
Use $dialog-title-fg-color
SimonBrandner Nov 28, 2021
8d72d8c
Use $togglesw-off-color
SimonBrandner Nov 28, 2021
d146bec
Use $message-action-bar-border-color
SimonBrandner Nov 28, 2021
2579934
Use $header-panel-text-primary-color
SimonBrandner Nov 28, 2021
2c7e05d
Use $input-darker-fg-color
SimonBrandner Nov 28, 2021
4f78bad
Use $menu-border-color
SimonBrandner Nov 28, 2021
89b0ed1
Use $system
SimonBrandner Nov 28, 2021
92b5efc
Use $message-action-bar-border-color
SimonBrandner Nov 28, 2021
e8beec5
Use $primary-content
SimonBrandner Nov 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions res/css/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
color: $secondary-accent-color;
}

#mx_theme_tertiaryAccentColor {
color: $tertiary-accent-color;
}

/* Expected z-indexes for dialogs:
4000 - Default wrapper index
4009 - Static dialog background
Expand Down
2 changes: 1 addition & 1 deletion res/css/structures/_GroupView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ limitations under the License.
}

.mx_GroupView_membershipSection {
color: $greyed-fg-color;
color: $info-plinth-fg-color;
margin-top: 10px;
}

Expand Down
4 changes: 2 additions & 2 deletions res/css/structures/_LeftPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ $roomListCollapsedWidth: 68px;
width: 32px;
height: 32px;
border-radius: 8px;
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;
position: relative;
margin-left: 8px;

Expand All @@ -152,7 +152,7 @@ $roomListCollapsedWidth: 68px;
width: 32px;
height: 32px;
border-radius: 8px;
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;
position: relative;
margin-left: 8px;

Expand Down
2 changes: 1 addition & 1 deletion res/css/structures/_RoomSearch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
.mx_RoomSearch {
flex: 1;
border-radius: 8px;
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;
// keep border thickness consistent to prevent movement
border: 1px solid transparent;
height: 28px;
Expand Down
2 changes: 1 addition & 1 deletion res/css/structures/_RoomView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ limitations under the License.
}

.mx_RoomView_messagePanelSearchSpinner::before {
background-color: $greyed-fg-color;
background-color: $info-plinth-fg-color;
mask: url('$(res)/img/feather-customised/search-input.svg');
mask-repeat: no-repeat;
mask-position: center;
Expand Down
2 changes: 1 addition & 1 deletion res/css/structures/_SpacePanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ $activeBorderColor: $secondary-content;
}

&.mx_SpaceButton_new .mx_SpaceButton_icon {
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;

&::before {
background-color: $primary-content;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ input.mx_StatusMessageContextMenu_message {
}

.mx_StatusMessageContextMenu_message::placeholder {
color: $memberstatus-placeholder-color;
color: $tertiary-content;
}

.mx_StatusMessageContextMenu_actionContainer {
Expand Down
6 changes: 3 additions & 3 deletions res/css/views/dialogs/_ExportDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ limitations under the License.
}

.mx_StyledRadioButton input[type="radio"]:checked + div > div {
background: $greyed-fg-color;
background: $info-plinth-fg-color;
}

.mx_StyledRadioButton input[type=radio]:checked + div {
Expand All @@ -52,8 +52,8 @@ limitations under the License.
}

.mx_Checkbox input[type="checkbox"]:checked + label > .mx_Checkbox_background {
background: $greyed-fg-color;
border-color: $greyed-fg-color;
background: $info-plinth-fg-color;
border-color: $info-plinth-fg-color;
}
}

Expand Down
4 changes: 2 additions & 2 deletions res/css/views/elements/_Dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ limitations under the License.
}

.mx_Dropdown_input:focus {
border-color: $input-focused-border-color;
border-color: $accent-alt;
}

/* Disable dropdown highlight on focus */
Expand Down Expand Up @@ -110,7 +110,7 @@ input.mx_Dropdown_option:focus {
margin: 0;
padding: 0px;
border-radius: 4px;
border: 1px solid $input-focused-border-color;
border: 1px solid $accent-alt;
background-color: $background;
max-height: 200px;
overflow-y: auto;
Expand Down
8 changes: 4 additions & 4 deletions res/css/views/elements/_Field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ limitations under the License.
}

.mx_Field:focus-within {
border-color: $input-focused-border-color;
border-color: $accent-alt;
}

.mx_Field input:focus,
Expand All @@ -92,7 +92,7 @@ limitations under the License.
.mx_Field textarea:placeholder-shown:focus::placeholder,
.mx_Field.mx_Field_placeholderIsHint input::placeholder {
transition: color 0.25s ease-in 0.1s;
color: $greyed-fg-color;
color: $info-plinth-fg-color;
}

.mx_Field label {
Expand Down Expand Up @@ -136,7 +136,7 @@ limitations under the License.
.mx_Field input:focus + label,
.mx_Field select:focus + label,
.mx_Field textarea:focus + label {
color: $input-focused-border-color;
color: $accent-alt;
}

.mx_Field select:disabled,
Expand All @@ -146,7 +146,7 @@ limitations under the License.
.mx_Field textarea:disabled,
.mx_Field textarea:disabled + label {
background-color: $background;
color: $greyed-fg-color;
color: $info-plinth-fg-color;
}

.mx_Field_valid {
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/elements/_RichText.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ a.mx_Pill {
.mx_EventTile_content .markdown-body a.mx_GroupPill,
.mx_GroupPill {
color: $accent-fg-color;
background-color: $rte-group-pill-color;
background-color: $rte-room-pill-color;
}

/* More specific to override `.markdown-body a` text-decoration */
Expand Down
4 changes: 2 additions & 2 deletions res/css/views/elements/_RoomAliasField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ limitations under the License.
}

input::placeholder {
color: $greyed-fg-color;
color: $info-plinth-fg-color;
font-weight: normal;
}

.mx_Field_prefix, .mx_Field_postfix {
color: $greyed-fg-color;
color: $info-plinth-fg-color;
border-left: none;
border-right: none;
font-weight: 600;
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/messages/_MessageActionBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ limitations under the License.
margin: 2px;

&:hover {
background: $roomlist-button-bg-color;
background: $panel-actions;
border-radius: 6px;
z-index: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/right_panel/_PinnedMessagesCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ limitations under the License.
}

.mx_MessageActionBar_optionsButton {
background: $roomlist-button-bg-color;
background: $panel-actions;
border-radius: 6px;
z-index: 1;

Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_LinkPreviewWidget.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
display: flex;
border-left: 2px solid $preview-widget-bar-color;
border-radius: 2px;
color: $greyed-fg-color;
color: $info-plinth-fg-color;
}

.mx_LinkPreviewWidget_image {
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_MemberList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ limitations under the License.
}

.mx_MemberList_invite.mx_AccessibleButton_disabled {
background-color: $greyed-fg-color;
background-color: $info-plinth-fg-color;
cursor: not-allowed;
}

Expand Down
4 changes: 2 additions & 2 deletions res/css/views/rooms/_MessageComposer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ limitations under the License.
width: 100%;
height: 60px;
font-style: italic;
color: $greyed-fg-color;
color: $info-plinth-fg-color;
display: flex;
align-items: center;
justify-content: center;
Expand Down Expand Up @@ -319,7 +319,7 @@ limitations under the License.
flex-direction: row;
align-items: center;
font-size: $font-10px;
color: $greyed-fg-color;
color: $info-plinth-fg-color;
}

.mx_MessageComposer_formatbar * {
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_MessageComposerFormatBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ limitations under the License.
margin: 2px;

&:hover {
background: $roomlist-button-bg-color;
background: $panel-actions;
border-radius: 6px;
z-index: 1;
}
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_RoomList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ limitations under the License.
margin-top: 12px;
display: block;
text-align: start;
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;
border-radius: 4px;

&::before {
Expand Down
4 changes: 2 additions & 2 deletions res/css/views/rooms/_RoomSublist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ limitations under the License.

.mx_RoomSublist_auxButton:hover,
.mx_RoomSublist_menuButton:hover {
background: $roomlist-button-bg-color;
background: $panel-actions;
}

// Hide the menu button by default
Expand Down Expand Up @@ -304,7 +304,7 @@ limitations under the License.
width: 32px !important; // !important to override hover styles
height: 32px !important; // !important to override hover styles
margin-left: 0 !important; // !important to override hover styles
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;
margin-top: 8px;

&::before {
Expand Down
4 changes: 2 additions & 2 deletions res/css/views/rooms/_RoomUpgradeWarningBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

.mx_RoomUpgradeWarningBar {
max-height: 235px;
background-color: $preview-bar-bg-color;
background-color: $info-plinth-bg-color;
padding-left: 20px;
padding-right: 20px;
overflow: scroll;
Expand Down Expand Up @@ -48,6 +48,6 @@ limitations under the License.
}

.mx_RoomUpgradeWarningBar_small {
color: $greyed-fg-color;
color: $info-plinth-fg-color;
font-size: 70%;
}
2 changes: 1 addition & 1 deletion res/css/views/spaces/_SpaceCreateMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $spacePanelWidth: 68px;
width: 28px;
height: 28px;
position: relative;
background-color: $roomlist-button-bg-color;
background-color: $panel-actions;
border-radius: 14px;
margin-bottom: 12px;

Expand Down
26 changes: 11 additions & 15 deletions res/themes/dark/css/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ $icon-button-color: $tertiary-content;
// Colors that aren't in Figma - we need to get rid of these
// ********************
$header-panel-text-primary-color: #B9BEC6;
$text-secondary-color: #B9BEC6;
$text-secondary-color: $header-panel-text-primary-color;
$header-panel-text-secondary-color: #c8c8cd;
$room-highlight-color: #343a46;
$info-plinth-fg-color: #888;
$event-highlight-bg-color: #25271F;
$groupFilterPanel-bg-color: rgba(38, 39, 43, 0.82);
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
Expand All @@ -51,7 +50,6 @@ $light-fg-color: $header-panel-text-secondary-color;
$muted-fg-color: $header-panel-text-primary-color;
$info-plinth-bg-color: $header-panel-bg-color;
$dark-panel-bg-color: $header-panel-bg-color;
$preview-bar-bg-color: $header-panel-bg-color;
// ********************

// Settings
Expand All @@ -65,7 +63,6 @@ $settings-subsection-fg-color: $text-secondary-color;
// Rich-text editor
// ********************
$rte-room-pill-color: $room-highlight-color;
$rte-group-pill-color: $room-highlight-color;
// ********************

// Inputs
Expand All @@ -87,29 +84,28 @@ $menu-selected-color: $room-highlight-color;
// Dialogs
// ********************
$dialog-title-fg-color: $primary-content;
$dialog-backdrop-color: #000;
$dialog-backdrop-color: $menu-border-color;
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
$dialog-close-fg-color: #9fa9ba;
// ********************

// Lightbox
// ********************
$lightbox-background-bg-color: #000;
$lightbox-background-bg-color: $menu-border-color;
$lightbox-background-bg-opacity: 0.85;
// ********************

// RoomList
// ********************
$roomlist-button-bg-color: rgba(141, 151, 165, 0.2); // Buttons include the filter box, explore button, and sublist buttons
$roomlist-bg-color: rgba(33, 38, 44, 0.90);
$roomlist-bg-color: rgba($system, 0.90);
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
$roomtile-default-badge-bg-color: #61708b;
$roomtile-default-badge-bg-color: $input-darker-fg-color;
// ********************

// Widgets
// ********************
$widget-menu-bar-bg-color: $header-panel-bg-color;
$widget-body-bg-color: rgba(141, 151, 165, 0.2);
$widget-body-bg-color: $panel-actions;
// ********************

// Tabbed views
Expand Down Expand Up @@ -147,7 +143,7 @@ $message-action-bar-hover-border-color: $header-panel-text-primary-color;

// Reaction row
// ********************
$reaction-row-button-border-color: #616b7f;
$reaction-row-button-border-color: $message-action-bar-border-color;
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
$reaction-row-button-selected-bg-color: #1f6954;
// ********************
Expand Down Expand Up @@ -184,12 +180,12 @@ $video-feed-secondary-background: $system;

// One-off colors
// ********************
$kbd-border-color: #000000;
$kbd-border-color: $menu-border-color;
$visual-bell-bg-color: #800;
$avatar-initial-color: #ffffff;
$avatar-initial-color: $primary-content;
$theme-button-bg-color: #e3e8f0;
$codeblock-background-color: #2a3039;
$resend-button-divider-color: #b9bec64a; // muted-text with a 4A opacity.
$resend-button-divider-color: rgba($header-panel-text-primary-color, 0.74); // muted-text with a 0.74 opacity.
$breadcrumb-placeholder-bg-color: #272c35;
$composer-shadow-color: rgba(0, 0, 0, 0.28);
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
Expand Down Expand Up @@ -260,7 +256,7 @@ $appearance-tab-border-color: $room-highlight-color;
.mx_EventTile_content .markdown-body {
table {
tr {
background-color: #000000;
background-color: $menu-border-color;
}

tr:nth-child(2n) {
Expand Down
Loading