mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Refactor border-radius values for consistency across themes and components
This commit is contained in:
@@ -105,7 +105,7 @@ pref('zen.rice.share.notice.accepted', false);
|
||||
pref('zen.theme.border-radius', 12); // In pixels
|
||||
#else
|
||||
#ifdef XP_WIN
|
||||
pref('zen.theme.border-radius', 10); // In pixels
|
||||
pref('zen.theme.border-radius', 12); // In pixels
|
||||
#else
|
||||
pref('zen.theme.border-radius', 8); // In pixels
|
||||
#endif
|
||||
|
@@ -127,8 +127,8 @@
|
||||
}
|
||||
|
||||
#navigator-toolbox {
|
||||
--border-radius-medium: 10px;
|
||||
--tab-border-radius: 10px;
|
||||
--border-radius-medium: 12px;
|
||||
--tab-border-radius: 8px;
|
||||
--zen-toolbox-min-width: 1px;
|
||||
|
||||
--tab-hover-background-color: color-mix(in srgb, var(--toolbarbutton-hover-background) 50%, transparent 50%);
|
||||
|
@@ -63,7 +63,9 @@
|
||||
& {
|
||||
opacity: 0.4;
|
||||
filter: grayscale(1);
|
||||
transition: opacity 0.2s, filter 0.2s;
|
||||
transition:
|
||||
opacity 0.2s,
|
||||
filter 0.2s;
|
||||
}
|
||||
|
||||
&[active='true'] {
|
||||
|
@@ -36,7 +36,10 @@ var gZenCompactModeManager = {
|
||||
|
||||
get preference() {
|
||||
if (!document.documentElement.hasAttribute('zen-compact-mode')) {
|
||||
document.documentElement.setAttribute('zen-compact-mode', lazyCompactMode.mainAppWrapper.getAttribute('zen-compact-mode'));
|
||||
document.documentElement.setAttribute(
|
||||
'zen-compact-mode',
|
||||
lazyCompactMode.mainAppWrapper.getAttribute('zen-compact-mode')
|
||||
);
|
||||
}
|
||||
return lazyCompactMode.mainAppWrapper.getAttribute('zen-compact-mode') === 'true';
|
||||
},
|
||||
|
@@ -1025,7 +1025,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
if (!this.workspaceEnabled) {
|
||||
return;
|
||||
}
|
||||
let target = event.target.closest('#zen-current-workspace-indicator') || document.getElementById('zen-workspace-select-button');
|
||||
let target =
|
||||
event.target.closest('#zen-current-workspace-indicator') || document.getElementById('zen-workspace-select-button');
|
||||
let panel = document.getElementById('PanelUI-zen-workspaces');
|
||||
await this._propagateWorkspaceData({
|
||||
ignoreStrip: true,
|
||||
|
Reference in New Issue
Block a user