mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibGUI+Notification: Add mutable notifications
This commit puts all of the remaining pieces in place. This adds a mechanism to update the text, title, and icon of an image. If an image is not provided, the default ladybug will be shown.
This commit is contained in:
parent
147a2c4ca2
commit
8f6894d250
Notes:
sideshowbarker
2024-07-18 21:09:21 +09:00
Author: https://github.com/Sylvyrfysh
Commit: 8f6894d250
Pull-request: https://github.com/SerenityOS/serenity/pull/5732
Reviewed-by: https://github.com/BenWiederhake
7 changed files with 119 additions and 7 deletions
|
@ -5,5 +5,11 @@ endpoint NotificationServer = 95
|
|||
|
||||
ShowNotification([UTF8] String text, [UTF8] String title, Gfx::ShareableBitmap icon) => ()
|
||||
|
||||
UpdateNotificationText([UTF8] String text, [UTF8] String title) => (bool still_showing)
|
||||
|
||||
UpdateNotificationIcon(Gfx::ShareableBitmap icon) => (bool still_showing)
|
||||
|
||||
IsShowing() => (bool still_showing)
|
||||
|
||||
CloseNotification() => ()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue