NPill: for battery use a very light outline around the icon

This commit is contained in:
LemmyCook 2025-09-06 18:34:44 -04:00
parent 56993d3c00
commit 9bc6479c92

View file

@ -99,6 +99,8 @@ Item {
// When forced shown, match pill background; otherwise use accent when hovered
color: forceOpen ? pillColor : (showPill ? iconCircleColor : Color.mSurfaceVariant)
anchors.verticalCenter: parent.verticalCenter
border.width: Math.max(1, Style.borderS * scaling)
border.color: forceOpen ? Qt.alpha(Color.mOutline, 0.5) : Color.transparent
anchors.left: rightOpen ? parent.left : undefined
anchors.right: rightOpen ? undefined : parent.right