dotfiles/sddm/everforest/Components/RebootButton.qml
nicolas 3718df1096
🎉 Create dotfiles repo
Initial dotfiles commit
2025-10-16 20:30:52 -05:00

41 lines
831 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
Item {
implicitHeight: rebootButton.height
implicitWidth: rebootButton.width
Button {
id: rebootButton
height: inputHeight
width: inputHeight
hoverEnabled: true
icon {
source: Qt.resolvedUrl("../icons/reboot.svg")
height: height
width: width
color: "#181926"
}
background: Rectangle {
id: rebootButtonBackground
radius: 3
color: "#ED8796"
}
states: [
State {
name: "hovered"
when: rebootButton.hovered
PropertyChanges {
target: rebootButtonBackground
color: "#F4DBD6"
}
}
]
transitions: Transition {
PropertyAnimation {
properties: "color"
duration: 300
}
}
onClicked: sddm.reboot()
}
}