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:
@@ -5,6 +5,7 @@
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QFontDatabase>
|
||||
#include <QIcon>
|
||||
#include <QPainter>
|
||||
#include <QWidget>
|
||||
|
||||
@@ -157,6 +158,19 @@ namespace utility
|
||||
return QPixmap::fromImage(image);
|
||||
}
|
||||
|
||||
QIcon createButtonIcon(const std::string& iconPath, const std::string& colorId)
|
||||
{
|
||||
QPixmap pixmap(iconPath.c_str());
|
||||
|
||||
QIcon icon(utility::colorizePixmap(pixmap, ColorScheme::getInstance()->getColor(colorId + "/icon").c_str()));
|
||||
icon.addPixmap(
|
||||
utility::colorizePixmap(pixmap, ColorScheme::getInstance()->getColor(colorId + "/icon_disabled").c_str()),
|
||||
QIcon::Disabled
|
||||
);
|
||||
|
||||
return icon;
|
||||
}
|
||||
|
||||
void copyNewFilesFromDirectory(QString src, QString dst)
|
||||
{
|
||||
QDir dir(src);
|
||||
|
||||
Reference in New Issue
Block a user