mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 23:34:01 -04:00
avatar: material person glyph instead of an app icon lookup
fixes #3600
This commit is contained in:
+1
-1
Submodule dank-qml-common updated: 016def1b36...ed962e6c03
Generated
+3
-3
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user