mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
refactor: wip refactor on color scheme, make screenshots suck less, etc.
This commit is contained in:
parent
0052b00904
commit
21969cf5a9
8 changed files with 214 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue