Skip to content

Commit

Permalink
Replace internal glow intensity variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Apr 25, 2022
1 parent 8f51711 commit 84b940a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions piOStheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ User-definable variables: kebab-case
rgba(0, 255, 255, 0.2) 2px,
rgba(0, 255, 255, 0.2) 6px
); /* Spoiler stripe pattern */
--glowIntensity: var(--glow-intensity, 1);
--true-compact-message-spacing: var(--compact-message-spacing, 1); /* Space between messages in compact mode, user adjustable */
--focus-primary: hsl(
calc(var(--piOSaccenthue) + 180),
Expand Down
18 changes: 9 additions & 9 deletions section/piOSglow.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

.theme-dark {
--mainGlowColor: hsla(180, calc(var(--saturation-factor)*100%), 50%, calc(0.7 * var(--glow-intensity))); /* Glow colour for messages, names, channels. Default: cyan */
--mutedGlowColor: hsla(180, calc(var(--saturation-factor)*100%), 89%, calc(0.2 * var(--glow-intensity))); /* Glow colour for muted channels. Default: slate */
--mainGlowColor: hsla(180, calc(var(--saturation-factor)*100%), 50%, calc(0.7 * var(--glowIntensity))); /* Glow colour for messages, names, channels. Default: cyan */
--mutedGlowColor: hsla(180, calc(var(--saturation-factor)*100%), 89%, calc(0.2 * var(--glowIntensity))); /* Glow colour for muted channels. Default: slate */
}

/* Chat content text glow */
Expand Down Expand Up @@ -38,12 +38,12 @@ Thread preview
/* Channel and user pings, hyperlinks */
.theme-dark .mention,
.markup-eYLPri a {
text-shadow: 0 0 calc(20px * var(--glow-intensity));
text-shadow: 0 0 calc(20px * var(--glowIntensity));
}
/* Role pings, pin/join/thread alert messages */
.theme-dark .mention.roleMention-11Aaqi,
.content-vSHmMD {
text-shadow: 0 0 calc(10px * var(--glow-intensity));
text-shadow: 0 0 calc(10px * var(--glowIntensity));
}

/* allows channel and users glow to not clip */
Expand All @@ -61,7 +61,7 @@ Thread preview

/* Member list usernames with role colours */
.roleColor-nA7BqX {
--glowSize: 0 0 calc(5px * var(--glow-intensity));
--glowSize: 0 0 calc(5px * var(--glowIntensity));
text-shadow: var(--glowSize);
}
/* Special overrides */
Expand All @@ -78,16 +78,16 @@ span[style="color: rgb(1, 1, 1);"] {

/* status glow */
.wrapper-1VLyxH[aria-label*="Online"] {
--statusGlowColor: hsla(139, calc(var(--saturation-factor, 1) * 47.3%), 43.9%, var(--glow-intensity));
--statusGlowColor: hsla(139, calc(var(--saturation-factor, 1) * 47.3%), 43.9%, var(--glowIntensity));
}
.wrapper-1VLyxH[aria-label*="Do Not Disturb"] {
--statusGlowColor: hsl(359, calc(var(--saturation-factor, 1) * 82.6%), 59.4%, var(--glow-intensity));
--statusGlowColor: hsl(359, calc(var(--saturation-factor, 1) * 82.6%), 59.4%, var(--glowIntensity));
}
.wrapper-1VLyxH[aria-label*="Idle"] {
--statusGlowColor: hsl(38, calc(var(--saturation-factor, 1) * 95.7%), 54.1%, var(--glow-intensity));
--statusGlowColor: hsl(38, calc(var(--saturation-factor, 1) * 95.7%), 54.1%, var(--glowIntensity));
}
.wrapper-1VLyxH[aria-label*="Streaming"] {
--statusGlowColor: hsl(262, calc(var(--saturation-factor, 1) * 46.8%), 39.8%, var(--glow-intensity));
--statusGlowColor: hsl(262, calc(var(--saturation-factor, 1) * 46.8%), 39.8%, var(--glowIntensity));
}
.wrapper-1VLyxH {
box-shadow: 0 0 10px var(--statusGlowColor);
Expand Down

0 comments on commit 84b940a

Please sign in to comment.