Skip to content

Commit

Permalink
Default Style|TaskBar: Added a gear icon for the Control Panel
Browse files Browse the repository at this point in the history
In the future, this can be used for Settings menus.
  • Loading branch information
skyjake committed Jun 2, 2013
1 parent c6b6bea commit e674e4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions doomsday/client/data/defaultstyle.pack/images.dei
Expand Up @@ -5,3 +5,5 @@ group logo {
image px256 { path = "graphics/deng-logo-256.png" }
image px512 { path = "graphics/deng-logo-512.png" }
}

image gear { path = "graphics/gear.png" }
4 changes: 3 additions & 1 deletion doomsday/client/src/ui/widgets/taskbarwidget.cpp
Expand Up @@ -152,8 +152,10 @@ TaskBarWidget::TaskBarWidget() : GuiWidget("TaskBar"), d(new Instance(this))
add(console);

ButtonWidget *panel = new ButtonWidget;
panel->setText("Settings");
panel->setImage(style().images().image("gear"));
panel->setWidthPolicy(LabelWidget::Expand);
panel->setHeightPolicy(LabelWidget::Filled);
panel->setImageFit(FitToHeight | OriginalAspectRatio);
panel->setAction(new CommandAction("panel"));
panel->rule()
.setInput(Rule::Height, rule().height())
Expand Down

0 comments on commit e674e4e

Please sign in to comment.