ui: Styled code navigation

* Defined final icons and colors for code navigation buttons
* Added disabled color for all buttons in search and code navigation UI
This commit is contained in:
Eberhard Graether
2017-01-17 15:17:17 +01:00
parent db5a4618fe
commit 79ad952d13
18 changed files with 195 additions and 57 deletions
+6 -9
View File
@@ -9,7 +9,6 @@
#include "qt/element/QtSmartSearchBox.h"
#include "qt/utility/utilityQt.h"
#include "settings/ApplicationSettings.h"
#include "settings/ColorScheme.h"
QtSearchBar::QtSearchBar()
{
@@ -102,16 +101,14 @@ void QtSearchBar::refreshStyle()
m_searchButton->setFixedHeight(m_searchBox->height() + 5);
m_homeButton->setFixedHeight(m_searchBox->height() + 5);
std::string map = ResourcePaths::getGuiPath() + "search_view/images/search.png";
m_searchButton->setIcon(utility::colorizePixmap(
QPixmap(map.c_str()),
ColorScheme::getInstance()->getColor("search/button/icon").c_str()
m_searchButton->setIcon(utility::createButtonIcon(
ResourcePaths::getGuiPath() + "search_view/images/search.png",
"search/button"
));
map = ResourcePaths::getGuiPath() + "search_view/images/home.png";
m_homeButton->setIcon(utility::colorizePixmap(
QPixmap(map.c_str()),
ColorScheme::getInstance()->getColor("search/button/icon").c_str()
m_homeButton->setIcon(utility::createButtonIcon(
ResourcePaths::getGuiPath() + "search_view/images/home.png",
"search/button"
));
}