update settings schema

This commit is contained in:
kossLAN 2025-06-10 21:46:33 -04:00
parent b55f89a00d
commit 9aa51c86da
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
25 changed files with 342 additions and 103 deletions

View file

@ -5,7 +5,7 @@ import ".."
Text {
id: windowText
text: ToplevelManager.activeToplevel?.title ?? ""
color: ShellSettings.settings.colors["inverse_surface"]
color: ShellSettings.colors["inverse_surface"]
font.pointSize: 11
visible: text !== ""
elide: Text.ElideRight

View file

@ -11,7 +11,7 @@ import ".."
PanelWindow {
id: root
color: ShellSettings.settings.colors["surface"]
color: ShellSettings.colors["surface"]
implicitHeight: ShellSettings.settings.barHeight
property alias popup: popupWindow
@ -75,6 +75,19 @@ PanelWindow {
// bar: root
// }
// Text {
// text: "home"
// color: "white"
// font.family: "Material Symbols Rounded"
// renderType: Text.NativeRendering
// textFormat: Text.PlainText
// font.pointSize: 12
//
// font.variableAxes: {
// "FILL": 1
// }
// }
BatteryIndicator {
id: batteryIndicator
popup: root.popup
@ -89,7 +102,7 @@ PanelWindow {
Clock {
id: clock
color: ShellSettings.settings.colors["inverse_surface"]
color: ShellSettings.colors["inverse_surface"]
}
}
}

View file

@ -33,15 +33,15 @@ RowLayout {
}
color: {
let value = Qt.color(ShellSettings.settings.colors["secondary"]).darker(2);
let value = Qt.color(ShellSettings.colors["secondary"]).darker(2);
if (!modelData?.id || !Hyprland.focusedMonitor?.activeWorkspace?.id)
return value;
if (workspaceButton.containsMouse) {
value = ShellSettings.settings.colors["on_primary"];
value = ShellSettings.colors["on_primary"];
} else if (Hyprland.focusedMonitor.activeWorkspace.id == modelData.id) {
value = ShellSettings.settings.colors["primary"];
value = ShellSettings.colors["primary"];
}
return value;

View file

@ -59,7 +59,7 @@ Item {
Rectangle {
id: highlight
color: batteryButton.containsMouse ? ShellSettings.settings.colors["primary"] : "transparent"
color: batteryButton.containsMouse ? ShellSettings.colors["primary"] : "transparent"
// radius: width / 2
radius: 10
@ -96,7 +96,7 @@ Item {
Rectangle {
id: batteryBackground
color: Qt.color(ShellSettings.settings.colors["surface"]).lighter(4)
color: Qt.color(ShellSettings.colors["surface"]).lighter(4)
opacity: 0.75
anchors {
fill: parent
@ -107,7 +107,7 @@ Item {
Rectangle {
id: batteryPercentage
width: (parent.width - 4) * UPower.displayDevice.percentage
color: ShellSettings.settings.colors["inverse_surface"]
color: ShellSettings.colors["inverse_surface"]
anchors {
left: batteryBackground.left

View file

@ -48,7 +48,7 @@ PopupWindow {
// Add drop shadow effect
// Rectangle {
// id: shadowSource
// color: ShellSettings.settings.colors["surface"]
// color: ShellSettings.colors["surface"]
// radius: 8
// opacity: container.opacity
// width: container.width
@ -97,7 +97,7 @@ PopupWindow {
Rectangle {
id: container
color: ShellSettings.settings.colors["surface"]
color: ShellSettings.colors["surface"]
radius: 18
opacity: 0
width: parent.width - 10
@ -133,7 +133,7 @@ PopupWindow {
//
// Rectangle {
// radius: 20
// color: ShellSettings.settings.colors["surface_container_high"]
// color: ShellSettings.colors["surface_container_high"]
// Layout.fillWidth: true
// Layout.fillHeight: true
//
@ -153,7 +153,7 @@ PopupWindow {
//
// Text {
// text: "kossLAN"
// color: ShellSettings.settings.colors["inverse_surface"]
// color: ShellSettings.colors["inverse_surface"]
// font.pointSize: 12
// verticalAlignment: Text.AlignVCenter
// Layout.fillWidth: true
@ -165,7 +165,7 @@ PopupWindow {
//
// Rectangle {
// radius: 20
// color: ShellSettings.settings.colors["surface_container_high"]
// color: ShellSettings.colors["surface_container_high"]
// Layout.preferredWidth: powerButtons.implicitWidth + 10
// Layout.fillHeight: true
//
@ -195,7 +195,7 @@ PopupWindow {
//
// Rectangle {
// radius: 20
// color: ShellSettings.settings.colors["surface_bright"]
// color: ShellSettings.colors["surface_bright"]
// Layout.preferredWidth: 2
// Layout.fillHeight: true
// Layout.topMargin: 4
@ -217,7 +217,7 @@ PopupWindow {
Layout.fillWidth: true
Rectangle {
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
radius: 12
Layout.fillWidth: true
Layout.preferredHeight: 30
@ -232,7 +232,7 @@ PopupWindow {
Repeater {
model: [1, 2, 3, 4, 5]
delegate: Rectangle {
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
radius: width / 2
Layout.preferredWidth: 45
Layout.preferredHeight: 45
@ -250,14 +250,14 @@ PopupWindow {
Layout.preferredHeight: 55
Rectangle {
color: ShellSettings.settings.colors["primary"]
color: ShellSettings.colors["primary"]
radius: width / 2
Layout.fillWidth: true
Layout.fillHeight: true
}
Rectangle {
color: ShellSettings.settings.colors["primary"]
color: ShellSettings.colors["primary"]
radius: width / 2
Layout.fillWidth: true
Layout.fillHeight: true
@ -270,14 +270,14 @@ PopupWindow {
Layout.preferredHeight: 55
Rectangle {
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
radius: width / 2
Layout.fillWidth: true
Layout.fillHeight: true
}
Rectangle {
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
radius: width / 2
Layout.fillWidth: true
Layout.fillHeight: true

View file

@ -9,7 +9,7 @@ Rectangle {
id: root
required property PwNode node
required property var isSink
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
PwObjectTracker {
id: defaultSourceTracker
@ -27,7 +27,7 @@ Rectangle {
spacing: 10
Text {
color: ShellSettings.settings.colors["inverse_surface"]
color: ShellSettings.colors["inverse_surface"]
text: {
// Taken from quickshell-examples

View file

@ -42,7 +42,7 @@ Rectangle {
anchors.fill: parent
Rectangle {
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
Widgets.IconButton {
id: arrowButton
@ -80,7 +80,7 @@ Rectangle {
Rectangle {
id: divider
color: ShellSettings.settings.colors["surface_bright"]
color: ShellSettings.colors["surface_bright"]
height: 2
width: parent.width
anchors.top: headerSection.bottom
@ -140,7 +140,7 @@ Rectangle {
height: root.baseHeight
Rectangle {
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
IconImage {
implicitSize: 32

View file

@ -19,7 +19,7 @@ Item {
}
Rectangle {
color: mouseArea.containsMouse ? ShellSettings.settings.colors["primary"] : "transparent"
color: mouseArea.containsMouse ? ShellSettings.colors["primary"] : "transparent"
radius: 5
anchors {
@ -61,7 +61,7 @@ Item {
}
Rectangle {
color: mouseArea.containsMouse ? ShellSettings.settings.colors["inverse_primary"] : ShellSettings.settings.colors["inverse_surface"]
color: mouseArea.containsMouse ? ShellSettings.colors["inverse_primary"] : ShellSettings.colors["inverse_surface"]
anchors.fill: parent
}
}

View file

@ -102,7 +102,7 @@ PopupWindow {
WrapperRectangle {
id: popupContainer
color: ShellSettings.settings.colors["surface"]
color: ShellSettings.colors["surface"]
radius: 12
margin: 8
clip: true

View file

@ -77,7 +77,7 @@ RowLayout {
Rectangle {
id: trayContainer
color: trayButton.containsMouse ? ShellSettings.settings.colors["primary"] : "transparent"
color: trayButton.containsMouse ? ShellSettings.colors["primary"] : "transparent"
radius: width / 2
implicitHeight: parent.height - 2
implicitWidth: parent.height - 2

View file

@ -31,7 +31,7 @@ ColumnLayout {
return "transparent";
if (entryArea.containsMouse)
return ShellSettings.settings.colors["primary"];
return ShellSettings.colors["primary"];
return "transparent";
}
@ -92,13 +92,13 @@ ColumnLayout {
text: root.menuData?.text ?? ""
verticalAlignment: Text.AlignVCenter
color: {
let color = Qt.color(ShellSettings.settings.colors["inverse_surface"]);
let color = Qt.color(ShellSettings.colors["inverse_surface"]);
if (!root.menuData?.enabled)
return color.darker(2);
if (entryArea.containsMouse)
return Qt.color(ShellSettings.settings.colors["inverse_primary"]);
return Qt.color(ShellSettings.colors["inverse_primary"]);
return color;
}
@ -141,7 +141,7 @@ ColumnLayout {
WrapperRectangle {
id: subTrayMenu
color: ShellSettings.settings.colors["surface_container"]
color: ShellSettings.colors["surface_container"]
radius: 8
visible: false
Layout.fillWidth: true

View file

@ -12,7 +12,7 @@ ColumnLayout {
Rectangle {
visible: (root.modelData?.isSeparator ?? false)
color: ShellSettings.settings.colors["surface_container_high"]
color: ShellSettings.colors["surface_container_high"]
Layout.fillWidth: true
Layout.preferredHeight: 2
Layout.leftMargin: 8