add primitive shit for theme switching
This commit is contained in:
parent
09932291d2
commit
143889683b
6 changed files with 111 additions and 20 deletions
|
|
@ -114,11 +114,24 @@ Variants {
|
|||
}
|
||||
}
|
||||
}
|
||||
ThemeSwitcher {
|
||||
z: 1
|
||||
id: colorschemes
|
||||
property bool shown: WidgetTracker.current === "colorschemes" && root.shown
|
||||
visible: shown
|
||||
focus: shown
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: Config.cfg.bar.floating ? Config.cfg.bar.height + 20 : Config.cfg.bar.height + 10
|
||||
anchors.margins: 20
|
||||
implicitHeight: 60
|
||||
}
|
||||
MouseArea {
|
||||
id: dismisser
|
||||
z: 0
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton
|
||||
acceptedButtons: Qt.AllButtons
|
||||
onClicked: WidgetTracker.close()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue