refactor: wip refactor on color scheme, make screenshots suck less, etc.

This commit is contained in:
kossLAN 2025-10-06 12:36:40 -04:00
parent 0052b00904
commit 21969cf5a9
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
8 changed files with 214 additions and 49 deletions

View file

@ -62,7 +62,7 @@ Variants {
// Right side of bar
RowLayout {
spacing: 10
spacing: 5
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignRight
@ -81,10 +81,10 @@ Variants {
// Layout.bottomMargin: 2
// }
// PowerMenu {
// bar: root
// Layout.fillHeight: true
// }
PowerMenu {
bar: root
Layout.fillHeight: true
}
// Widgets.Separator {
// Layout.leftMargin: 5

View file

@ -1,6 +1,7 @@
pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import Qt5Compat.GraphicalEffects
import Quickshell.Widgets
import Quickshell.Services.UPower
@ -38,7 +39,7 @@ StyledMouseArea {
Rectangle {
id: batteryBackground
color: Qt.color(ShellSettings.colors["surface"]).lighter(4)
color: Qt.color(ShellSettings.colors.inactive_translucent).lighter(4)
opacity: 0.75
anchors {
fill: parent
@ -49,7 +50,7 @@ StyledMouseArea {
Rectangle {
id: batteryPercentage
width: (parent.width - 4) * UPower.displayDevice.percentage
color: ShellSettings.colors["inverse_surface"]
color: ShellSettings.colors.surface
anchors {
left: batteryBackground.left
@ -64,9 +65,22 @@ StyledMouseArea {
popup: root.bar.popup
show: root.showMenu
onClosed: root.showMenu = false
centered: true
implicitWidth: 250
implicitHeight: 250
implicitWidth: 300
implicitHeight: 50
ColumnLayout {
anchors {
fill: parent
margins: 8
}
OptionSlider {
Layout.fillWidth: true
values: ["Power Save", "Balanced", "Performance"]
index: PowerProfiles.profile
onIndexChanged: PowerProfiles.profile = this.index
}
}
}
}

View file

@ -10,7 +10,7 @@ import ".."
// TODO:
// 1. Get rid of leftItem/rightItem properties on menu
// 2. Load menu properly, right now its pretty buggy
// 2. Animate height of subTrayMenu's on expand
// 3. Fix bug that causes close on update (nm-applet wifi networks updating)
RowLayout {