add right click clear
This commit is contained in:
@@ -122,6 +122,7 @@ Item {
|
||||
|
||||
property bool setInitialPoint: false
|
||||
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
enabled: root.visibilities.isDrawing
|
||||
|
||||
onActiveChanged: {
|
||||
@@ -134,6 +135,11 @@ Item {
|
||||
}
|
||||
}
|
||||
onPointChanged: {
|
||||
if (point.pressedButtons & Qt.RightButton) {
|
||||
root.drawing.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
const x = point.position.x;
|
||||
const y = point.position.y;
|
||||
const origX = point.pressPosition.x;
|
||||
|
||||
@@ -24,7 +24,7 @@ Item {
|
||||
for (let i = 0; i < count; i++)
|
||||
height += (list.itemAtIndex(i) as NotifWrapper)?.nonAnimHeight ?? 0;
|
||||
|
||||
if (panels.popouts.hasCurrent && (panels.popouts.currentCenter + (panels.popouts.current?.width / 2)) > panels.notifications.x || visibilities.dashboard || visibilities.sidebar)
|
||||
if (panels.popouts.hasCurrent && (panels.popouts.currentCenter + (panels.popouts.current?.width / 2)) > panels.notifications.x || visibilities.dashboard)
|
||||
return 0;
|
||||
|
||||
if (visibilities.osd) {
|
||||
|
||||
@@ -97,8 +97,6 @@ CustomRect {
|
||||
|
||||
Behavior on implicitHeight {
|
||||
Anim {
|
||||
duration: MaterialEasing.expressiveEffectsTime
|
||||
easing.bezierCurve: MaterialEasing.expressiveEffects
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
OS="arch"
|
||||
if [[ $(ls ./tmp) ]]; then
|
||||
exec mkdir ./tmp
|
||||
fi
|
||||
|
||||
cd ./tmp
|
||||
|
||||
main() {
|
||||
local OPTARG OPTIND opt
|
||||
while getopts "arch:nix:" opt; do
|
||||
case "$opt" in
|
||||
arch) OS=$OPTARG ;;
|
||||
nix) OS=$OPTARG ;;
|
||||
*) fatal 'bad option' ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ $OS = "arch" ]]; then
|
||||
exec yay -Sy
|
||||
elif [[ $OS = "nix" ]]; then
|
||||
exec nixos-rebuild build --flake $HOME/Gits/NixOS/#nixos
|
||||
PKGS=$(exec nix store diff-closures /run/current-system ./result)
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user