mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-06 12:39:35 +02:00
19 lines
507 B
QML
19 lines
507 B
QML
import QtQuick
|
|
import qs.Commons
|
|
|
|
// Noctalia compat shim. Renders an icon by name through the Icons map.
|
|
Text {
|
|
id: root
|
|
property string icon: ""
|
|
property real pointSize: 14
|
|
property bool applyUiScale: true
|
|
|
|
text: Icons.get(icon)
|
|
color: Color.mOnSurface
|
|
font.family: "JetBrainsMono Nerd Font"
|
|
font.pixelSize: Math.round(pointSize * (applyUiScale ? Style.uiScaleRatio : 1))
|
|
verticalAlignment: Text.AlignVCenter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
renderType: Text.NativeRendering
|
|
}
|