From 5d667ff148f12e7655dea1c68728d5efdb0b7221 Mon Sep 17 00:00:00 2001 From: Steffen Baranowksy Date: Fri, 13 Jan 2017 10:37:07 +0100 Subject: [PATCH 1/5] SideBarButton set text below the icon --- src/gui/widgets/SideBar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/widgets/SideBar.cpp b/src/gui/widgets/SideBar.cpp index 990bae7f651..c8d04c765c1 100644 --- a/src/gui/widgets/SideBar.cpp +++ b/src/gui/widgets/SideBar.cpp @@ -112,6 +112,7 @@ void SideBar::appendTab( SideBarWidget *widget ) SideBarButton *button = new SideBarButton( orientation(), this ); button->setText( widget->title() ); button->setIcon( widget->icon() ); + button->setLayoutDirection( Qt::RightToLeft ); button->setCheckable( true ); m_widgets[button] = widget; m_btnGroup.addButton( button ); From e60aa0a9ce4a409bfd451221af9cfd3a8105cca5 Mon Sep 17 00:00:00 2001 From: Steffen Baranowsky Date: Fri, 13 Jan 2017 20:45:27 +0100 Subject: [PATCH 2/5] change color of checked sidebarbutton --- data/themes/default/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/themes/default/style.css b/data/themes/default/style.css index d8566225913..e4d2bdf604c 100644 --- a/data/themes/default/style.css +++ b/data/themes/default/style.css @@ -494,7 +494,7 @@ SideBar QToolButton:pressed { } SideBar QToolButton:checked { - background: none; + background: #2f353b; border: none; font-size: 12px; } From a51a83b247b73d46d9ddfeb0c38279d2803efda8 Mon Sep 17 00:00:00 2001 From: Steffen Baranowsky Date: Fri, 13 Jan 2017 21:45:25 +0100 Subject: [PATCH 3/5] adds a space to the sideBarButton title --- src/gui/widgets/SideBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgets/SideBar.cpp b/src/gui/widgets/SideBar.cpp index c8d04c765c1..00fb2c6f2cb 100644 --- a/src/gui/widgets/SideBar.cpp +++ b/src/gui/widgets/SideBar.cpp @@ -110,7 +110,7 @@ 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 ); From f18e2407175ea122250313a6331ae3ac6d06d22e Mon Sep 17 00:00:00 2001 From: Steffen Baranowksy Date: Mon, 23 Jan 2017 13:19:45 +0100 Subject: [PATCH 4/5] add gradient to checked side bar button --- data/themes/default/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/themes/default/style.css b/data/themes/default/style.css index e4d2bdf604c..8f49e0478c5 100644 --- a/data/themes/default/style.css +++ b/data/themes/default/style.css @@ -494,7 +494,7 @@ SideBar QToolButton:pressed { } SideBar QToolButton:checked { - background: #2f353b; + background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #4b525b, stop:1 #2f333a); border: none; font-size: 12px; } From 849261d6dd80871b70333e279637d96b45aecae9 Mon Sep 17 00:00:00 2001 From: Steffen Baranowksy Date: Mon, 6 Feb 2017 10:37:53 +0100 Subject: [PATCH 5/5] whitespaces --- data/themes/default/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/themes/default/style.css b/data/themes/default/style.css index 8f49e0478c5..8d328c88351 100644 --- a/data/themes/default/style.css +++ b/data/themes/default/style.css @@ -494,7 +494,7 @@ SideBar QToolButton:pressed { } SideBar QToolButton:checked { - background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #4b525b, stop:1 #2f333a); + background: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1, stop:0 #4b525b, stop:1 #2f333a); border: none; font-size: 12px; }