diff options
author | electrikmilk <brandonjordan124@gmail.com> | 2022-02-14 23:27:01 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-15 12:16:23 +0100 |
commit | ffa140c613c5bfc639b76942c43fc21b1e095c35 (patch) | |
tree | 51ac74b3f8bf1a7448b8858955b0314cf7370b24 /Userland/Applications | |
parent | df084b48e69f7e1c9d08d1d07b652faa3696df12 (diff) | |
download | serenity-ffa140c613c5bfc639b76942c43fc21b1e095c35.zip |
Spreadsheet: Insert missing icons
Add icons where they are missing.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp index 0401aa32f7..781341254f 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp @@ -90,7 +90,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe m_workbook->add_sheet("Sheet 1"); m_tab_context_menu = GUI::Menu::construct(); - m_rename_action = GUI::Action::create("Rename...", [this](auto&) { + m_rename_action = GUI::Action::create("Rename...", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/rename.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) { VERIFY(m_tab_context_menu_sheet_view); auto* sheet_ptr = m_tab_context_menu_sheet_view->sheet_if_available(); @@ -104,7 +104,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe } }); m_tab_context_menu->add_action(*m_rename_action); - m_tab_context_menu->add_action(GUI::Action::create("Add new sheet...", [this](auto&) { + m_tab_context_menu->add_action(GUI::Action::create("Add new sheet...", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/new-tab.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) { String name; if (GUI::InputBox::show(window(), name, "Name for new sheet", "Create sheet") == GUI::Dialog::ExecOK) { NonnullRefPtrVector<Sheet> new_sheets; @@ -204,7 +204,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe window()); m_functions_help_action = GUI::Action::create( - "&Functions Help", [&](auto&) { + "&Functions Help", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-help.png").release_value_but_fixme_should_propagate_errors(), [&](auto&) { if (auto* worksheet_ptr = current_worksheet_if_available()) { auto docs = worksheet_ptr->gather_documentation(); auto help_window = Spreadsheet::HelpWindow::the(window()); |