1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:48:12 +00:00

TextEditor: Tweak 16x16 icon

In keeping with the slightly-higher-contrast theme.
This commit is contained in:
Andreas Kling 2020-07-04 19:41:43 +02:00
parent 14edd67bcc
commit bc1ec588f0
9 changed files with 6 additions and 6 deletions

View file

@ -719,7 +719,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
copy_action->set_enabled(!selection.is_empty()); copy_action->set_enabled(!selection.is_empty());
}; };
auto open_in_text_editor_action = GUI::Action::create("Open in TextEditor...", Gfx::Bitmap::load_from_file("/res/icons/TextEditor16.png"), [&](auto&) { auto open_in_text_editor_action = GUI::Action::create("Open in TextEditor...", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-text-editor.png"), [&](auto&) {
pid_t child; pid_t child;
for (auto& path : selected_file_paths()) { for (auto& path : selected_file_paths()) {
const char* argv[] = { "TextEditor", path.characters(), nullptr }; const char* argv[] = { "TextEditor", path.characters(), nullptr };

View file

@ -452,7 +452,7 @@ TextEditorWidget::TextEditorWidget()
auto& help_menu = menubar->add_menu("Help"); auto& help_menu = menubar->add_menu("Help");
help_menu.add_action(GUI::Action::create("About", [&](auto&) { help_menu.add_action(GUI::Action::create("About", [&](auto&) {
GUI::AboutDialog::show("Text Editor", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-texteditor.png"), window()); GUI::AboutDialog::show("Text Editor", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-text-editor.png"), window());
})); }));
GUI::Application::the()->set_menubar(move(menubar)); GUI::Application::the()->set_menubar(move(menubar));

View file

@ -60,7 +60,7 @@ int main(int argc, char** argv)
text_widget.open_sesame(argv[1]); text_widget.open_sesame(argv[1]);
window->show(); window->show();
window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/TextEditor16.png")); window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-text-editor.png"));
return app->exec(); return app->exec();
} }

View file

@ -4,8 +4,8 @@ Executable=/bin/TextEditor
Category=Utilities Category=Utilities
[Icons] [Icons]
16x16=/res/icons/TextEditor16.png 16x16=/res/icons/16x16/app-text-editor.png
32x32=/res/icons/32x32/app-texteditor.png 32x32=/res/icons/32x32/app-text-editor.png
[Launcher] [Launcher]
FileTypes=txt,md,html,htm,js,json,ini FileTypes=txt,md,html,htm,js,json,ini

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

View file

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 371 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

View file

@ -480,7 +480,7 @@ int main(int argc, char** argv)
}); });
auto add_editor_action = GUI::Action::create("Add new editor", { Mod_Ctrl | Mod_Alt, Key_E }, auto add_editor_action = GUI::Action::create("Add new editor", { Mod_Ctrl | Mod_Alt, Key_E },
Gfx::Bitmap::load_from_file("/res/icons/TextEditor16.png"), Gfx::Bitmap::load_from_file("/res/icons/16x16/app-text-editor.png"),
[&](auto&) { [&](auto&) {
add_new_editor(*g_text_inner_splitter); add_new_editor(*g_text_inner_splitter);
update_actions(); update_actions();