Notification: Converted to Layout
+ removed fontPointSize on NIconButton. use sizeRatio instead.
This commit is contained in:
parent
a4c98f1382
commit
cf624f4d65
3 changed files with 78 additions and 87 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue