implemented power menu
This commit is contained in:
24
launcher/PowermenuButton.qml
Normal file
24
launcher/PowermenuButton.qml
Normal file
@@ -0,0 +1,24 @@
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
|
||||
Rectangle {
|
||||
implicitWidth: 100
|
||||
implicitHeight: 50
|
||||
|
||||
property bool active: false
|
||||
property string icon: "?"
|
||||
|
||||
color: active
|
||||
? "#5b6078" // Hover/focus color
|
||||
: "#494d64" // Normal color
|
||||
radius: 12
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
|
||||
text: parent.icon
|
||||
|
||||
font.pointSize: 28
|
||||
color: "#cad3f5"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user