repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

tighten nuguland power popup layout

1d339b96a8bbdcd047f7ebec3fb78c32b6f8272a

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

quickshell/nuguland/PowerPanel.qml

Modified
228 228 required property string modelData
229 229 readonly property bool primary: modelData === "lock"
231 - width: Math.floor((root.width - safeGrid.columnSpacing) / safeGrid.columns)
231 + width: Math.floor((root.width - safeGrid.columnSpacing * (safeGrid.columns - 1)) / safeGrid.columns)
232 232 height: 42
233 233 radius: 13
234 234 color: root.theme ? root.theme.withAlpha(primary ? root.theme.ui.accent : root.theme.ui.minor, primary ? 0.22 : 0.12) : "transparent"

quickshell/nuguland/SurfaceManager.qml

Modified
71 71 const hasDevices = (state.externalDevices || []).length > 0;
72 72 return {
73 73 "width": width,
74 - "height": heightBudget(hasBattery ? (hasDevices ? 334 : 290) : (hasDevices ? 260 : 240))
74 + "height": heightBudget(hasBattery ? (hasDevices ? 334 : 290) : 220)