Revert Applauncher reload button
This commit is contained in:
parent
df9f886aa6
commit
3e4c9095d7
1 changed files with 54 additions and 101 deletions
|
|
@ -173,11 +173,6 @@ PanelWithOverlay {
|
||||||
anchors.margins: 32
|
anchors.margins: 32
|
||||||
spacing: 18
|
spacing: 18
|
||||||
|
|
||||||
// Search Bar Row
|
|
||||||
RowLayout {
|
|
||||||
spacing: 12
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
// Search Bar
|
// Search Bar
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: searchBar
|
id: searchBar
|
||||||
|
|
@ -185,7 +180,6 @@ PanelWithOverlay {
|
||||||
radius: 22
|
radius: 22
|
||||||
height: 48
|
height: 48
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredWidth: 320 // Made the search bar narrower
|
|
||||||
border.color: searchField.activeFocus ? Theme.accentPrimary : Theme.outline
|
border.color: searchField.activeFocus ? Theme.accentPrimary : Theme.outline
|
||||||
border.width: searchField.activeFocus ? 2 : 1
|
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
|
// App List Card
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: Theme.surface
|
color: Theme.surface
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue