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

Commit

Permalink
Make dropdown highlight color work with custom themes
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown committed May 16, 2022
1 parent 53d5cbb commit 7ed5229
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion res/css/views/elements/_Dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ input.mx_Dropdown_option:focus {
}

.mx_Dropdown_menu .mx_Dropdown_option_highlight {
background-color: rgba($quaternary-content, 0.2);
background-color: $dropdown-highlight-color;
}

.mx_Dropdown_searchPrompt {
Expand Down
5 changes: 5 additions & 0 deletions res/themes/dark/css/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ $button-danger-fg-color: $primary-content;
$button-danger-disabled-fg-color: $primary-content;
// ********************

// Dropdowns
// ********************
$dropdown-highlight-color: rgba($quaternary-content, 0.2);
// ********************

// Toggle switch
// ********************
$togglesw-off-color: $room-highlight-color;
Expand Down
3 changes: 3 additions & 0 deletions res/themes/legacy-dark/css/_legacy-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ $button-danger-fg-color: #ffffff;
$button-danger-disabled-fg-color: #ffffff;
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color

// Dropdowns
$dropdown-highlight-color: rgba($quaternary-content, 0.2);

// Toggle switch
$togglesw-off-color: $room-highlight-color;

Expand Down
3 changes: 3 additions & 0 deletions res/themes/legacy-light/css/_legacy-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ $button-danger-fg-color: #ffffff;
$button-danger-disabled-fg-color: #ffffff;
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color

// Dropdowns
$dropdown-highlight-color: rgba($quaternary-content, 0.2);

$visual-bell-bg-color: #faa;

// Toggle switch
Expand Down
1 change: 1 addition & 0 deletions res/themes/light-custom/css/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,4 @@ $menu-selected-color: var(--menu-selected-color, $menu-selected-color);
$pill-bg-color: var(--other-user-pill-bg-color, $pill-bg-color);
$pill-hover-bg-color: var(--other-user-pill-bg-color, $pill-hover-bg-color);
$icon-button-color: var(--icon-button-color, $icon-button-color);
$dropdown-highlight-color: var(--dropdown-highlight-color, $dropdown-highlight-color);
5 changes: 5 additions & 0 deletions res/themes/light/css/_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ $button-danger-disabled-fg-color: $background;
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
// ********************

// Dropdowns
// ********************
$dropdown-highlight-color: rgba($quaternary-content, 0.2);
// ********************

// Toggle switch
// ********************
$togglesw-off-color: #c1c9d6;
Expand Down

0 comments on commit 7ed5229

Please sign in to comment.