NIconButton: font size auto determined by button size
This commit is contained in:
parent
bc7fe21d27
commit
5e23476089
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ Rectangle {
|
|||
|
||||
NIcon {
|
||||
icon: root.icon
|
||||
font.pointSize: Style.fontSizeM * scaling
|
||||
font.pointSize: Math.max(1, root.width * 0.4)
|
||||
color: root.enabled && root.hovering ? colorFgHover : colorFg
|
||||
// Center horizontally
|
||||
x: (root.width - width) / 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue