dotfiles
bugabingas dorkfiles
owned by bugabinga
fix nuguland power popup contrast
ad921550ee29db8aa3721cb6cdf1c95a70d7f415
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (2)
quickshell/nuguland/PowerPanel.qml
Modified203 203 anchors.verticalCenter: parent.verticalCenter
204 204 theme: root.theme
207 206 text:
`${deviceChip.modelData.percent}
%` 207 + color: root.theme
? root.theme.content.normal
: "white" 231 231 width:
Math.floor((root.width
- safeGrid.columnSpacing)
/ safeGrid.columns)
234 - color: root.theme
? root.theme.withAlpha(primary
? root.theme.ui.accent
: root.theme.ui.backdrop, primary
? 0.26 : 0.56)
: "transparent" 235 - border.width: primary
? 1 : 0 236 - border.color: root.theme
? (primary
? root.theme.ui.accent
: "transparent")
: "transparent" 234 + color: root.theme
? root.theme.withAlpha(primary
? root.theme.ui.accent
: root.theme.ui.minor, primary
? 0.22 : 0.12)
: "transparent" 236 + border.color: root.theme
? root.theme.withAlpha(primary
? root.theme.ui.accent
: root.theme.ui.minor, primary
? 0.78 : 0.36)
: "transparent" 239 239 anchors.centerIn: parent
240 240 theme: root.theme
242 - selected: safeButton.primary
243 242 text: root.actionLabel(safeButton.modelData)
244 - color: root.theme
? (safeButton.primary
? root.theme.ui.accent
: root.theme.content.normal)
: "white" 243 + color: root.theme
? root.theme.content.normal
: "white" 292 291 theme: root.theme
294 293 text: root.actionLabel(dangerButton.modelData)
295 - color: root.theme
? root.theme.error
: "white" 294 + color: root.theme
? root.theme.content.normal
: "white" 338 337 anchors.centerIn: parent
339 338 theme: root.theme
343 - color: root.theme
? root.theme.warning
: "white" 341 + color: root.theme
? root.theme.content.normal
: "white" quickshell/nuguland/SurfaceManager.qml
Modified 64 64 function powerContentSize() {
65 + const width
= Math.
max(
520,
Math.
min(
620, popoutWidth()));
65 66 const state
= powerService
? JSON.
parse(powerService.stateJson())
: ({
67 68 "externalDevices": []
69 70 const hasBattery
= !!(state.battery
&& state.battery.present);
70 71 const hasDevices
= (state.externalDevices
|| []).length
> 0;
72 - "width": hasBattery
? 376 : 326, 73 - "height": hasBattery
? (hasDevices
? 334 : 290)
: (hasDevices
? 206 : 174)
74 + "height": heightBudget(hasBattery
? (hasDevices
? 334 : 290)
: (hasDevices
? 260 : 240))