Skip to content

Commit

Permalink
UI|Client: Improvements for popup menus and Home Screen
Browse files Browse the repository at this point in the history
Adjusted style of popup menu labels. Added some labels to the
App menu.

Moved the game sort order choice to the left side so it doesn't go
under the notification area.
  • Loading branch information
skyjake committed Jun 25, 2014
1 parent fc0eadf commit 0e9db90
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion doomsday/client/data/defaultstyle.pack/fonts.dei
Expand Up @@ -113,7 +113,8 @@ group separator {
font empty inherits default {
size $: gui.scale(self.size, 0.5)
}
font label inherits small {
font label inherits default {
size $: gui.scale(self.size, 0.7)
weight: bold
}
font annotation inherits small {}
Expand Down
5 changes: 3 additions & 2 deletions doomsday/client/src/ui/widgets/gamefilterwidget.cpp
Expand Up @@ -52,14 +52,15 @@ DENG2_PIMPL(GameFilterWidget)
<< new TabItem(tr("All Games"), AllGames);

sortLabel->setFont("small");
sortLabel->margins().setLeft("");
sortBy->setFont("tab.label");
sortBy->setOpeningDirection(ui::Down);
sortBy->items()
<< new ChoiceItem(tr("Title"), SortByTitle)
<< new ChoiceItem(tr("Identity key"), SortByIdentityKey);

SequentialLayout layout(self.rule().right(), self.rule().top(), ui::Left);
layout << *sortBy << *sortLabel;
SequentialLayout layout(self.rule().left(), self.rule().top(), ui::Right);
layout << *sortLabel << *sortBy;

tabs->rule()
.setInput(Rule::Width, self.rule().width())
Expand Down
5 changes: 4 additions & 1 deletion doomsday/client/src/ui/widgets/taskbarwidget.cpp
Expand Up @@ -427,8 +427,11 @@ TaskBarWidget::TaskBarWidget() : GuiWidget("taskbar"), d(new Instance(this))
<< new ui::ActionItem(tr("Multiplayer Games..."), new SignalAction(this, SLOT(showMultiplayer())))
<< new ui::ActionItem(tr("Connect to Server..."), new SignalAction(this, SLOT(connectToServerManually())))
<< new ui::Item(ui::Item::Separator)
<< new ui::ActionItem(tr("Check for Updates..."), new CommandAction("updateandnotify"))
<< new ui::Item(ui::Item::Separator, tr("Help"))
<< new ui::ActionItem(tr("Show Tutorial"), new SignalAction(this, SLOT(showTutorial())))
<< new ui::Item(ui::Item::Separator)
<< new ui::Item(ui::Item::Separator, tr("Application"))
<< new ui::ActionItem(tr("Check for Updates..."), new CommandAction("updateandnotify"))
<< new ui::ActionItem(tr("About Doomsday"), new SignalAction(this, SLOT(showAbout())))
<< new ui::Item(ui::Item::Separator)
<< new ui::ActionItem(tr("Quit Doomsday"), new CommandAction("quit"));
Expand Down
3 changes: 3 additions & 0 deletions doomsday/libappfw/src/widgets/popupmenuwidget.cpp
Expand Up @@ -175,6 +175,9 @@ DENG_GUI_PIMPL(PopupMenuWidget)
}
else
{
// Make it all caps.
widget.as<LabelWidget>().setText(item.label().toUpper());

widget.margins().set("halfunit").setLeft("unit");
widget.setFont("separator.label");
/*
Expand Down

0 comments on commit 0e9db90

Please sign in to comment.