diff options
author | Alessandro Portale <[email protected]> | 2015-10-19 12:55:13 +0200 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2015-10-23 16:04:52 +0000 |
commit | b8bdc6f669d0949292be217e84fe046ea8450e1c (patch) | |
tree | adf7521912f2c28b3b571049938f81ce0146207e /src/plugins/imageviewer/imageviewer.cpp | |
parent | e6d038364fe44d96b93fa2f5e40334e7ecad13c2 (diff) |
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 <[email protected]>
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/plugins/imageviewer/imageviewer.cpp')
-rw-r--r-- | src/plugins/imageviewer/imageviewer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/imageviewer/imageviewer.cpp b/src/plugins/imageviewer/imageviewer.cpp index 2d420a4b763..1614ea3032b 100644 --- a/src/plugins/imageviewer/imageviewer.cpp +++ b/src/plugins/imageviewer/imageviewer.cpp @@ -41,6 +41,7 @@ #include <coreplugin/actionmanager/command.h> #include <utils/fileutils.h> #include <utils/qtcassert.h> +#include <utils/themehelper.h> #include <QMap> #include <QFileInfo> @@ -105,6 +106,12 @@ void ImageViewer::ctor() // toolbar d->toolbar = new QWidget(); d->ui_toolbar.setupUi(d->toolbar); + d->ui_toolbar.toolButtonZoomIn->setIcon(Utils::ThemeHelper::themedIcon( + QLatin1String(Core::Constants::ICON_PLUS))); + d->ui_toolbar.toolButtonZoomOut->setIcon(Utils::ThemeHelper::themedIcon( + QLatin1String(Core::Constants::ICON_MINUS))); + d->ui_toolbar.toolButtonFitToScreen->setIcon(Utils::ThemeHelper::themedIcon( + QLatin1String(Core::Constants::ICON_ZOOM))); // icons update - try to use system theme updateButtonIconByTheme(d->ui_toolbar.toolButtonZoomIn, QLatin1String("zoom-in")); |