Base: Some work on various icons.
|
@ -61,15 +61,15 @@ int main(int argc, char** argv)
|
||||||
text_editor->set_text(builder.to_string());
|
text_editor->set_text(builder.to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
auto new_action = GAction::create("New document", { Mod_Ctrl, Key_N }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/newdocument16.rgb", { 16, 16 }), [] (const GAction&) {
|
auto new_action = GAction::create("New document", { Mod_Ctrl, Key_N }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/new.rgb", { 16, 16 }), [] (const GAction&) {
|
||||||
dbgprintf("FIXME: Implement File/New");
|
dbgprintf("FIXME: Implement File/New\n");
|
||||||
});
|
});
|
||||||
|
|
||||||
auto open_action = GAction::create("Open document", { Mod_Ctrl, Key_O }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/open16.rgb", { 16, 16 }), [] (const GAction&) {
|
auto open_action = GAction::create("Open document", { Mod_Ctrl, Key_O }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/open.rgb", { 16, 16 }), [] (const GAction&) {
|
||||||
dbgprintf("FIXME: Implement File/Open");
|
dbgprintf("FIXME: Implement File/Open\n");
|
||||||
});
|
});
|
||||||
|
|
||||||
auto save_action = GAction::create("Save document", { Mod_Ctrl, Key_S }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/save16.rgb", { 16, 16 }), [&] (const GAction&) {
|
auto save_action = GAction::create("Save document", { Mod_Ctrl, Key_S }, GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, "/res/icons/16x16/save.rgb", { 16, 16 }), [&] (const GAction&) {
|
||||||
dbgprintf("Writing document to '%s'\n", path.characters());
|
dbgprintf("Writing document to '%s'\n", path.characters());
|
||||||
text_editor->write_to_file(path);
|
text_editor->write_to_file(path);
|
||||||
});
|
});
|
||||||
|
|
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 485 B |
BIN
Base/res/icons/16x16/new.png
Normal file
After Width: | Height: | Size: 5 KiB |
BIN
Base/res/icons/16x16/new.rgb
Normal file
BIN
Base/res/icons/16x16/open.png
Normal file
After Width: | Height: | Size: 490 B |
BIN
Base/res/icons/16x16/open.rgb
Normal file
BIN
Base/res/icons/16x16/save.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
Base/res/icons/16x16/save.rgb
Normal file
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 318 B |