mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
feat(osd): split custom text OSD IPC command to support optional icon
This commit is contained in:
@@ -380,8 +380,13 @@ Item {
|
||||
|
||||
IpcHandler {
|
||||
target: "osd"
|
||||
function showText(text: string, icon: string) {
|
||||
OSDService.showCustomText(text, icon || "");
|
||||
|
||||
function showText(text: string) {
|
||||
OSDService.showCustomText(text, "");
|
||||
}
|
||||
|
||||
function showTextWithIcon(text: string, icon: string) {
|
||||
OSDService.showCustomText(text, icon);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user