mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-07 21:49:58 +02:00
feat: Make default brightness 50% for new colors, b=no-bug, c=workspaces
This commit is contained in:
parent
0735388cb1
commit
0df0d16fa4
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue