1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 19:07:34 +00:00

CharacterMap+Base: Give Character Map an icon

This commit is contained in:
Sam Atkins 2022-01-12 17:46:49 +00:00 committed by Andreas Kling
parent 83a9661c04
commit 53cd87cc1d
5 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

View file

@ -15,6 +15,6 @@ set(SOURCES
main.cpp main.cpp
) )
serenity_app(CharacterMap ICON app-keyboard-settings) serenity_app(CharacterMap ICON app-character-map)
target_link_libraries(CharacterMap LibDesktop LibGUI LibMain) target_link_libraries(CharacterMap LibDesktop LibGUI LibMain)
link_with_unicode_data(CharacterMap) link_with_unicode_data(CharacterMap)

View file

@ -138,7 +138,7 @@ void CharacterMapWidget::initialize_menubar(GUI::Window& window)
help_menu.add_action(GUI::CommonActions::make_help_action([&](auto&) { help_menu.add_action(GUI::CommonActions::make_help_action([&](auto&) {
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/CharacterMap.md"), "/bin/Help"); Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/CharacterMap.md"), "/bin/Help");
})); }));
help_menu.add_action(GUI::CommonActions::make_about_action("Character Map", GUI::Icon::default_icon("app-keyboard-settings"), &window)); help_menu.add_action(GUI::CommonActions::make_about_action("Character Map", GUI::Icon::default_icon("app-character-map"), &window));
} }
void CharacterMapWidget::did_change_font() void CharacterMapWidget::did_change_font()

View file

@ -62,7 +62,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 0; return 0;
} }
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-keyboard-settings")); auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-character-map"));
auto window = TRY(GUI::Window::try_create()); auto window = TRY(GUI::Window::try_create());
window->set_title("Character Map"); window->set_title("Character Map");
window->set_icon(app_icon.bitmap_for_size(16)); window->set_icon(app_icon.bitmap_for_size(16));