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:
parent
67ddd649f9
commit
40a762cead
2 changed files with 0 additions and 39 deletions
|
@ -123,27 +123,4 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,8 +83,6 @@ QQC2.Control {
|
|||
hoverEnabled: true
|
||||
|
||||
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
|
||||
|
@ -126,13 +124,6 @@ QQC2.Control {
|
|||
description: Qt.formatDate(modelData.date)
|
||||
|
||||
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
|
||||
onClicked: applicationWindow().openUrl(modelData.url)
|
||||
onHoveredChanged: {
|
||||
if (hovered) {
|
||||
applicationWindow().hoverLinkIndicator.text = modelData.url;
|
||||
} else {
|
||||
applicationWindow().hoverLinkIndicator.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue