diff options
author | electrikmilk <brandonjordan124@gmail.com> | 2022-02-14 23:27:55 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-15 12:16:23 +0100 |
commit | 8fea7d9752009cc4e6b8b2598d48013edfd0564f (patch) | |
tree | fe78bd8b5910615ae2aec48d601e8b50299d9f8d | |
parent | ffa140c613c5bfc639b76942c43fc21b1e095c35 (diff) | |
download | serenity-8fea7d9752009cc4e6b8b2598d48013edfd0564f.zip |
Spreadsheet: Improve 'Functions Help' button
Add icon and tooltip to 'Functions Help' button.
-rw-r--r-- | Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp index 781341254f..5976465ef1 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp @@ -43,7 +43,9 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe auto& current_cell_label = top_bar.add<GUI::Label>(""); current_cell_label.set_fixed_width(50); - auto& help_button = top_bar.add<GUI::Button>("i"); + auto& help_button = top_bar.add<GUI::Button>(""); + help_button.set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-help.png").release_value_but_fixme_should_propagate_errors()); + help_button.set_tooltip("Functions Help"); help_button.set_fixed_size(20, 20); help_button.on_click = [&](auto) { if (!m_selected_view) { |