summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAmstel <shinamusuteru.rdc@gmail.com>2025-06-11 15:44:46 +0800
committerAmstel <shinamusuteru.rdc@gmail.com>2025-06-11 15:44:46 +0800
commit92f05c00281d63f9aa21f1575547a36da4e2fc42 (patch)
tree4ed9da8e1defb294ee2e11b9744400ee4392c102 /modules
parentDashboard Avatar Picker 1.0a (diff)
downloadcaelestia-shell-92f05c00281d63f9aa21f1575547a36da4e2fc42.tar.gz
caelestia-shell-92f05c00281d63f9aa21f1575547a36da4e2fc42.tar.bz2
caelestia-shell-92f05c00281d63f9aa21f1575547a36da4e2fc42.zip
Revert "Dashboard Avatar Picker 1.0a"
This reverts commit 9308c9b67f491ff32c57d037f16ac6e9148f9dae.
Diffstat (limited to 'modules')
-rw-r--r--modules/dashboard/dash/User.qml64
1 files changed, 7 insertions, 57 deletions
diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml
index 4aefb31..c7d2bfd 100644
--- a/modules/dashboard/dash/User.qml
+++ b/modules/dashboard/dash/User.qml
@@ -19,67 +19,17 @@ Row {
radius: Appearance.rounding.full
color: Colours.palette.m3surfaceContainerHigh
- CachingImage {
- anchors.fill: parent
- path: `${Paths.home}/.face`
- fillMode: Image.PreserveAspectCrop
- smooth: true
- }
-
- Rectangle {
- id: overlay
- anchors.fill: parent
- radius: avatarRect.radius
- color: Qt.rgba(0, 0, 0, 0.4)
- opacity: mouseArea.containsMouse ? 1.0 : 0.0
- visible: opacity > 0
- Behavior on opacity {
- NumberAnimation {
- duration: 300
- easing.type: Easing.InOutQuad
- }
- }
+ MaterialIcon {
+ anchors.centerIn: parent
- MaterialIcon {
- anchors.centerIn: parent
- text: "photo_camera"
- color: "white"
- font.pointSize: info.implicitHeight / 4
- }
+ text: "person"
+ fill: 1
+ font.pointSize: (info.implicitHeight / 2) || 1
}
- MouseArea {
- id: mouseArea
+ CachingImage {
anchors.fill: parent
- hoverEnabled: true
- onClicked: avatarUpdateProc.running = true
- cursorShape: Qt.PointingHandCursor
- }
-
- Process {
- id: avatarUpdateProc
- running: false
- command: [`${Paths.home}/.local/share/caelestia/shell/scripts/caelestia-avatar-picker.sh`]
-
- stdout: SplitParser {
- onRead: {
- notifyProc.running = true
- }
- }
- }
-
- Process {
- id: notifyProc
- running: false
- command: [
- "notify-send",
- "-u", "low",
- "-i", "dialog-information-symbolic",
- "Profile Updated",
- "Your avatar has been successfully changed.",
- "-a", "Shell",
- "-A", "OK=Got it!"
- ]
+ path: `${Paths.home}/.face`
}
}