diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-22 00:19:53 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-22 00:21:03 +0100 |
commit | 7c0a185970b7d1053eeef464ec81f8490717587d (patch) | |
tree | 7fd8b88cae98087d9cad43e667267a3f4b0c52a3 /Applications/FileManager | |
parent | c2a38c86cfb2f7c35b8f0a860ca43c717dda0153 (diff) | |
download | serenity-7c0a185970b7d1053eeef464ec81f8490717587d.zip |
Use the PNG loader for all images, and get rid of the .rgb files.
Diffstat (limited to 'Applications/FileManager')
-rw-r--r-- | Applications/FileManager/DirectoryTableModel.cpp | 10 | ||||
-rw-r--r-- | Applications/FileManager/main.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Applications/FileManager/DirectoryTableModel.cpp b/Applications/FileManager/DirectoryTableModel.cpp index a1a0967eab..82aba2f8c8 100644 --- a/Applications/FileManager/DirectoryTableModel.cpp +++ b/Applications/FileManager/DirectoryTableModel.cpp @@ -9,11 +9,11 @@ DirectoryTableModel::DirectoryTableModel() { - m_directory_icon = GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/folder16.rgb", { 16, 16 }); - m_file_icon = GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/file16.rgb", { 16, 16 }); - m_symlink_icon = GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/link16.rgb", { 16, 16 }); - m_socket_icon = GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/socket16.rgb", { 16, 16 }); - m_executable_icon = GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/executable16.rgb", { 16, 16 }); + m_directory_icon = GraphicsBitmap::load_from_file("/res/icons/folder16.png"); + m_file_icon = GraphicsBitmap::load_from_file("/res/icons/file16.png"); + m_symlink_icon = GraphicsBitmap::load_from_file("/res/icons/link16.png"); + m_socket_icon = GraphicsBitmap::load_from_file("/res/icons/socket16.png"); + m_executable_icon = GraphicsBitmap::load_from_file("/res/icons/executable16.png"); setpwent(); while (auto* passwd = getpwent()) diff --git a/Applications/FileManager/main.cpp b/Applications/FileManager/main.cpp index f94fbbcd30..6405d9df67 100644 --- a/Applications/FileManager/main.cpp +++ b/Applications/FileManager/main.cpp @@ -54,11 +54,11 @@ int main(int argc, char** argv) directory_table_view->open(editor.text()); }; - auto open_parent_directory_action = GAction::create("Open parent directory", { Mod_Alt, Key_Up }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/parentdirectory16.rgb", { 16, 16 }), [directory_table_view] (const GAction&) { + auto open_parent_directory_action = GAction::create("Open parent directory", { Mod_Alt, Key_Up }, GraphicsBitmap::load_from_file("/res/icons/parentdirectory16.png"), [directory_table_view] (const GAction&) { directory_table_view->open_parent_directory(); }); - auto mkdir_action = GAction::create("New directory...", GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/mkdir.rgb", { 16, 16 }), [&] (const GAction&) { + auto mkdir_action = GAction::create("New directory...", GraphicsBitmap::load_from_file("/res/icons/16x16/mkdir.png"), [&] (const GAction&) { GInputBox input_box("Enter name:", "New directory", window); if (input_box.exec() == GInputBox::ExecOK && !input_box.text_value().is_empty()) { auto new_dir_path = String::format("%s/%s", @@ -75,11 +75,11 @@ int main(int argc, char** argv) } }); - auto copy_action = GAction::create("Copy", GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/copyfile16.rgb", { 16, 16 }), [] (const GAction&) { + auto copy_action = GAction::create("Copy", GraphicsBitmap::load_from_file("/res/icons/copyfile16.png"), [] (const GAction&) { dbgprintf("'Copy' action activated!\n"); }); - auto delete_action = GAction::create("Delete", GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/delete.rgb", { 16, 16 }), [] (const GAction&) { + auto delete_action = GAction::create("Delete", GraphicsBitmap::load_from_file("/res/icons/16x16/delete.png"), [] (const GAction&) { dbgprintf("'Delete' action activated!\n"); }); |