add theme switcher
This commit is contained in:
parent
143889683b
commit
d69ec48728
9 changed files with 126 additions and 68 deletions
|
|
@ -3,19 +3,25 @@ import qs.widgets
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import qs.modules.Services
|
||||
import qs.modules.applets
|
||||
import qs.settings
|
||||
|
||||
BarComponent {
|
||||
implicitWidth: text.width
|
||||
required property ShellScreen barScreen
|
||||
StyledText {
|
||||
id: text
|
||||
anchors.centerIn: parent
|
||||
text: "temp!!!"
|
||||
}
|
||||
MouseArea {
|
||||
id: clickHandler
|
||||
acceptedButtons: Qt.LeftButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
anchors.fill: parent
|
||||
onClicked: { WidgetTracker.toggle("colorschemes", parent.barScreen) }
|
||||
id: clickHandler
|
||||
acceptedButtons: Qt.LeftButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
Config.cfg.themeSwitcherVisible = true
|
||||
}
|
||||
}
|
||||
ThemeSwitcher {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue