mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
41 lines
1007 B
QML
41 lines
1007 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import qs.modules.common
|
|
import qs.modules.common.functions
|
|
import qs.modules.waffle.looks
|
|
|
|
// It should be perfectly fine to use just a Column here, but somehow
|
|
// using ColumnLayout prevents weird opening anim stutter
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
property alias name: toggleNameText.text
|
|
|
|
Rectangle {
|
|
Layout.fillWidth: true
|
|
implicitWidth: 96
|
|
implicitHeight: 48
|
|
color: "transparent"
|
|
border.width: 1
|
|
border.color: Looks.colors.bg0Border // ???
|
|
radius: Looks.radius.medium
|
|
}
|
|
|
|
Item {
|
|
implicitHeight: 36
|
|
Layout.fillWidth: true
|
|
WText {
|
|
id: toggleNameText
|
|
anchors {
|
|
verticalCenter: parent.verticalCenter
|
|
left: parent.left
|
|
right: parent.right
|
|
}
|
|
horizontalAlignment: Text.AlignHCenter
|
|
elide: Text.ElideRight
|
|
text: "Toggle"
|
|
}
|
|
}
|
|
}
|