summaryrefslogtreecommitdiff
path: root/Servers/NotificationServer
AgeCommit message (Collapse)Author
2020-03-30WindowServer+NotificationServer: Vertical title bar for notificationsAndreas Kling
This patch adds a specialized window type for notifications. They now have a title bar on the right-hand side, with a close button. This removes the need for the "Done" button in notifications, giving us a bit more horizontal space overall. Design based on a mock-up from @xTibor :^)
2020-03-29LibGfx+LibIPC: Add Gfx::ShareableBitmap, a bitmap for easy IPC usageAndreas Kling
With this patch, it's now possible to pass a Gfx::ShareableBitmap in an IPC message. As long as the message itself is synchronous, the bitmap will be adopted by the receiving end, and disowned by the sender nicely without any accounting effort like we've had to do in the past. Use this in NotificationServer to allow sending arbitrary bitmaps as icons instead of paths-to-icons.
2020-03-28NotificationServer: Update locations of notifications after closing oneBenjamin Rottler
When multiple notifications are open and one notification in the beginning or in the middle is closed the location of the remaining notification windows are updated so that there is no gap between them.
2020-03-26NotificationServer: Allow showing an icon in notificationsAndreas Kling
We currently use icon paths for this because I didn't want to deal with implementing icon bitmap sharing right now. In the future it would be better to post a bitmap somehow instead of a path.
2020-03-04LibCore: Make Core::Object::add<ChildType> return a ChildType&Andreas Kling
Since the returned object is now owned by the callee object, we can simply vend a ChildType&. This allows us to use "." instead of "->" at the call site, which is quite nice. :^)
2020-03-04LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clientsAndreas Kling
2020-03-04LibGUI: Use set_layout<LayoutType>() in lots of client codeAndreas Kling
2020-03-03LibGUI: Remove Button& parameter from Button::on_click hookAndreas Kling
There was but a single user of this parameter and it's a bit tedious to write it out every time, so let's get rid of it.
2020-02-23Userspace: Use Core::Object::add() when building interfacesAndreas Kling
2020-02-16NotificationServer: Add new notification windows below the lowest oneAndreas Kling
Don't stack notifications on top of each other, instead put them below one another on the y axis. This will obviously break if the screen fills with notifications, but that's a FIXME for now. :^)
2020-02-16NotificationServer: Add a system service for desktop notificationsAndreas Kling
This patch adds NotificationServer, which runs as the "notify" user and provides an IPC API for desktop notifications. LibGUI gains the GUI::Notification class for showing notifications. NotificationServer is spawned on demand and will unspawn after dimissing all visible notifications. :^) Finally, this also comes with a small /bin/notify utility.