Unify config into shell.json and add Noctalia plugin support
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user