feat: dashboard show on hover, media and weather tabs added
This commit is contained in:
@@ -46,10 +46,10 @@ Item {
|
||||
}
|
||||
|
||||
function syncFromPenColor() {
|
||||
if (!drawing.drawingState)
|
||||
if (!drawing.screenState)
|
||||
return;
|
||||
|
||||
const c = drawing.drawingState.penColor;
|
||||
const c = drawing.screenState.penColor;
|
||||
|
||||
if (c.hsvSaturation > 0) {
|
||||
currentHue = c.hsvHue;
|
||||
@@ -86,7 +86,7 @@ Item {
|
||||
|
||||
currentHue = relative / arcSweep;
|
||||
lastChromaticHue = currentHue;
|
||||
drawing.drawingState.penColor = Qt.hsva(currentHue, drawing.drawingState.penColor.hsvSaturation, drawing.drawingState.penColor.hsvValue, drawing.drawingState.penColor.a);
|
||||
drawing.screenState.penColor = Qt.hsva(currentHue, drawing.screenState.penColor.hsvSaturation, drawing.screenState.penColor.hsvValue, drawing.screenState.penColor.a);
|
||||
}
|
||||
|
||||
implicitHeight: 180
|
||||
@@ -112,7 +112,7 @@ Item {
|
||||
root.syncFromPenColor();
|
||||
}
|
||||
|
||||
target: root.drawing.drawingState
|
||||
target: root.drawing.screenState
|
||||
}
|
||||
|
||||
Canvas {
|
||||
@@ -152,7 +152,7 @@ Item {
|
||||
|
||||
CustomRect {
|
||||
anchors.centerIn: parent
|
||||
color: root.drawing?.drawingState.penColor
|
||||
color: root.drawing?.screenState.penColor
|
||||
implicitHeight: implicitWidth
|
||||
implicitWidth: canvas.height - root.handleSize - Tokens.padding.extraLarge * 2
|
||||
radius: Tokens.rounding.full
|
||||
|
||||
Reference in New Issue
Block a user