mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 15:02:50 -05:00
26 lines
710 B
QML
26 lines
710 B
QML
import QtQuick
|
|
import qs.Common
|
|
|
|
Text {
|
|
id: icon
|
|
|
|
property alias name: icon.text
|
|
property alias size: icon.font.pixelSize
|
|
property alias color: icon.color
|
|
property bool filled: false
|
|
readonly property string iconFont : {
|
|
var families = Qt.fontFamilies();
|
|
if (families.indexOf("Material Symbols Rounded") !== -1) {
|
|
return "Material Symbols Rounded";
|
|
} else {
|
|
return "Material Icons Round";
|
|
}
|
|
}
|
|
|
|
font.family: iconFont
|
|
font.pixelSize: Theme.iconSize
|
|
font.weight: filled ? Font.Medium : Font.Normal
|
|
color: Theme.surfaceText
|
|
verticalAlignment: Text.AlignVCenter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
} |