mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 01:19:59 +02:00
feat: Improved color choices for backgrounds and fixed opacity on tab titles, b=no-bug, c=common, tabs, workspaces
This commit is contained in:
parent
3da5eda339
commit
9e338aabbc
5 changed files with 13 additions and 16 deletions
|
@ -11,7 +11,7 @@
|
||||||
#navigator-toolbox {
|
#navigator-toolbox {
|
||||||
/* see issue #426 */
|
/* see issue #426 */
|
||||||
background: var(--zen-navigator-toolbox-background, transparent) !important;
|
background: var(--zen-navigator-toolbox-background, transparent) !important;
|
||||||
--inactive-titlebar-opacity: 1;
|
--inactive-titlebar-opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nav-bar,
|
#nav-bar,
|
||||||
|
|
|
@ -117,8 +117,8 @@
|
||||||
--zen-button-padding: 0.6rem 1.2rem;
|
--zen-button-padding: 0.6rem 1.2rem;
|
||||||
|
|
||||||
--zen-toolbar-element-bg: light-dark(
|
--zen-toolbar-element-bg: light-dark(
|
||||||
color-mix(in oklch, var(--toolbox-textcolor) 8%, rgba(255, 255, 255, 0.01)),
|
color-mix(in oklch, var(--toolbox-textcolor) 9%, transparent),
|
||||||
color-mix(in oklch, var(--toolbox-textcolor) 15%, transparent 85%)
|
color-mix(in oklch, var(--toolbox-textcolor) 15%, transparent)
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Toolbar */
|
/* Toolbar */
|
||||||
|
@ -139,6 +139,7 @@
|
||||||
) !important;
|
) !important;
|
||||||
|
|
||||||
--toolbar-color: light-dark(rgb(21, 20, 26, 0.7), rgb(251, 251, 254, 0.7)) !important;
|
--toolbar-color: light-dark(rgb(21, 20, 26, 0.7), rgb(251, 251, 254, 0.7)) !important;
|
||||||
|
--toolbox-textcolor-inactive: var(--toolbox-textcolor) !important;
|
||||||
|
|
||||||
/* Other colors */
|
/* Other colors */
|
||||||
--urlbar-box-bgcolor: var(--zen-urlbar-background) !important;
|
--urlbar-box-bgcolor: var(--zen-urlbar-background) !important;
|
||||||
|
|
|
@ -1298,11 +1298,14 @@
|
||||||
min-width: calc(100% + var(--zen-toolbox-padding) * 2);
|
min-width: calc(100% + var(--zen-toolbox-padding) * 2);
|
||||||
width: calc(100% + var(--zen-toolbox-padding) * 2);
|
width: calc(100% + var(--zen-toolbox-padding) * 2);
|
||||||
padding: 0 var(--zen-toolbox-padding);
|
padding: 0 var(--zen-toolbox-padding);
|
||||||
padding-top: 6px;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
|
&:not(:empty) {
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
&[hidden='true'] {
|
&[hidden='true'] {
|
||||||
--hidden-essentials-width: calc(var(--zen-sidebar-width) + var(--zen-toolbox-padding));
|
--hidden-essentials-width: calc(var(--zen-sidebar-width) + var(--zen-toolbox-padding));
|
||||||
max-width: var(
|
max-width: var(
|
||||||
|
|
|
@ -1451,16 +1451,9 @@
|
||||||
browser.document.documentElement.removeAttribute('zen-should-be-dark-mode');
|
browser.document.documentElement.removeAttribute('zen-should-be-dark-mode');
|
||||||
}
|
}
|
||||||
// Set `--toolbox-textcolor` to have a contrast with the primary color
|
// Set `--toolbox-textcolor` to have a contrast with the primary color
|
||||||
await gZenUIManager.motion.animate(
|
document.documentElement.style.setProperty(
|
||||||
browser.document.documentElement,
|
'--toolbox-textcolor',
|
||||||
{
|
isDarkMode ? 'rgba(255, 255, 255, 0.8)' : 'rgba(0, 0, 0, 0.8)'
|
||||||
'--toolbox-textcolor': isDarkMode
|
|
||||||
? 'rgba(255, 255, 255, 0.7)'
|
|
||||||
: 'rgba(23, 23, 23, 0.7)',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
duration: 0.05,
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
|
|
||||||
& toolbarbutton {
|
& toolbarbutton {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 28px;
|
width: 30px;
|
||||||
height: 28px;
|
height: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue