1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 11:25:31 +02:00

feat: Make default brightness 50% for new colors, b=no-bug, c=workspaces

This commit is contained in:
mr. m 2025-07-01 00:29:35 +02:00
parent 0735388cb1
commit 0df0d16fa4
No known key found for this signature in database
GPG key ID: 928E01ED4C97749F

View file

@ -598,6 +598,7 @@
ID: id,
element: dot,
position: { x: relativePosition.x, y: relativePosition.y },
lightness: this.#currentLightness,
});
}
@ -840,9 +841,8 @@
const relativeY = pixelY - rect.top;
if (!clickedDot && this.dots.length < 1) {
this.spawnDot({ x: relativeX, y: relativeY }, this.dots.length === 0);
// Set brightness to 50%
this.#currentLightness = 50;
this.spawnDot({ x: relativeX, y: relativeY }, this.dots.length === 0);
this.updateCurrentWorkspace(true);
} else if (!clickedDot && existingPrimaryDot) {