icons: fix grade more icons
Media and pfp fallback icons Also fix dashboard user os icon
This commit is contained in:
parent
ce3467c8e2
commit
8308060a75
5 changed files with 10 additions and 4 deletions
|
|
@ -128,6 +128,7 @@ Item {
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
grade: 200
|
||||||
text: "art_track"
|
text: "art_track"
|
||||||
color: Colours.palette.m3onSurfaceVariant
|
color: Colours.palette.m3onSurfaceVariant
|
||||||
font.pointSize: (parent.width * 0.4) || 1
|
font.pointSize: (parent.width * 0.4) || 1
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ Item {
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
grade: 200
|
||||||
text: "art_track"
|
text: "art_track"
|
||||||
color: Colours.palette.m3onSurfaceVariant
|
color: Colours.palette.m3onSurfaceVariant
|
||||||
font.pointSize: (parent.width * 0.4) || 1
|
font.pointSize: (parent.width * 0.4) || 1
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ Row {
|
||||||
|
|
||||||
text: "person"
|
text: "person"
|
||||||
fill: 1
|
fill: 1
|
||||||
font.pointSize: (info.implicitHeight / 2) || 1
|
grade: 200
|
||||||
|
font.pointSize: Math.floor(info.implicitHeight / 2) || 1
|
||||||
}
|
}
|
||||||
|
|
||||||
CachingImage {
|
CachingImage {
|
||||||
|
|
@ -126,6 +127,7 @@ Row {
|
||||||
icon: Icons.osIcon
|
icon: Icons.osIcon
|
||||||
text: Icons.osName
|
text: Icons.osName
|
||||||
colour: Colours.palette.m3primary
|
colour: Colours.palette.m3primary
|
||||||
|
materialIcon: false
|
||||||
}
|
}
|
||||||
|
|
||||||
InfoLine {
|
InfoLine {
|
||||||
|
|
@ -166,6 +168,7 @@ Row {
|
||||||
required property string icon
|
required property string icon
|
||||||
required property string text
|
required property string text
|
||||||
required property color colour
|
required property color colour
|
||||||
|
property bool materialIcon: true
|
||||||
|
|
||||||
implicitWidth: icon.implicitWidth + text.width + text.anchors.leftMargin
|
implicitWidth: icon.implicitWidth + text.width + text.anchors.leftMargin
|
||||||
implicitHeight: Math.max(icon.implicitHeight, text.implicitHeight)
|
implicitHeight: Math.max(icon.implicitHeight, text.implicitHeight)
|
||||||
|
|
@ -176,12 +179,11 @@ Row {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: (Config.dashboard.sizes.infoIconSize - implicitWidth) / 2
|
anchors.leftMargin: (Config.dashboard.sizes.infoIconSize - implicitWidth) / 2
|
||||||
|
|
||||||
|
fill: 1
|
||||||
text: line.icon
|
text: line.icon
|
||||||
color: line.colour
|
color: line.colour
|
||||||
font.pointSize: Appearance.font.size.normal
|
font.pointSize: Appearance.font.size.normal
|
||||||
font.variableAxes: ({
|
font.family: line.materialIcon ? Appearance.font.family.material : Appearance.font.family.sans
|
||||||
FILL: 1
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ ColumnLayout {
|
||||||
|
|
||||||
text: "person"
|
text: "person"
|
||||||
fill: 1
|
fill: 1
|
||||||
|
grade: 200
|
||||||
font.pointSize: Config.lock.sizes.faceSize / 2
|
font.pointSize: Config.lock.sizes.faceSize / 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ RowLayout {
|
||||||
MaterialIcon {
|
MaterialIcon {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
grade: 200
|
||||||
text: "art_track"
|
text: "art_track"
|
||||||
color: Colours.palette.m3onSurfaceVariant
|
color: Colours.palette.m3onSurfaceVariant
|
||||||
font.pointSize: (root.isLarge ? Config.lock.sizes.mediaCoverSize : Config.lock.sizes.mediaCoverSizeSmall) * 0.4
|
font.pointSize: (root.isLarge ? Config.lock.sizes.mediaCoverSize : Config.lock.sizes.mediaCoverSizeSmall) * 0.4
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue