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
|
|
@ -23,13 +23,13 @@ Variants {
|
|||
margins.left: Config.cfg.bar.floating ? 10 : 0
|
||||
margins.right: Config.cfg.bar.floating ? 10 : 0
|
||||
Rectangle {
|
||||
color: Colors.barBg
|
||||
color: Colors.c.base00
|
||||
radius: Config.cfg.bar.floating ? Config.cfg.appearance.rounding : 0
|
||||
anchors.fill: parent
|
||||
implicitHeight: parent.height
|
||||
anchors.centerIn: parent
|
||||
RowLayout {
|
||||
anchors.leftMargin: 10
|
||||
anchors.leftMargin: 4
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
Ws {
|
||||
|
|
@ -47,45 +47,26 @@ Variants {
|
|||
}
|
||||
}
|
||||
RowLayout {
|
||||
anchors.rightMargin: 10
|
||||
anchors.rightMargin: 4
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
Mpris {
|
||||
id: mpris
|
||||
}
|
||||
StyledText {
|
||||
text: "|"
|
||||
visible: mpris.visible
|
||||
}
|
||||
Bat {
|
||||
id: bat
|
||||
}
|
||||
StyledText {
|
||||
text: "|"
|
||||
visible: bat.visible
|
||||
}
|
||||
Tray {
|
||||
id: tray
|
||||
}
|
||||
StyledText {
|
||||
text: "|"
|
||||
visible: tray.visible
|
||||
}
|
||||
WallPickerButton {
|
||||
id: wpButton
|
||||
barScreen: root.modelData
|
||||
}
|
||||
StyledText {
|
||||
text: "|"
|
||||
}
|
||||
|
||||
Pw {
|
||||
id: pw
|
||||
barScreen: root.modelData
|
||||
}
|
||||
StyledText {
|
||||
text: "|"
|
||||
}
|
||||
Netstatus {
|
||||
id: net
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ import qs.modules.applets
|
|||
import qs.settings
|
||||
|
||||
BarComponent {
|
||||
implicitWidth: text.width
|
||||
implicitWidth: 16
|
||||
required property ShellScreen barScreen
|
||||
StyledText {
|
||||
StyledIcon {
|
||||
id: text
|
||||
anchors.centerIn: parent
|
||||
text: "temp!!!"
|
||||
iconName: "games-config-theme"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
MouseArea {
|
||||
id: clickHandler
|
||||
|
|
|
|||
|
|
@ -5,11 +5,10 @@ import QtQuick.Layouts
|
|||
|
||||
BarComponent {
|
||||
id: root
|
||||
implicitWidth: networkLayout.implicitWidth
|
||||
implicitWidth: networkLayout.implicitWidth + 16
|
||||
RowLayout {
|
||||
id: networkLayout
|
||||
anchors.centerIn: root
|
||||
anchors.fill: root
|
||||
spacing: 5
|
||||
StyledIcon {
|
||||
iconName: Network.getWifiIcon()
|
||||
|
|
|
|||
|
|
@ -9,10 +9,11 @@ import qs.settings
|
|||
BarComponent {
|
||||
id: root
|
||||
required property ShellScreen barScreen
|
||||
implicitWidth: wsLayout.implicitWidth
|
||||
implicitWidth: 10 * (16 + 4)
|
||||
RowLayout {
|
||||
id: wsLayout
|
||||
anchors.centerIn: parent
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
spacing: 4
|
||||
Repeater {
|
||||
model: WindowManager.screenProjection(root.barScreen).windowsets
|
||||
|
|
@ -21,7 +22,7 @@ BarComponent {
|
|||
required property var modelData
|
||||
implicitWidth: 16
|
||||
implicitHeight: implicitWidth
|
||||
color: modelData.active ? Colors.accent : 'transparent'
|
||||
color: modelData.active ? Colors.c.base0D : 'transparent'
|
||||
MouseArea {
|
||||
id: clickHandler
|
||||
anchors.fill: parent
|
||||
|
|
@ -33,7 +34,7 @@ BarComponent {
|
|||
id: wsText
|
||||
anchors.centerIn: parent
|
||||
text: parent.modelData.name
|
||||
color: parent.modelData.shouldDisplay ? parent.modelData.active ? Colors.base00 : Colors.base05 : Colors.base03
|
||||
color: parent.modelData.shouldDisplay ? parent.modelData.active ? Colors.c.base00 : Colors.c.base05 : Colors.c.base03
|
||||
font.bold: parent.modelData.active
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue