non-freeze screenshot overlay semi-fixed
This commit is contained in:
+3
-10
@@ -159,6 +159,7 @@ MouseArea {
|
|||||||
overlay.visible = border.visible = false;
|
overlay.visible = border.visible = false;
|
||||||
screencopy.visible = false;
|
screencopy.visible = false;
|
||||||
screencopy.active = true;
|
screencopy.active = true;
|
||||||
|
saveTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,14 +226,6 @@ MouseArea {
|
|||||||
sourceComponent: ScreencopyView {
|
sourceComponent: ScreencopyView {
|
||||||
captureSource: root.screen
|
captureSource: root.screen
|
||||||
paintCursor: false
|
paintCursor: false
|
||||||
|
|
||||||
onHasContentChanged: {
|
|
||||||
if (hasContent) {
|
|
||||||
overlay.visible = border.visible = true;
|
|
||||||
if (!root.loader.freeze)
|
|
||||||
root.save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,7 +237,7 @@ MouseArea {
|
|||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
opacity: 0.3
|
opacity: 0.3
|
||||||
radius: root.realRounding
|
radius: root.realRounding
|
||||||
visible: false
|
visible: screencopy.item.hasContent || !root.loader.freeze
|
||||||
|
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
maskEnabled: true
|
maskEnabled: true
|
||||||
@@ -282,7 +275,7 @@ MouseArea {
|
|||||||
implicitHeight: selectionRect.implicitHeight + root.realBorderWidth * 2
|
implicitHeight: selectionRect.implicitHeight + root.realBorderWidth * 2
|
||||||
implicitWidth: selectionRect.implicitWidth + root.realBorderWidth * 2
|
implicitWidth: selectionRect.implicitWidth + root.realBorderWidth * 2
|
||||||
radius: root.realRounding > 0 ? root.realRounding + root.realBorderWidth : 0
|
radius: root.realRounding > 0 ? root.realRounding + root.realBorderWidth : 0
|
||||||
visible: false
|
visible: screencopy.item.hasContent || !root.loader.freeze
|
||||||
x: selectionRect.x - root.realBorderWidth
|
x: selectionRect.x - root.realBorderWidth
|
||||||
y: selectionRect.y - root.realBorderWidth
|
y: selectionRect.y - root.realBorderWidth
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user