Skip to content

Commit d6e79ab

Browse files
authored
update vars and fix typo (#404)
* update vars and fix typo --bg-mod-* and --text-normal vars were dropped. despite this they are still in use by client mods so keep to prevent breakage also fix a typo * Update _dark.scss * message box
1 parent 1c0a33e commit d6e79ab

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

src/components/_sidebar.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
--interactive-muted: var(--thread-muted, #{mix($colour, $crust, 50%)});
1919
}
2020

21-
@mixin raindbow-thread($n, $colour) {
21+
@mixin rainbow-thread($n, $colour) {
2222
& > li:nth-of-type(6n + #{$n}) {
2323
@include rainbow-vars($colour);
2424
}
@@ -56,12 +56,12 @@ ul[class^="content_"] > li[class^="container_"] > ul[role="group"] {
5656
);
5757
}
5858

59-
@include raindbow-thread(1, $red);
60-
@include raindbow-thread(2, $peach);
61-
@include raindbow-thread(3, $yellow);
62-
@include raindbow-thread(4, $green);
63-
@include raindbow-thread(5, $blue);
64-
@include raindbow-thread(6, $mauve);
59+
@include rainbow-thread(1, $red);
60+
@include rainbow-thread(2, $peach);
61+
@include rainbow-thread(3, $yellow);
62+
@include rainbow-thread(4, $green);
63+
@include rainbow-thread(5, $blue);
64+
@include rainbow-thread(6, $mauve);
6565

6666
// A singular thread is brand coloured
6767
& li:only-of-type {

src/components/_variables.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
--header-secondary: #{$subtext0} !important;
5454
--__header-bar-background: #{$mantle} !important;
5555

56-
--text-normal: #{$text} !important;
56+
--text-normal: #{$text} !important; // TODO: LEGACY
5757
--text-default: #{$text};
5858
--text-muted: #{$subtext0} !important;
5959
--text-link: #{$blue} !important;
@@ -117,6 +117,7 @@
117117
--home-background: #{$base};
118118

119119
--chat-background: #{$base};
120+
--chat-background-default: #{$base};
120121
--chat-border: #{$crust};
121122
--chat-input-container-background: #{$base};
122123
--chat-text-muted: #{$subtext0};
@@ -131,10 +132,10 @@
131132
--background-modifier-selected: #{adjust-color($overlay0, $alpha: -0.8)};
132133
--background-modifier-accent: #{adjust-color($text, $alpha: -0.74)};
133134
--background-modifier-active: #{adjust-color($text, $alpha: -0.83)};
134-
--background-mod-faint: #{$surface2};
135-
--background-mod-normal: #{$surface1};
136-
--background-mod-strong: #{$base};
137-
--background-mod-subtle: #{$surface0};
135+
--background-mod-faint: #{adjust-color($surface2, $alpha: -0.95)};
136+
--background-mod-normal: #{adjust-color($surface2, $alpha: -0.85)};
137+
--background-mod-subtle: #{adjust-color($surface2, $alpha: -0.75)} !important;
138+
--background-mod-strong: #{adjust-color($surface2, $alpha: -0.55)} !important;
138139
--custom-channel-members-bg: #{$mantle};
139140
--custom-status-bubble-background: #{$crust} !important;
140141
--custom-status-bubble-background-color: #{$mantle} !important;
@@ -377,6 +378,7 @@
377378
--deprecated-card-bg: #{adjust-color($crust, $alpha: -0.4)};
378379
--deprecated-card-editable-bg: #{adjust-color($crust, $alpha: -0.7)};
379380

381+
// TODO: LEGACY
380382
--bg-mod-faint: #{adjust-color($surface2, $alpha: -0.9)};
381383
--bg-mod-subtle: #{adjust-color($surface2, $alpha: -0.75)} !important;
382384
--bg-mod-strong: #{adjust-color($surface2, $alpha: -0.55)} !important;

src/components/tweaks/_dark.scss

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,19 @@ div[class^="friendRequestContainer_"] > button[class*="colorGreen_"] {
5353
}
5454

5555
.vcd-screen-picker-option-radio[data-checked="true"] {
56-
--text-normal: #{$crust};
56+
--text-default: #{$crust};
57+
}
58+
button {
59+
&[class*="selectorButtonSelected_"],
60+
&:hover {
61+
div[class*="selectorText_"] {
62+
color: #{$crust};
63+
}
64+
}
65+
}
66+
67+
svg[class^="selectedIcon_"] > circle[fill="white"] {
68+
fill: #{$crust};
5769
}
5870

5971
// Channels & Roles Browse channels count

0 commit comments

Comments
 (0)