add functioning theme picker and overhaul theming system
This commit is contained in:
parent
20b8012b78
commit
64a269816d
680 changed files with 6166 additions and 5969 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
pragma ComponentBehavior: Bound
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
|
@ -13,11 +13,11 @@ Rectangle {
|
|||
id: child
|
||||
implicitWidth: 800
|
||||
implicitHeight: 600
|
||||
color: Colors.base01
|
||||
color: Colors.c.base01
|
||||
radius: Config.cfg.appearance.rounding
|
||||
MouseArea {
|
||||
acceptedButtons: Qt.AllButtons
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.AllButtons
|
||||
anchors.fill: parent
|
||||
}
|
||||
Process {
|
||||
id: getSchemes
|
||||
|
|
@ -34,13 +34,13 @@ Rectangle {
|
|||
anchors.fill: parent
|
||||
anchors.centerIn: parent
|
||||
anchors.margins: 10
|
||||
radius: Config.cfg.appearance.rounding
|
||||
color: Colors.base01
|
||||
radius: Config.cfg.appearance.rounding
|
||||
color: Colors.c.base01
|
||||
clip: true
|
||||
RowLayout {
|
||||
id: contentLayout
|
||||
anchors.fill: parent
|
||||
anchors.margins: 30
|
||||
anchors.margins: 30
|
||||
ListView {
|
||||
id: schemeList
|
||||
spacing: 5
|
||||
|
|
@ -50,7 +50,7 @@ Rectangle {
|
|||
delegate: Rectangle {
|
||||
id: container
|
||||
required property string modelData
|
||||
color: Colors.base02
|
||||
color: Colors.c.base02
|
||||
height: 30
|
||||
radius: Config.cfg.appearance.rounding
|
||||
implicitWidth: 300
|
||||
|
|
@ -67,6 +67,7 @@ Rectangle {
|
|||
onClicked: {
|
||||
setTheme.themeName = modelData;
|
||||
setTheme.running = true;
|
||||
Config.cfg.appearance.currentTheme = modelData;
|
||||
}
|
||||
Process {
|
||||
id: setTheme
|
||||
|
|
@ -78,15 +79,7 @@ Rectangle {
|
|||
}
|
||||
StyledText {
|
||||
id: currentScheme
|
||||
text: ""
|
||||
Process {
|
||||
id: getCurrentScheme
|
||||
command: ["tinty", "current"]
|
||||
running: true
|
||||
stdout: StdioCollector {
|
||||
onStreamFinished: currentScheme.text = text
|
||||
}
|
||||
}
|
||||
text: Config.cfg.appearance.currentTheme
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import QtQuick.Controls
|
|||
|
||||
Rectangle {
|
||||
id: root
|
||||
color: Colors.barBg
|
||||
color: Colors.c.base00
|
||||
radius: Config.cfg.appearance.rounding
|
||||
implicitWidth: audioLayout.implicitWidth + 10
|
||||
implicitHeight: audioLayout.implicitHeight + 10
|
||||
|
|
@ -33,7 +33,7 @@ Rectangle {
|
|||
delegate: Rectangle {
|
||||
id: audioDelContainer
|
||||
Layout.fillWidth: true
|
||||
color: Colors.moduleBg
|
||||
color: Colors.c.base02
|
||||
radius: Config.cfg.appearance.rounding / 1.5
|
||||
required property var modelData
|
||||
implicitHeight: audioRow.implicitHeight + 8
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Rectangle {
|
|||
Rectangle {
|
||||
id: container
|
||||
anchors.fill: parent
|
||||
color: Colors.base02
|
||||
color: Colors.c.base00
|
||||
radius: Config.cfg.appearance.rounding
|
||||
GridView {
|
||||
id: wallpaperLayout
|
||||
|
|
|
|||
Loading…
Reference in a new issue