left_sidebar: Display dark-mode condensed unreads without alpha.

This commit is contained in:
Karl Stolley
2023-11-03 09:52:59 -05:00
committed by Tim Abbott
parent 666ac2c445
commit 14ef3a5464
2 changed files with 13 additions and 0 deletions

View File

@@ -534,6 +534,7 @@ li.active-sub-filter {
.unread_count { .unread_count {
top: -6px; top: -6px;
right: -6px; right: -6px;
background: var(--color-background-unread-counter-no-alpha);
} }
} }

View File

@@ -395,6 +395,18 @@ body {
--color-border-dropdown-menu: hsl(0deg 0% 0%); --color-border-dropdown-menu: hsl(0deg 0% 0%);
--color-border-personal-menu-avatar: hsl(0deg 0% 100% / 20%); --color-border-personal-menu-avatar: hsl(0deg 0% 100% / 20%);
--color-background-unread-counter: hsl(105deg 2% 50% / 50%); --color-background-unread-counter: hsl(105deg 2% 50% / 50%);
/* When unreads are hovered on the condensed
views, they should not have an alpha.
The second color aligns with dark mode's
--color-background. We use the value
directly so that this gets compiled down to
an rgb() value by PostCSS Preset Env. */
--color-background-unread-counter-no-alpha: color-mix(
in srgb,
hsl(105deg 2% 50%) 50%,
hsl(0deg 0% 11%)
);
--color-background-unread-counter-dot: hsl(105deg 2% 50% / 90%); --color-background-unread-counter-dot: hsl(105deg 2% 50% / 90%);
--color-background-unread-counter-popover-menu: hsl(105deg 2% 50% / 50%); --color-background-unread-counter-popover-menu: hsl(105deg 2% 50% / 50%);
--color-border-unread-counter: hsl(105deg 2% 50%); --color-border-unread-counter: hsl(105deg 2% 50%);