Skip to content

Commit

Permalink
SideBarButton set text below the icon (#3256)
Browse files Browse the repository at this point in the history
* SideBarButton set text below the icon

* change color of checked sidebarbutton

* adds a space to the sideBarButton title

* add gradient to checked side bar button

* whitespaces
  • Loading branch information
BaraMGB authored and tresf committed Feb 6, 2017
1 parent 9e85d7c commit 3070cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/themes/default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ SideBar QToolButton:pressed {
}

SideBar QToolButton:checked {
background: none;
background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #4b525b, stop:1 #2f333a);
border: none;
font-size: 12px;
}
Expand Down
3 changes: 2 additions & 1 deletion src/gui/widgets/SideBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ SideBar::~SideBar()
void SideBar::appendTab( SideBarWidget *widget )
{
SideBarButton *button = new SideBarButton( orientation(), this );
button->setText( widget->title() );
button->setText( " " + widget->title() );
button->setIcon( widget->icon() );
button->setLayoutDirection( Qt::RightToLeft );
button->setCheckable( true );
m_widgets[button] = widget;
m_btnGroup.addButton( button );
Expand Down

0 comments on commit 3070cec

Please sign in to comment.