NPill: for battery use a very light outline around the icon
This commit is contained in:
parent
56993d3c00
commit
9bc6479c92
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,8 @@ Item {
|
||||||
// When forced shown, match pill background; otherwise use accent when hovered
|
// When forced shown, match pill background; otherwise use accent when hovered
|
||||||
color: forceOpen ? pillColor : (showPill ? iconCircleColor : Color.mSurfaceVariant)
|
color: forceOpen ? pillColor : (showPill ? iconCircleColor : Color.mSurfaceVariant)
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
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.left: rightOpen ? parent.left : undefined
|
||||||
anchors.right: rightOpen ? undefined : parent.right
|
anchors.right: rightOpen ? undefined : parent.right
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue