summaryrefslogtreecommitdiff
path: root/components/Icon.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/Icon.qml')
-rw-r--r--components/Icon.qml40
1 files changed, 20 insertions, 20 deletions
diff --git a/components/Icon.qml b/components/Icon.qml
index a23f6da..3f70807 100644
--- a/components/Icon.qml
+++ b/components/Icon.qml
@@ -4,24 +4,24 @@ import QtQuick.Layouts
import qs.config
IText {
- id: root
- property real iconSize: General.iconSize
- property real fill: 0
- property real truncatedFill: Math.round(fill * 100) / 100 // Reduce memory consumption spikes from constant font remapping
- renderType: Text.NativeRendering
- color: Colors.foreground2
- font {
- // hintingPreference: Font.PreferFullHinting
- hintingPreference: Font.PreferNoHinting // so the icons dont just offset away
- family: Style.font.family.symbols ?? "Symbols Nerd Font"
- pixelSize: iconSize
- weight: Font.Normal + (Font.DemiBold - Font.Normal) * fill
- variableAxes: {
- "FILL": truncatedFill,
- // "wght": font.weight,
- // "GRAD": 0,
- "opsz": iconSize
- }
- }
- verticalAlignment: Text.AlignVCenter
+ id: root
+ property real iconSize: General.iconSize
+ property real fill: 0
+ property real truncatedFill: Math.round(fill * 100) / 100 // Reduce memory consumption spikes from constant font remapping
+ renderType: Text.NativeRendering
+ color: Colors.foreground2
+ font {
+ // hintingPreference: Font.PreferFullHinting
+ hintingPreference: Font.PreferNoHinting // so the icons dont just offset away
+ family: Style.font.family.symbols ?? "Symbols Nerd Font"
+ pixelSize: iconSize
+ weight: Font.Normal + (Font.DemiBold - Font.Normal) * fill
+ variableAxes: {
+ "FILL": truncatedFill,
+ // "wght": font.weight,
+ // "GRAD": 0,
+ "opsz": iconSize
+ }
+ }
+ verticalAlignment: Text.AlignVCenter
}