mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
feat: Make default brightness 50% for new colors, b=no-bug, c=workspaces
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user