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:
parent
83a9661c04
commit
53cd87cc1d
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
|
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)
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue