Skip to content

Commit

Permalink
libappfw|FoldPanelWidget: Adjusted fold indicator placement
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 24, 2014
1 parent 0ba6bff commit 7ad27d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doomsday/libappfw/src/widgets/foldpanelwidget.cpp
Expand Up @@ -86,9 +86,14 @@ ButtonWidget *FoldPanelWidget::makeTitle(String const &text)

// Fold indicator.
d->title->setImage(new Instance::FoldImage(*this));
d->title->setTextAlignment(ui::AlignRight);
d->title->setAlignment(ui::AlignCenter, LabelWidget::AlignSeparately);
d->title->setTextAlignment(ui::AlignLeft);
d->title->setImageAlignment(ui::AlignRight);
d->title->setTextGap("gap");

// By default, make the button as wide as the fold panel.
d->title->rule().setInput(Rule::Width, rule().width());

return d->title;
}

Expand Down

0 comments on commit 7ad27d3

Please sign in to comment.