forked from qt-creator/qt-creator
Icon refresh: First step towards the new Qt Creator themes
http://blog.qt.io/blog/author/didesous/ announced new designs/themes for Qt Creator. This patch replaces many of the existing toolbar icons with recolorizable masks for better theming support. Change-Id: I557aa485205fe2624f33724226f698c303342b40 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <coreplugin/coreconstants.h>
|
||||
|
||||
#include <utils/wizard.h>
|
||||
#include <utils/themehelper.h>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
@@ -52,9 +53,11 @@ CustomWidgetWidgetsWizardPage::CustomWidgetWidgetsWizardPage(QWidget *parent) :
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
m_ui->tabStackWidget->setLayout(m_tabStackLayout);
|
||||
m_ui->addButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_PLUS)));
|
||||
m_ui->addButton->setIcon(Utils::ThemeHelper::themedIcon(
|
||||
QLatin1String(Core::Constants::ICON_PLUS)));
|
||||
connect(m_ui->addButton, SIGNAL(clicked()), m_ui->classList, SLOT(startEditingNewClassItem()));
|
||||
m_ui->deleteButton->setIcon(QIcon(QLatin1String(Core::Constants::ICON_MINUS)));
|
||||
m_ui->deleteButton->setIcon(Utils::ThemeHelper::themedIcon(
|
||||
QLatin1String(Core::Constants::ICON_MINUS)));
|
||||
connect(m_ui->deleteButton, SIGNAL(clicked()), m_ui->classList, SLOT(removeCurrentClass()));
|
||||
m_ui->deleteButton->setEnabled(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user