haiku/docs
PulkoMandy 4dbd474753 Add BIconUtils::GetSystemIcon
Allow to easily access the alert icons and anything that's added to app_server
resources.

Fixes #10887.

Convert BAlert, Debugger AlertWithCheckbox and Keymap ModifierKeysWindow
to make use of it, removing the duplicate code to locate app_server
resources.

The resources are initialized only once (per application), so there is no need
to reload them for every access to the icons.

In the ticket there is discussion about putting this in BControlLook,
but I think this should in fact be moved fully into app_server with
special drawing commands for well-known icons. That would avoid loading
and rendering the icon on the application side to then send it to
app_server (especially in remote_app_server case)?

In any case, this simple API can serve as a base for applications to
use, and we can change how it is implemented later on.

Change-Id: Id370526ae5cf165cfb8bc277bc8a7f46c26f542d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6463
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-05-24 10:58:48 +00:00
..
add-ons Move NetFS to a package 2014-11-17 15:24:07 +01:00
apps Migrate the BTextMailComponent docs to the Haiku Book. 2017-12-26 13:59:25 -05:00
develop Fix typo 2023-04-29 22:46:03 +02:00
interface_guidelines HIG doc: Fix typos etc. 2020-10-09 11:09:02 +00:00
misc makefile-engine docs: Fix app_name_catalog_entry. 2018-08-25 21:22:54 -04:00
user Add BIconUtils::GetSystemIcon 2023-05-24 10:58:48 +00:00