summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-08-27 09:05:56 +0430
committerAndreas Kling <kling@serenityos.org>2020-08-27 10:27:20 +0200
commit7465c51ef2208e8bac75f646222cd3495fa602a3 (patch)
treebef760a655af96ba55fb554e1c1bf5e6dc475293 /Applications
parentdd4bd0943aa9d131441722369ba07a99d77f89c0 (diff)
downloadserenity-7465c51ef2208e8bac75f646222cd3495fa602a3.zip
Base+LibGUI+Spreadsheet: Add icons for Spreadsheet
Also adds a Spreadsheet.af.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Spreadsheet/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Applications/Spreadsheet/main.cpp b/Applications/Spreadsheet/main.cpp
index 6e0f6e9ef9..e38a7d40dd 100644
--- a/Applications/Spreadsheet/main.cpp
+++ b/Applications/Spreadsheet/main.cpp
@@ -86,6 +86,7 @@ int main(int argc, char* argv[])
auto window = GUI::Window::construct();
window->set_title("Spreadsheet");
window->resize(640, 480);
+ window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-spreadsheet.png"));
auto& spreadsheet_widget = window->set_main_widget<Spreadsheet::SpreadsheetWidget>(NonnullRefPtrVector<Spreadsheet::Sheet> {}, filename == nullptr);
@@ -113,8 +114,8 @@ int main(int argc, char* argv[])
file_menu.add_action(GUI::CommonActions::make_save_action([&](auto&) {
if (spreadsheet_widget.current_filename().is_empty()) {
- String name = "sheet";
- Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, name, "json");
+ String name = "workbook";
+ Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, name, "sheets");
if (!save_path.has_value())
return;
@@ -126,8 +127,8 @@ int main(int argc, char* argv[])
file_menu.add_action(GUI::CommonActions::make_save_as_action([&](auto&) {
auto current_filename = spreadsheet_widget.current_filename();
- String name = "sheet";
- Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, name, "json");
+ String name = "workbook";
+ Optional<String> save_path = GUI::FilePicker::get_save_filepath(window, name, "sheets");
if (!save_path.has_value())
return;