Add icons for Open and Save As in history view

main
Isaiah Odhner 2021-02-12 23:22:37 -05:00
parent 545120e9a6
commit aad9ced0b4
3 changed files with 2 additions and 2 deletions

BIN
help/p_open.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

BIN
help/p_save.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

View File

@ -682,7 +682,7 @@ function open_from_image_info(info, callback, canceled){
current_history_node.name = localize("Open");
current_history_node.image_data = main_ctx.getImageData(0, 0, main_canvas.width, main_canvas.height);
current_history_node.icon = null; // @TODO
current_history_node.icon = get_help_folder_icon("p_open.png");
$G.triggerHandler("session-update"); // autosave
$G.triggerHandler("history-update"); // update history view
@ -2743,7 +2743,7 @@ function update_from_saved_file(blob) {
const format = image_formats.find(({mimeType})=> mimeType === info.file_format);
undoable({
name: `${localize("Save As")} ${format ? format.name : info.file_format}`,
icon: get_help_folder_icon("p_monochrome_undo.png"),
icon: get_help_folder_icon("p_save.png"),
}, ()=> {
main_ctx.copy(info.image || info.image_data);
});