From dfe07266765954164ce2ae43c3549c2db3d55354 Mon Sep 17 00:00:00 2001 From: lucy Date: Thu, 16 Jul 2026 12:51:04 +0200 Subject: [PATCH] fix icons --- modules/bar/Mpris.qml | 2 +- modules/notifications/NotiCard.qml | 2 +- widgets/MaterialIcon.qml | 24 +++++++++++++----------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/modules/bar/Mpris.qml b/modules/bar/Mpris.qml index fb32221..02026e6 100644 --- a/modules/bar/Mpris.qml +++ b/modules/bar/Mpris.qml @@ -26,7 +26,7 @@ Rectangle { id: songLayout anchors.centerIn: root MaterialIcon { - text: "\ueafc" + text: "music_note_2" } StyledText { Layout.maximumWidth: 400 diff --git a/modules/notifications/NotiCard.qml b/modules/notifications/NotiCard.qml index 7be1b30..915e93e 100644 --- a/modules/notifications/NotiCard.qml +++ b/modules/notifications/NotiCard.qml @@ -43,7 +43,7 @@ WrapperRectangle { RowLayout { Layout.alignment: Qt.AlignTop MaterialIcon { - text: "\uea35" + text: "\ue7f7" font.pixelSize: 12 } StyledText { diff --git a/widgets/MaterialIcon.qml b/widgets/MaterialIcon.qml index 858450f..c7e8a62 100644 --- a/widgets/MaterialIcon.qml +++ b/widgets/MaterialIcon.qml @@ -1,15 +1,17 @@ +import qs import qs.settings -import qs.widgets - -StyledText { - property real fill - property int grade: 25 +import QtQuick +Text { font.family: "Material Symbols Rounded" - font.variableAxes: ({ - FILL: fill.toFixed(1), - GRAD: grade, - opsz: 24, - wght: 600 - }) + color: Colors.base07 + font.pixelSize: Config.iconSize + property bool fill: true + renderType: Text.NativeRendering + font.variableAxes: { + "FILL": fill ? 1 : 0, + "opsz": 48, + "wght": 400, + "GRAD": 24 + } }