Skip to content

Commit ffa140c

Browse files
electrikmilkawesomekling
authored andcommitted
Spreadsheet: Insert missing icons
Add icons where they are missing.
1 parent df084b4 commit ffa140c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
9090
m_workbook->add_sheet("Sheet 1");
9191

9292
m_tab_context_menu = GUI::Menu::construct();
93-
m_rename_action = GUI::Action::create("Rename...", [this](auto&) {
93+
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&) {
9494
VERIFY(m_tab_context_menu_sheet_view);
9595

9696
auto* sheet_ptr = m_tab_context_menu_sheet_view->sheet_if_available();
@@ -104,7 +104,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
104104
}
105105
});
106106
m_tab_context_menu->add_action(*m_rename_action);
107-
m_tab_context_menu->add_action(GUI::Action::create("Add new sheet...", [this](auto&) {
107+
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&) {
108108
String name;
109109
if (GUI::InputBox::show(window(), name, "Name for new sheet", "Create sheet") == GUI::Dialog::ExecOK) {
110110
NonnullRefPtrVector<Sheet> new_sheets;
@@ -204,7 +204,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
204204
window());
205205

206206
m_functions_help_action = GUI::Action::create(
207-
"&Functions Help", [&](auto&) {
207+
"&Functions Help", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-help.png").release_value_but_fixme_should_propagate_errors(), [&](auto&) {
208208
if (auto* worksheet_ptr = current_worksheet_if_available()) {
209209
auto docs = worksheet_ptr->gather_documentation();
210210
auto help_window = Spreadsheet::HelpWindow::the(window());

0 commit comments

Comments
 (0)