1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

Applications: Use application icons for dialog windows

This commit is contained in:
Brendan Coles 2020-10-31 00:25:30 +00:00 committed by Andreas Kling
parent 15b68b4653
commit e569f7fd1c
5 changed files with 7 additions and 0 deletions

View file

@ -61,6 +61,7 @@ CellTypeDialog::CellTypeDialog(const Vector<Position>& positions, Sheet& sheet,
builder.appendff("Format {} Cells", positions.size());
set_title(builder.string_view());
set_icon(parent->icon());
resize(285, 360);
auto& main_widget = set_main_widget<GUI::Widget>();

View file

@ -81,6 +81,7 @@ HelpWindow::HelpWindow(GUI::Window* parent)
{
resize(530, 365);
set_title("Spreadsheet Functions Help");
set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-help.png"));
auto& widget = set_main_widget<GUI::Widget>();
widget.set_layout<GUI::VerticalBoxLayout>().set_margins({ 4, 4, 4, 4 });