Skip to content

Commit

Permalink
Shell: About dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 3, 2019
1 parent e573b3b commit 73a3820
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions doomsday/tools/shell/src/aboutdialog.cpp
Expand Up @@ -13,15 +13,27 @@ AboutDialog::AboutDialog()
{
// AutoRef<Rule> width = rule("unit") * 100;

title().setText("Doomsday Shell");
buttons() << new ButtonItem(Default | Accept, "OK");
title().setText("Doomsday Shell " SHELL_VERSION);
message().hide();

buttons() << new ButtonItem(Default | Accept, "Close");

auto *logo = new LabelWidget;
logo->setImage(GuiShellApp::imageBank().image("logo"));
logo->rule().setInput(Rule::Height, logo->rule().width());

//logo->rule().setInput(Rule::Height, logo->rule().width());
logo->setSizePolicy(ui::Fixed, ui::Expand);
logo->setImageFit(ui::FitToSize);
area().add(logo);

auto *text = LabelWidget::newWithText("Copyright © 2013-2019 Jaakko Keränen et al.\n\n"
"The Shell is a utility for controlling and monitoring "
"Doomsday servers.",
&area());
text->setSizePolicy(ui::Fixed, ui::Expand);
text->setTextLineAlignment(ui::AlignLeft);
text->setAlignment(ui::AlignLeft);
text->setMaximumTextWidth(text->rule().width());

updateLayout();

// setLayoutWidth(width);
Expand Down

0 comments on commit 73a3820

Please sign in to comment.