avatar: material person glyph instead of an app icon lookup

fixes #3600
This commit is contained in:
bbedward
2026-09-28 14:43:04 -04:00
parent 1142390724
commit ffe2da7e99
6 changed files with 20 additions and 14 deletions
Generated
+3 -3
View File
@@ -3,11 +3,11 @@
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1790619834,
"narHash": "sha256-3/cvoG4rd31EmO1Tk8zPmmSOtPpkKBcjnbzTPNMFf3Y=",
"lastModified": 1790620949,
"narHash": "sha256-GtqOop7cBhuRo8K8iUbIwrAGGwh/gDv2czNkBv/sTBo=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "016def1b36e65aba62f37cbd27c44b861e064d42",
"rev": "ed962e6c03f38cd1bc24d617d1ed551989a9eb70",
"type": "github"
},
"original": {
@@ -28,7 +28,7 @@ SettingsNavRow {
anchors.leftMargin: (SettingsMetrics.navIconSize - width) / 2
anchors.verticalCenter: parent.verticalCenter
imageSource: PortalService.profileImage
fallbackIcon: imageSource ? "person" : ""
fallbackIcon: imageSource ? "material:person" : ""
fallbackText: root.title.charAt(0).toLocaleUpperCase()
}
}
+1 -1
View File
@@ -848,7 +848,7 @@ Item {
return encodeFileUrl(PortalService.profileImage);
return PortalService.profileImage;
}
fallbackIcon: "person"
fallbackIcon: "material:person"
}
Rectangle {
@@ -137,7 +137,7 @@ Item {
ringWidth: Theme.avatarRingWidth
ringColor: Theme.avatarRingColor
imageSource: root.profileImageSource(userRow.modelData.username)
fallbackIcon: "person"
fallbackIcon: "material:person"
}
}
@@ -28,7 +28,7 @@ Column {
ringColor: Theme.avatarRingColor
height: width
imageSource: PortalService.profileImage
fallbackIcon: "person"
fallbackIcon: "material:person"
}
DankActionButton {
@@ -48,22 +48,28 @@ Column {
SettingsDropdownRow {
id: ringRow
readonly property var rings: [{
readonly property var rings: [
{
"value": "none",
"label": I18n.tr("None")
}, {
},
{
"value": "outline",
"label": I18n.tr("Outline")
}, {
},
{
"value": "primary",
"label": I18n.tr("Primary")
}, {
},
{
"value": "secondary",
"label": I18n.tr("Secondary")
}, {
},
{
"value": "tertiary",
"label": I18n.tr("Tertiary")
}]
}
]
settingKey: "avatarRing"
tags: ["user", "account", "profile", "avatar", "ring", "border", "color"]