forked from Shinonome/dots-hyprland
26 lines
670 B
QML
26 lines
670 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import "root:/modules/common/"
|
|
import "root:/modules/common/widgets/"
|
|
|
|
RippleButton {
|
|
id: root
|
|
Layout.alignment: Qt.AlignLeft
|
|
implicitWidth: 40
|
|
implicitHeight: 40
|
|
Layout.leftMargin: 5
|
|
onClicked: {
|
|
parent.expanded = !parent.expanded;
|
|
}
|
|
buttonRadius: Appearance.rounding.full
|
|
contentItem: MaterialSymbol {
|
|
id: icon
|
|
anchors.centerIn: parent
|
|
horizontalAlignment: Text.AlignHCenter
|
|
iconSize: Appearance.font.pixelSize.hugeass
|
|
color: Appearance.colors.colOnLayer1
|
|
text: root.parent.expanded ? "menu_open" : "menu"
|
|
}
|
|
}
|