forked from qt-creator/qt-creator
Flat and themeable side bar icons
This patch adds flat side bar icons according to http://blog.qt.io/blog/author/didesous/ The flat icons are supposed to be opt-in, via the theme flag "FlatSideBarIcons=true". It is false by default for the default theme for now. Change-Id: I1cbe69d4e138d5d23c0172a374933ac7a4ce8a5b Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
#include <coreplugin/modemanager.h>
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/coreicons.h>
|
||||
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
|
||||
#include <QPointer>
|
||||
@@ -90,7 +92,8 @@ DesignMode::DesignMode()
|
||||
setContext(Context(Constants::C_DESIGN_MODE));
|
||||
setWidget(d->m_stackWidget);
|
||||
setDisplayName(tr("Design"));
|
||||
setIcon(QIcon(QLatin1String(":/fancyactionbar/images/mode_Design.png")));
|
||||
setIcon(Utils::Icon::modeIcon(Icons::MODE_DESIGN_CLASSIC,
|
||||
Icons::MODE_DESIGN_FLAT, Icons::MODE_DESIGN_FLAT_ACTIVE));
|
||||
setPriority(Constants::P_MODE_DESIGN);
|
||||
setId(Constants::MODE_DESIGN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user