aboutsummaryrefslogtreecommitdiffstats
path: root/theme/components/Panel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'theme/components/Panel.qml')
-rw-r--r--theme/components/Panel.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/theme/components/Panel.qml b/theme/components/Panel.qml
index 071f651..b0aa026 100644
--- a/theme/components/Panel.qml
+++ b/theme/components/Panel.qml
@@ -74,6 +74,13 @@ Item {
: "?"
function refreshAvatar() {
+ // udt-accent's avatar is the one hyprlock draws, so it wins for the
+ // user who generated it; everyone else keeps their AccountsService icon.
+ var own = config.stringValue("avatar")
+ if (own !== "" && creds.username === config.stringValue("avatarUser")) {
+ avatarPath = "file://" + own
+ return
+ }
for (var i = 0; i < faces.count; ++i) {
var it = faces.itemAt(i)
if (it && it.faceName === creds.username) {
@@ -129,8 +136,8 @@ Item {
}
Item {
- width: 256
- height: 256
+ width: 180
+ height: 180
anchors.horizontalCenter: parent.horizontalCenter
Rectangle {
@@ -143,7 +150,7 @@ Item {
text: panel.initials
color: panel.textColor
font.family: "Noto Sans"
- font.pixelSize: 92
+ font.pixelSize: 65
}
}