Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Use CSS variables for the color values of tab-picker.
Prakhar Pratyush2d979fbf0ee1
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex bc23b51f363..8ac75e9a757 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -1208,19 +1208,19 @@ div.overlay {box-sizing: border-box;width: 100%;height: 27px;- background-color: hsl(0deg 0% 0% / 7%);+ background-color: var(--color-background-tab-picker-container);position: relative;border-radius: 5px;& i {z-index: 2;- color: hsl(200deg 100% 40%);+ color: var(--color-tab-picker-icon);font-size: 17px;}.selected-tab {- background-color: hsl(0deg 0% 100%);- outline: 1px solid hsl(0deg 0% 0% / 30%);+ background-color: var(--color-background-tab-picker-tab-option);+ outline: 1px solid var(--color-outline-tab-picker-tab-option);z-index: 1;}@@ -1236,8 +1236,8 @@ div.overlay {border-radius: 5px;&:hover:not(.selected-tab) {- background-color: hsl(0deg 0% 100%);- outline: 1px solid hsl(0deg 0% 0% / 30%);+ background-color: var(--color-background-tab-picker-tab-option);+ outline: 1px solid var(--color-outline-tab-picker-tab-option);}}}diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 62ba6fc6db3..76928c26f38 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -1536,26 +1536,6 @@}}- .tabs-container {- background-color: hsl(0deg 0% 0% / 30%);-- & i {- color: hsl(0deg 0% 80%);- }-- .selected-tab {- background-color: hsl(0deg 0% 17% / 50%);- outline: 1px solid hsl(0deg 0% 100% / 12%);- }-- .tab-option {- &:hover:not(.selected-tab) {- background-color: hsl(0deg 0% 17% / 50%);- outline: 1px solid hsl(0deg 0% 100% / 12%);- }- }- }-.visibility_policy_popover {.visibility_policy_option {&:hover:not(.selected_visibility_policy) {diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 8ef757b1647..15ecc8f2ef2 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -207,6 +207,9 @@ body {--color-border-personal-menu-avatar: hsl(0deg 0% 0% / 10%);--color-background-unread-counter: hsl(105deg 2% 50%);--color-background-unread-counter-popover-menu: hsl(200deg 100% 40%);+ --color-background-tab-picker-container: hsl(0deg 0% 0% / 7%);+ --color-background-tab-picker-tab-option: hsl(0deg 0% 100%);+ --color-outline-tab-picker-tab-option: hsl(0deg 0% 0% / 30%);/* Compose box colors */--color-compose-collapsed-reply-button-area-background: hsl(0deg 0% 100%);@@ -251,6 +254,7 @@ body {--color-vdots-hint: hsl(0deg 0% 0% / 30%);--color-vdots-visible: hsl(0deg 0% 0% / 53%);--color-vdots-hover: hsl(0deg 0% 0%);+ --color-tab-picker-icon: hsl(200deg 100% 40%);/* Message feed loading indicator colors */--color-zulip-logo: hsl(0deg 0% 0% / 34%);@@ -333,6 +337,9 @@ body {--color-border-personal-menu-avatar: hsl(0deg 0% 100% / 20%);--color-background-unread-counter: hsl(105deg 2% 50% / 50%);--color-background-unread-counter-popover-menu: hsl(105deg 2% 50% / 50%);+ --color-background-tab-picker-container: hsl(0deg 0% 0% / 30%);+ --color-background-tab-picker-tab-option: hsl(0deg 0% 17% / 50%);+ --color-outline-tab-picker-tab-option: hsl(0deg 0% 100% / 12%);/* Compose box colors */--color-compose-collapsed-reply-button-area-background: hsl(@@ -380,6 +387,7 @@ body {--color-vdots-hint: hsl(0deg 0% 100% / 30%);--color-vdots-visible: hsl(236deg 33% 80%);--color-vdots-hover: hsl(0deg 0% 100%);+ --color-tab-picker-icon: hsl(0deg 0% 80%);/* Message feed loading indicator colors */--color-zulip-logo: hsl(0deg 0% 100% / 50%);