make some buttons trigger on mouse down to feel faster

This commit is contained in:
end-4
2025-10-12 16:30:41 +02:00
parent edde61a46c
commit 36b33ba4f1
18 changed files with 35 additions and 34 deletions
@@ -83,7 +83,7 @@ Rectangle {
Layout.margins: 10
Layout.rightMargin: 0
forceCircle: true
onClicked: {
downAction: () => {
root.setCollapsed(false)
}
contentItem: MaterialSymbol {
@@ -146,7 +146,7 @@ Rectangle {
toggled: root.selectedTab == index
buttonText: modelData.name
buttonIcon: modelData.icon
onClicked: {
onPressed: {
root.selectedTab = index
Persistent.states.sidebar.bottomGroup.tab = index
}
@@ -158,7 +158,7 @@ Rectangle {
anchors.left: parent.left
anchors.top: parent.top
forceCircle: true
onClicked: {
downAction: () => {
root.setCollapsed(true)
}
contentItem: MaterialSymbol {
@@ -50,7 +50,7 @@ Item {
clip: true
buttonText: `${monthShift != 0 ? "• " : ""}${viewingDate.toLocaleDateString(Qt.locale(), "MMMM yyyy")}`
tooltipText: (monthShift === 0) ? "" : Translation.tr("Jump to current month")
onClicked: {
downAction: () => {
monthShift = 0;
}
}
@@ -60,7 +60,7 @@ Item {
}
CalendarHeaderButton {
forceCircle: true
onClicked: {
downAction: () => {
monthShift--;
}
contentItem: MaterialSymbol {
@@ -72,7 +72,7 @@ Item {
}
CalendarHeaderButton {
forceCircle: true
onClicked: {
downAction: () => {
monthShift++;
}
contentItem: MaterialSymbol {
@@ -109,12 +109,12 @@ Item {
AudioDeviceSelectorButton {
Layout.fillWidth: true
input: false
onClicked: root.showDeviceSelectorDialog(input)
downAction: () => root.showDeviceSelectorDialog(input)
}
AudioDeviceSelectorButton {
Layout.fillWidth: true
input: true
onClicked: root.showDeviceSelectorDialog(input)
downAction: () => root.showDeviceSelectorDialog(input)
}
}
}