Skip to content

Commit

Permalink
Merge pull request #32 from MikeRatcliffe/enable-hover-state
Browse files Browse the repository at this point in the history
fix: Enable button hover state
  • Loading branch information
MikeRatcliffe authored Aug 25, 2024
2 parents d0ee209 + a596576 commit 8b4a9f2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/Tabs/Devices/ApplicationDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Kirigami.Card {

footer: Button {
id: action_button

hoverEnabled: true
icon.name: "uninstall"
text: qsTr("Uninstall For All Users")
onClicked: {
Expand Down
3 changes: 3 additions & 0 deletions content/Tabs/Devices/Device.qml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ RowLayout {

Button {
text: qsTr("Connect")

hoverEnabled: true
enabled: wireless_adress.text !== ""
onClicked: {
app.deviceManager.connectToWirelessDeviceQml(wireless_adress.text).then((connected) => {
Expand All @@ -202,6 +204,7 @@ RowLayout {
id: wireless_mode_button

text: qsTr("Enable Wireless Mode")
hoverEnabled: true
width: parent.width
ToolTip.visible: hovered
ToolTip.text: qsTr("adb tcpip 5555")
Expand Down
1 change: 1 addition & 0 deletions content/Tabs/Downloads/DownloadDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Kirigami.Card {
Button {
id: delete_button

hoverEnabled: true
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.margins: 10
Expand Down
2 changes: 2 additions & 0 deletions content/Tabs/Downloads/LocalDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Kirigami.Card {
Button {
id: install_button

hoverEnabled: true
anchors.left: thumbnail.right
anchors.bottom: parent.bottom
anchors.margins: 10
Expand All @@ -127,6 +128,7 @@ Kirigami.Card {
Button {
id: delete_button

hoverEnabled: true
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.margins: 10
Expand Down
2 changes: 2 additions & 0 deletions content/Tabs/Games/GameDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ Kirigami.Card {
id: magnet_button

icon.name: "kt-magnet"
hoverEnabled: true
onClicked: {
textEdit.text = app.vrp.getMagnetURI(releaseName);
textEdit.selectAll();
Expand All @@ -181,6 +182,7 @@ Kirigami.Card {
Button {
id: action_button

hoverEnabled: true
Layout.fillWidth: true
text: qsTr("Download")
onClicked: {
Expand Down
2 changes: 2 additions & 0 deletions content/Tabs/Users/UsersInstalledDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Kirigami.Card {

footer: Button {
id: action_button

hoverEnabled: true
icon.name: "delete"
text: qsTr("Remove from user")
onClicked: {
Expand Down
2 changes: 2 additions & 0 deletions content/Tabs/Users/UsersToAddDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Kirigami.Card {

footer: Button {
id: action_button

hoverEnabled: true
icon.name: "install"
text: qsTr("Add to User")
onClicked: {
Expand Down

0 comments on commit 8b4a9f2

Please sign in to comment.