Major ui revamp

Respects accent colour of workspace
New design implementation
Glance working
This commit is contained in:
Tanay Kar 2025-05-05 19:30:45 +05:30 committed by GitHub
parent 2e27bdad86
commit 3a95ef2b26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,54 +1,55 @@
@media (-moz-bool-pref: "zen.view.use-single-toolbar") { @media (-moz-bool-pref: "zen.view.use-single-toolbar") {
#zen-appcontent-wrapper { .browserSidebarContainer.deck-selected::before {
position: relative !important;
background-color: transparent !important;
}
#zen-appcontent-wrapper::before {
content: "" !important; content: "" !important;
position: absolute !important; position: absolute !important;
top: 2px !important; top: 0px !important;
left: 6px !important; left: 0px !important;
height: 4px !important; height: 4px !important; /* Height of the top background */
max-width: calc(100% - 16px) !important; max-width: 100% !important;
width: var(--bar-pcent) !important; width: var(--bar-pcent) !important; /* Ensure full width or customizable width */
background-color: var(--bar-colour) !important; background-color: var(--bar-colour) !important; /* Solid color for the bar */
border-radius: 4px; border-radius: 0 2px 2px 0; /* Adjust this value to control the roundness of the ends */
pointer-events: none !important; z-index: 1 !important;
transition: transition: width 0.5s ease-in-out, background 0.2s ease !important; /* Apply smooth transition on width and background */
background-color 0.2s ease-in-out, } /* Current tab loading progress and muted status */
width 0.5s ease-in-out !important;
.browserSidebarContainer.deck-selected:has([zen-glance-selected])::before,
.browserSidebarContainer.deck-selected.zen-glance-overlay::before {
max-width: calc(85%) !important;
left: calc(15%/2) !important;
border-radius: 6px !important;
} }
#main-window { .browserSidebarContainer.deck-selected.zen-glance-background::before {
background: transparent !important;
height: 0px !important;
}
:root {
&:has(.tabbrowser-tab[selected][busy]) { &:has(.tabbrowser-tab[selected][busy]) {
--bar-colour: white; --bar-colour: var(--zen-primary-color);
--bar-pcent: 10%; --bar-pcent: 15%;
} }
&:has(.tabbrowser-tab[selected][busy][pendingicon]) { &:has(.tabbrowser-tab[selected][busy][pendingicon]) {
--bar-colour: white; --bar-colour: var(--zen-primary-color);
--bar-pcent: 50%; --bar-pcent: 45%;
} }
&:has(.tabbrowser-tab[selected][busy][pendingicon][progress]) { &:has(.tabbrowser-tab[selected][busy][pendingicon][progress]) {
--bar-colour: white; --bar-colour: var(--zen-primary-color);
--bar-pcent: 80%; --bar-pcent: 85%;
} }
&:has(.tabbrowser-tab[selected][busy][progress]) { &:has(.tabbrowser-tab[selected][busy][progress]) {
--bar-colour: white; --bar-colour: var(--zen-primary-color);
--bar-pcent: 100%; --bar-pcent: 95%;
} }
&:has(.tabbrowser-tab[selected][muted]:not([busy])) { &:has(.tabbrowser-tab[selected][muted]:not([busy])) {
--bar-colour: orangered; --bar-colour: orangered;
--bar-pcent: 100%; --bar-pcent: 100%;
}
&:has(.tabbrowser-tab[selected]:not([muted]):not([busy])) { .browserSidebarContainer.deck-selected::before {
--bar-colour: transparent; border-radius: 0;
--bar-pcent: 0%; }
} }
} }
} }