Made the profile image avatar in the dashboard configurable (size, radius). (#212)

This commit is contained in:
Jas Singh
2024-08-31 12:48:32 -07:00
committed by GitHub
parent e050e2ff2d
commit 44fddbcc14
4 changed files with 15 additions and 6 deletions

View File

@@ -35,15 +35,15 @@ const Profile = () => {
hexpand: true,
vertical: true,
children: [
Widget.Icon({
Widget.Box({
hpack: "center",
class_name: "profile-picture",
icon: image.bind("value").as(i => {
css: image.bind("value").as(i => {
try {
GdkPixbuf.Pixbuf.new_from_file(i);
return i;
return `background-image: url("${i}")`
} catch {
return "avatar-default-symbolic";
return `background-image: url("${App.configDir}/assets/hyprpanel.png")`
}
}),
}),