1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00

Remove hover link indicator

This commit is contained in:
Joshua Goins 2023-12-17 12:55:36 -05:00
parent 67ddd649f9
commit 40a762cead
2 changed files with 0 additions and 39 deletions

View file

@ -123,27 +123,4 @@ Kirigami.ApplicationWindow {
} }
Component.onCompleted: checkSetup() Component.onCompleted: checkSetup()
property Item hoverLinkIndicator: QQC2.Control {
parent: appWindow.overlay.parent
property alias text: linkText.text
opacity: text.length > 0 ? 1 : 0
Behavior on opacity {
OpacityAnimator {
duration: Kirigami.Units.longDuration
}
}
z: 999990
x: 0
y: parent.height - implicitHeight
contentItem: QQC2.Label {
id: linkText
}
Kirigami.Theme.colorSet: Kirigami.Theme.View
background: Rectangle {
color: Kirigami.Theme.backgroundColor
}
}
} }

View file

@ -83,8 +83,6 @@ QQC2.Control {
hoverEnabled: true hoverEnabled: true
onClicked: applicationWindow().openUrl(LauncherCore.headline.banners[page.currentBannerIndex].link) onClicked: applicationWindow().openUrl(LauncherCore.headline.banners[page.currentBannerIndex].link)
onEntered: applicationWindow().hoverLinkIndicator.text = LauncherCore.headline.banners[page.currentBannerIndex].link
onExited: applicationWindow().hoverLinkIndicator.text = ""
} }
layer.enabled: true layer.enabled: true
@ -126,13 +124,6 @@ QQC2.Control {
description: Qt.formatDate(modelData.date) description: Qt.formatDate(modelData.date)
onClicked: applicationWindow().openUrl(modelData.url) onClicked: applicationWindow().openUrl(modelData.url)
onHoveredChanged: {
if (hovered) {
applicationWindow().hoverLinkIndicator.text = modelData.url;
} else {
applicationWindow().hoverLinkIndicator.text = "";
}
}
} }
} }
@ -167,13 +158,6 @@ QQC2.Control {
hoverEnabled: true hoverEnabled: true
onClicked: applicationWindow().openUrl(modelData.url) onClicked: applicationWindow().openUrl(modelData.url)
onHoveredChanged: {
if (hovered) {
applicationWindow().hoverLinkIndicator.text = modelData.url;
} else {
applicationWindow().hoverLinkIndicator.text = "";
}
}
} }
} }