feat: complete quickshell redesign
This commit is contained in:
1 parent
1eb0820083
commit
0ff727898a
25 files changed
+1410
-401
No files matched your search
@@ -0,0 +1,36 @@
|
||||
import QtQuick
|
||||
import "."
|
||||
|
||||
// 18x18 square checkbox with a 10x10 solid core when checked, per
|
||||
// DESIGN.md's Checkboxes spec.
|
||||
Item {
|
||||
id: box
|
||||
|
||||
// Controlled component - see ToggleSwitch.qml.
|
||||
property bool checked: false
|
||||
signal toggled()
|
||||
|
||||
implicitWidth: 18
|
||||
implicitHeight: 18
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Theme.colors.surface
|
||||
border.width: Theme.geometry.borderWidth
|
||||
border.color: Theme.colors.crust
|
||||
|
||||
Rectangle {
|
||||
width: 10
|
||||
height: 10
|
||||
anchors.centerIn: parent
|
||||
color: Theme.colors.primary
|
||||
visible: box.checked
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: box.toggled()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user