Skip to content

Commit 4c542e1

Browse files
committed
feat: Improved color rendering for folder icons, b=no-bug, c=folders
1 parent afe9e7a commit 4c542e1

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

src/zen/folders/zen-folders.css

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,18 @@ tab-group[split-view-group] .tab-group-line {
177177
zen-folder {
178178
display: flex;
179179
flex-direction: column;
180-
--zen-folder-behind-bgcolor: color-mix(
181-
in srgb,
182-
var(--zen-primary-color) 75%,
183-
light-dark(black, white)
180+
--zen-folder-behind-bgcolor: light-dark(
181+
color-mix(in srgb, var(--zen-primary-color) 85%, white),
182+
color-mix(in srgb, var(--zen-primary-color) 75%, white)
184183
);
185184
--zen-folder-front-bgcolor: light-dark(
186-
color-mix(in srgb, var(--zen-primary-color), white 75%),
187-
color-mix(in srgb, var(--zen-primary-color), black 40%)
185+
color-mix(in srgb, var(--zen-primary-color), white 70%),
186+
color-mix(in srgb, var(--zen-primary-color), black 20%)
187+
);
188+
--zen-folder-stroke: light-dark(
189+
color-mix(in srgb, var(--zen-primary-color) 70%, black),
190+
color-mix(in srgb, var(--zen-colors-primary) 20%, var(--toolbox-textcolor))
188191
);
189-
--zen-folder-stroke: color-mix(in srgb, var(--zen-colors-primary) 10%, var(--toolbox-textcolor));
190192

191193
-moz-window-dragging: no-drag;
192194

@@ -259,11 +261,15 @@ zen-folder {
259261
left: 2px;
260262
}
261263

262-
& svg image {
263-
fill-opacity: 0.9;
264-
-moz-context-properties: fill, fill-opacity;
265-
fill: var(--zen-folder-stroke);
266-
transform: translate(-180%, 10%);
264+
& svg {
265+
filter: contrast(150%);
266+
267+
& image {
268+
fill-opacity: 0.9;
269+
-moz-context-properties: fill, fill-opacity;
270+
fill: var(--zen-folder-stroke);
271+
transform: translate(-180%, 10%);
272+
}
267273
}
268274
}
269275

0 commit comments

Comments
 (0)