From 071a3ad4cd588843e73ef66a5c44a32beb4ec75e Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 15 May 2026 16:55:50 +0200 Subject: aesthetic changes --- src/notification.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/notification.rs') diff --git a/src/notification.rs b/src/notification.rs index 4947e6f..df9c622 100644 --- a/src/notification.rs +++ b/src/notification.rs @@ -18,7 +18,7 @@ pub fn notify_track(track: &Track, format: Option<&str>) { let _ = notify_rust::Notification::new() .summary("Now Playing") .body(&body) - .appname("rsp") + .appname("RSPlayer") .show(); } @@ -26,14 +26,22 @@ pub fn notify_queue_ended() { let _ = notify_rust::Notification::new() .summary("Playback Ended") .body("The queue is empty") - .appname("rsp") + .appname("RSPlayer") + .show(); +} + +pub fn notify_change(state: &str) { + let _ = notify_rust::Notification::new() + .summary(state) + .body(&format!("Playback {}", state.to_lowercase())) + .appname("RSPlayer") .show(); } pub fn notify_error(context: &str) { let _ = notify_rust::Notification::new() - .summary("rsp Error") + .summary("RSPlayer Error") .body(&format!("{} - Check the logs for details", context)) - .appname("rsp") + .appname("RSPlayer") .show(); } -- cgit v1.2.3