nicer icon fill

This commit is contained in:
end-4
2025-05-05 11:47:22 +02:00
parent aa7df0a74c
commit cba6471099
3 changed files with 5 additions and 4 deletions
@@ -7,6 +7,7 @@ Text {
property real iconSize: Appearance.font.pixelSize.small property real iconSize: Appearance.font.pixelSize.small
property real fill: 0 property real fill: 0
renderType: Text.NativeRendering renderType: Text.NativeRendering
font.hintingPreference: Font.PreferFullHinting
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
font.family: Appearance.font.family.iconMaterial font.family: Appearance.font.family.iconMaterial
font.pixelSize: iconSize font.pixelSize: iconSize
@@ -418,9 +418,9 @@ Item {
anchors.centerIn: parent anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
iconSize: Appearance.font.pixelSize.larger iconSize: Appearance.font.pixelSize.larger
fill: sendButton.enabled ? 1 : 0 // fill: sendButton.enabled ? 1 : 0
color: sendButton.enabled ? Appearance.m3colors.m3onPrimary : Appearance.colors.colOnLayer2Disabled color: sendButton.enabled ? Appearance.m3colors.m3onPrimary : Appearance.colors.colOnLayer2Disabled
text: "arrow_upward" text: "send"
} }
} }
} }
@@ -538,11 +538,11 @@ Item {
contentItem: MaterialSymbol { contentItem: MaterialSymbol {
anchors.centerIn: parent anchors.centerIn: parent
text: "arrow_upward"
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
iconSize: Appearance.font.pixelSize.larger iconSize: Appearance.font.pixelSize.larger
fill: sendButton.enabled ? 1 : 0 // fill: sendButton.enabled ? 1 : 0
color: sendButton.enabled ? Appearance.m3colors.m3onPrimary : Appearance.colors.colOnLayer2Disabled color: sendButton.enabled ? Appearance.m3colors.m3onPrimary : Appearance.colors.colOnLayer2Disabled
text: "send"
} }
} }
} }