NIconButton: font size auto determined by button size

This commit is contained in:
LemmyCook 2025-09-09 08:17:00 -04:00
parent bc7fe21d27
commit 5e23476089

View file

@ -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