CharacterMap+Base: Give Character Map an icon
This commit is contained in:
parent
83a9661c04
commit
53cd87cc1d
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/53cd87cc1dd Pull-request: https://github.com/SerenityOS/serenity/pull/11839
5 changed files with 3 additions and 3 deletions
BIN
Base/res/icons/16x16/app-character-map.png
Normal file
BIN
Base/res/icons/16x16/app-character-map.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 719 B |
BIN
Base/res/icons/32x32/app-character-map.png
Normal file
BIN
Base/res/icons/32x32/app-character-map.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 982 B |
|
@ -15,6 +15,6 @@ set(SOURCES
|
|||
main.cpp
|
||||
)
|
||||
|
||||
serenity_app(CharacterMap ICON app-keyboard-settings)
|
||||
serenity_app(CharacterMap ICON app-character-map)
|
||||
target_link_libraries(CharacterMap LibDesktop LibGUI LibMain)
|
||||
link_with_unicode_data(CharacterMap)
|
||||
|
|
|
@ -138,7 +138,7 @@ void CharacterMapWidget::initialize_menubar(GUI::Window& window)
|
|||
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");
|
||||
}));
|
||||
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()
|
||||
|
|
|
@ -62,7 +62,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
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());
|
||||
window->set_title("Character Map");
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
|
Loading…
Add table
Reference in a new issue