diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2017-05-16 23:40:49 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-06-06 12:22:06 +0000 |
commit | 377979fe5e96a584e439c736c6673cfcf054261e (patch) | |
tree | bd518ee6ba1fe0108e2de741115ffe6b77d627f6 /src/plugins/genericprojectmanager | |
parent | 20a110329600e0037a7ca63c393eff4322c80d5c (diff) | |
download | qt-creator-377979fe5e96a584e439c736c6673cfcf054261e.tar.gz |
Update wizard template icons
The icons have been redesigned to have a more consistent and clean look.
The colors work well with both dark and light themes. The dimensions of
the icons have been made larger in order to facilitate their use in an
icon grid.
A follow-up commit will add more wizard templates that make use of the
larger icons in order to depict various Qt Quick UI layouts.
Some icons (Qt Quick Application, Qt Quick Controls 2 Application) were
unchanged, as the follow-up commit will remove them in favor of
more specific templates.
Task-number: QTPM-395
Change-Id: I5804c3fb92c60e53e1380cfb05d4c7f14e877d8a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/genericprojectmanager')
-rw-r--r-- | src/plugins/genericprojectmanager/genericprojectmanager.pro | 2 | ||||
-rw-r--r-- | src/plugins/genericprojectmanager/genericprojectmanager.qrc | 6 | ||||
-rw-r--r-- | src/plugins/genericprojectmanager/genericprojectwizard.cpp | 9 | ||||
-rw-r--r-- | src/plugins/genericprojectmanager/images/genericprojectmanager.png | bin | 0 -> 530 bytes | |||
-rw-r--r-- | src/plugins/genericprojectmanager/images/genericprojectmanager@2x.png | bin | 0 -> 863 bytes |
5 files changed, 9 insertions, 8 deletions
diff --git a/src/plugins/genericprojectmanager/genericprojectmanager.pro b/src/plugins/genericprojectmanager/genericprojectmanager.pro index ba64569783..110eaac850 100644 --- a/src/plugins/genericprojectmanager/genericprojectmanager.pro +++ b/src/plugins/genericprojectmanager/genericprojectmanager.pro @@ -23,3 +23,5 @@ equals(TEST, 1) { SOURCES += genericprojectplugin_test.cpp DEFINES += SRCDIR=\\\"$$PWD\\\" } + +RESOURCES += genericprojectmanager.qrc diff --git a/src/plugins/genericprojectmanager/genericprojectmanager.qrc b/src/plugins/genericprojectmanager/genericprojectmanager.qrc new file mode 100644 index 0000000000..295b547708 --- /dev/null +++ b/src/plugins/genericprojectmanager/genericprojectmanager.qrc @@ -0,0 +1,6 @@ +<RCC> + <qresource prefix="/genericprojectmanager"> + <file>images/genericprojectmanager.png</file> + <file>images/genericprojectmanager@2x.png</file> + </qresource> +</RCC> diff --git a/src/plugins/genericprojectmanager/genericprojectwizard.cpp b/src/plugins/genericprojectmanager/genericprojectwizard.cpp index 1ec8785e08..c91abba26d 100644 --- a/src/plugins/genericprojectmanager/genericprojectwizard.cpp +++ b/src/plugins/genericprojectmanager/genericprojectwizard.cpp @@ -111,14 +111,7 @@ QString GenericProjectWizardDialog::projectName() const GenericProjectWizard::GenericProjectWizard() { setSupportedProjectTypes({Constants::GENERICPROJECT_ID}); - // TODO do something about the ugliness of standard icons in sizes different than 16, 32, 64, 128 - { - QPixmap icon(22, 22); - icon.fill(Qt::transparent); - QPainter p(&icon); - p.drawPixmap(3, 3, 16, 16, QApplication::style()->standardIcon(QStyle::SP_DirIcon).pixmap(16)); - setIcon(icon); - } + setIcon(QIcon(QLatin1String(":/genericprojectmanager/images/genericprojectmanager.png"))); setDisplayName(tr("Import Existing Project")); setId("Z.Makefile"); setDescription(tr("Imports existing projects that do not use qmake, CMake or Autotools. " diff --git a/src/plugins/genericprojectmanager/images/genericprojectmanager.png b/src/plugins/genericprojectmanager/images/genericprojectmanager.png Binary files differnew file mode 100644 index 0000000000..37784c04dc --- /dev/null +++ b/src/plugins/genericprojectmanager/images/genericprojectmanager.png diff --git a/src/plugins/genericprojectmanager/images/genericprojectmanager@2x.png b/src/plugins/genericprojectmanager/images/genericprojectmanager@2x.png Binary files differnew file mode 100644 index 0000000000..e7d3c59d2b --- /dev/null +++ b/src/plugins/genericprojectmanager/images/genericprojectmanager@2x.png |