NPill: fix icon bg hover color
This commit is contained in:
parent
f399a6d9f5
commit
94c5d73a61
2 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ Item {
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: root.icon
|
icon: root.icon
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
color: hovered && !forceOpen ? Color.mOnTertiary : Color.mOnSurface
|
color: hovered ? Color.mOnTertiary : Color.mOnSurface
|
||||||
// Center horizontally
|
// Center horizontally
|
||||||
x: (iconCircle.width - width) / 2
|
x: (iconCircle.width - width) / 2
|
||||||
// Center vertically accounting for font metrics
|
// Center vertically accounting for font metrics
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ Item {
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: root.icon
|
icon: root.icon
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
font.pointSize: Style.fontSizeM * scaling
|
||||||
color: hovered && !forceOpen ? Color.mOnTertiary : Color.mOnSurface
|
color: hovered ? Color.mOnTertiary : Color.mOnSurface
|
||||||
// Center horizontally
|
// Center horizontally
|
||||||
x: (iconCircle.width - width) / 2
|
x: (iconCircle.width - width) / 2
|
||||||
// Center vertically accounting for font metrics
|
// Center vertically accounting for font metrics
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue