forked from Shinonome/dots-hyprland
unfuck material symbols rendering
This commit is contained in:
@@ -6,9 +6,9 @@ StyledText {
|
|||||||
property real iconSize: Appearance?.font.pixelSize.small ?? 16
|
property real iconSize: Appearance?.font.pixelSize.small ?? 16
|
||||||
property real fill: 0
|
property real fill: 0
|
||||||
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
|
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
|
||||||
renderType: fill !== 0 ? Text.CurveRendering : Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
font {
|
font {
|
||||||
hintingPreference: Font.PreferFullHinting
|
hintingPreference: Font.PreferNoHinting
|
||||||
family: Appearance?.font.family.iconMaterial ?? "Material Symbols Rounded"
|
family: Appearance?.font.family.iconMaterial ?? "Material Symbols Rounded"
|
||||||
pixelSize: iconSize
|
pixelSize: iconSize
|
||||||
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
|
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
|
||||||
|
|||||||
Reference in New Issue
Block a user