repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

feat(nuguland): make idle active state pop louder than the dot

55d62fe1ca3ea8f2dd517142812045f5f477757a

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Keep-awake is important to notice, so the idle chip gets a prominent
active treatment — accent-tinted fill, accent border, bold accent label —
instead of the subtle dot the other widgets use. Selected state still
takes precedence.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Changed files (1)

quickshell/nuguland/Bar.qml

Modified
103 103 return false;
106 + // idle (keep-awake) is important enough to pop louder than a subtle dot
107 + function chipActiveStrong(name) {
108 + return String(name) === "idle" && root.chipActive(name);
106 111 function itemRectInBar(item) {
107 112 let x = 0;
108 113 let y = 0;
531 536 property int preferredWidth: Math.max(52, labelText.implicitWidth + 18)
532 537 readonly property bool selected: root.surfaces && root.surfaces.popoutName === popoutName
533 538 readonly property bool active: root.chipActive(popoutName)
539 + readonly property bool activeStrong: root.chipActiveStrong(popoutName)
535 541 Layout.preferredWidth: preferredWidth
536 542 Layout.preferredHeight: 26
537 543 Layout.alignment: Qt.AlignVCenter
538 544 radius: 9
539 - color: selected && root.theme ? root.theme.ui.focus : (root.theme ? root.theme.withAlpha(root.theme.ui.minor, 0.1) : "transparent")
545 + color: !root.theme ? "transparent" : (selected ? root.theme.ui.focus : (activeStrong && !selected ? root.theme.withAlpha(root.theme.ui.accent, 0.3) : root.theme.withAlpha(root.theme.ui.minor, 0.1)))
540 546 clip: true
541 - border.width: 0
542 - border.color: "transparent"
547 + border.width: chip.activeStrong && !chip.selected ? 1 : 0
548 + border.color: root.theme && chip.activeStrong ? root.theme.ui.accent : "transparent"
543 549 Component.onCompleted: Qt.callLater(() => {
544 550 return root.registerAnchor(chip.popoutName, chip);
557 563 variant: "meta"
558 564 selected: chip.selected
559 565 text: chip.label
560 - font.bold: false
566 + font.bold: chip.activeStrong && !chip.selected
561 567 horizontalAlignment: Text.AlignHCenter
562 568 elide: Text.ElideRight
563 - color: root.theme ? (chip.selected ? root.theme.content.backdrop : root.theme.content.normal) : "transparent"
569 + color: !root.theme ? "transparent" : (chip.selected ? root.theme.content.backdrop : (chip.activeStrong ? root.theme.ui.accent : root.theme.content.normal))
567 573 Rectangle {
568 574 id: activeDot
570 - visible: chip.active && !chip.selected
576 + visible: chip.active && !chip.activeStrong && !chip.selected
571 577 width: 5
572 578 height: 5
573 579 radius: 2.5