Skip to content

Commit 9e836c5

Browse files
authored
Reintroduce/Improve rainbow threads, fixes, nuke dead code (#385)
* missing vars, higher specificity, themed inlines mod is modifier alpha not solid * rainbow threads fix: start cycle on red fix: cycle past the 6th iteration fix: don't rely on aria-label (only works on english) fix: use nth-of-type so divs (spineBorder_) or such don't mess up the cycle feat: missing vars feat: use a mixin note: mauve/6th iteration can pass 0 or 6 to the mixin or just not have the `+ $n` on it. but for readability pass 6 feat: colour the thread spine as a rainbow note: the rainbow gradient function can have additional computation but (* 0) and (* 1) don't really have a perf impact ``` // @if $index == 0 {$start: 0px; $end: var(--step) } // @if $index == 1 {$start: var(--step) } ``` see inline comments for further explanation * nuke dead code * organization use frappe instead of mocha for latte dark areas * singular threads are brand coloured * drop secondary * rainbow threads toggleability by placing `--ctp-rainbow-thread-disabled: ;` in their usercss, users can disable rainbow threads rainbow thread readme toggle note
1 parent aedcffa commit 9e836c5

20 files changed

+97
-2887
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
(prefers-color-scheme: light);
8989
```
9090

91+
- Q: **_"Can I disable Rainbow Threads"_**
92+
- A: Yes, by placing the following in your QuickCSS threads will be the same colour as typical channels. *note: please respect the `space` between the colon and semi-colon*
93+
```css
94+
:root {
95+
--ctp-rainbow-thread-disabled: ;
96+
}
97+
```
98+
9199
## 💝 Thanks to
92100

93101
- [GlowingUmbreon](https://github.com/glowingumbreon)

src/_theme.scss

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,11 @@
1616

1717
@import "components/variables";
1818

19-
@import "components/icons-bgImg";
20-
@import "components/icons-imgContent";
21-
@import "components/icons-svgBg";
22-
@import "components/icons-svgColor";
19+
@import "components/icons/bgImg";
20+
@import "components/icons/imgContent";
21+
@import "components/icons/svgBg";
22+
@import "components/icons/svgColor";
2323

24-
// @import "components/buttons";
25-
26-
// @import "components/pages";
27-
28-
// @import "components/navbar";
29-
// @import "components/sidebar";
30-
31-
// @import "components/chat";
32-
33-
// @import "components/popouts";
24+
@import "components/sidebar";
3425

3526
@import "components/details";

src/catppuccin-frappe.theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.visual-refresh .theme-dark {
1818
$brand: $blue;
1919

20-
@import "components/contrast-dark";
20+
@import "components/tweaks/dark";
2121
@import "theme";
2222

2323
@include theme.highlights("frappe");
@@ -29,6 +29,6 @@
2929
@import "@catppuccin/palette/scss/latte";
3030
$brand: $blue;
3131

32-
@import "components/tweak-light";
32+
@import "components/tweaks/light";
3333
@import "theme";
3434
}

src/catppuccin-latte.theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
.theme-dark,
1616
.visual-refresh.theme-dark,
1717
.visual-refresh .theme-dark {
18-
@import "@catppuccin/palette/scss/mocha";
18+
@import "@catppuccin/palette/scss/frappe";
1919
$brand: $blue;
2020

21-
@import "components/contrast-dark";
21+
@import "components/tweaks/dark";
2222
@import "theme";
2323
}
2424

@@ -27,7 +27,7 @@
2727
.visual-refresh .theme-light {
2828
$brand: $blue;
2929

30-
@import "components/tweak-light";
30+
@import "components/tweaks/light";
3131
@import "theme";
3232

3333
@include theme.highlights("latte");

src/catppuccin-macchiato.theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.visual-refresh .theme-dark {
1818
$brand: $blue;
1919

20-
@import "components/contrast-dark";
20+
@import "components/tweaks/dark";
2121
@import "theme";
2222

2323
@include theme.highlights("macchiato");
@@ -29,6 +29,6 @@
2929
@import "@catppuccin/palette/scss/latte";
3030
$brand: $blue;
3131

32-
@import "components/tweak-light";
32+
@import "components/tweaks/light";
3333
@import "theme";
3434
}

src/catppuccin-mocha.theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
.visual-refresh .theme-dark {
1818
$brand: $blue;
1919

20-
@import "components/contrast-dark";
20+
@import "components/tweaks/dark";
2121
@import "theme";
2222

2323
@include theme.highlights("mocha");
@@ -29,6 +29,6 @@
2929
@import "@catppuccin/palette/scss/latte";
3030
$brand: $blue;
3131

32-
@import "components/tweak-light";
32+
@import "components/tweaks/light";
3333
@import "theme";
3434
}

src/components/_buttons.scss

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)