Revert Applauncher reload button

This commit is contained in:
Ly-sec 2025-07-25 16:46:33 +02:00
parent df9f886aa6
commit 3e4c9095d7

View file

@ -173,11 +173,6 @@ PanelWithOverlay {
anchors.margins: 32
spacing: 18
// Search Bar Row
RowLayout {
spacing: 12
Layout.fillWidth: true
// Search Bar
Rectangle {
id: searchBar
@ -185,7 +180,6 @@ PanelWithOverlay {
radius: 22
height: 48
Layout.fillWidth: true
Layout.preferredWidth: 320 // Made the search bar narrower
border.color: searchField.activeFocus ? Theme.accentPrimary : Theme.outline
border.width: searchField.activeFocus ? 2 : 1
@ -246,47 +240,6 @@ PanelWithOverlay {
}
}
// Added rectangle with onClick
Rectangle {
id: actionButton
width: 48
height: 48
radius: 20
color: mouseArea.containsPress ? Theme.accentPrimary : Theme.surfaceVariant
border.color: mouseArea.containsMouse ? Theme.accentPrimary : Theme.outline
border.width: 2
Text {
text: "refresh"
font.family: "Material Symbols Outlined"
font.pixelSize: Theme.fontSizeHeader
color: mouseArea.containsMouse ? Theme.accentPrimary : Theme.textPrimary
anchors.centerIn: parent
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: {
Quickshell.reload(true);
}
cursorShape: Qt.PointingHandCursor
}
Behavior on color {
ColorAnimation {
duration: 120
}
}
Behavior on border.color {
ColorAnimation {
duration: 120
}
}
}
}
// App List Card
Rectangle {
color: Theme.surface