Notification: Converted to Layout

+ removed fontPointSize on NIconButton. use sizeRatio instead.
This commit is contained in:
LemmyCook 2025-09-05 18:29:06 -04:00
parent a4c98f1382
commit cf624f4d65
3 changed files with 78 additions and 87 deletions

View file

@ -15,7 +15,6 @@ Rectangle {
property string tooltipText
property bool enabled: true
property bool hovering: false
property real fontPointSize: Style.fontSizeM
property color colorBg: Color.mSurfaceVariant
property color colorFg: Color.mPrimary
@ -41,7 +40,7 @@ Rectangle {
NIcon {
text: root.icon
font.pointSize: root.fontPointSize * scaling
font.pointSize: Style.fontSizeM * scaling
color: root.hovering ? colorFgHover : colorFg
// Center horizontally
x: (root.width - width) / 2