mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Notification: Converted to Layout
+ removed fontPointSize on NIconButton. use sizeRatio instead.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user