mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-09 21:36:13 +00:00
Services in subfolder + cleanup/fixes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
// Simple signal-based notification system
|
||||
signal notify(string message, string description, string icon, string type, int duration)
|
||||
|
||||
// Convenience methods
|
||||
function showNotice(message, description = "", icon = "", duration = 3000) {
|
||||
notify(message, description, icon, "notice", duration)
|
||||
}
|
||||
|
||||
function showWarning(message, description = "", duration = 4000) {
|
||||
notify(message, description, "", "warning", duration)
|
||||
}
|
||||
|
||||
function showError(message, description = "", duration = 5000) {
|
||||
notify(message, description, "", "error", duration)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user