repositories / dotfiles

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

Modified
203 203 anchors.verticalCenter: parent.verticalCenter
204 204 theme: root.theme
205 205 variant: "meta"
206 - selected: true
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)
232 232 height: 42
233 233 radius: 13
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"
235 + border.width: 1
236 + border.color: root.theme ? root.theme.withAlpha(primary ? root.theme.ui.accent : root.theme.ui.minor, primary ? 0.78 : 0.36) : "transparent"
238 238 NuguText {
239 239 anchors.centerIn: parent
240 240 theme: root.theme
241 241 variant: "meta"
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"
247 246 MouseArea {
292 291 theme: root.theme
293 292 variant: "meta"
294 293 text: root.actionLabel(dangerButton.modelData)
295 - color: root.theme ? root.theme.error : "white"
294 + color: root.theme ? root.theme.content.normal : "white"
298 297 MouseArea {
338 337 anchors.centerIn: parent
339 338 theme: root.theme
340 339 variant: "meta"
341 - selected: true
342 340 text: "confirm"
343 - color: root.theme ? root.theme.warning : "white"
341 + color: root.theme ? root.theme.content.normal : "white"
346 344 MouseArea {

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()) : ({
66 67 "battery": {},
67 68 "externalDevices": []
69 70 const hasBattery = !!(state.battery && state.battery.present);
70 71 const hasDevices = (state.externalDevices || []).length > 0;
71 72 return {
72 - "width": hasBattery ? 376 : 326,
73 - "height": hasBattery ? (hasDevices ? 334 : 290) : (hasDevices ? 206 : 174)
73 + "width": width,
74 + "height": heightBudget(hasBattery ? (hasDevices ? 334 : 290) : (hasDevices ? 260 : 240))