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>
@@ -33,6 +33,8 @@
|
|||||||
#include "historycompleter.h"
|
#include "historycompleter.h"
|
||||||
#include "hostosinfo.h"
|
#include "hostosinfo.h"
|
||||||
#include "qtcassert.h"
|
#include "qtcassert.h"
|
||||||
|
#include "themehelper.h"
|
||||||
|
#include "stylehelper.h"
|
||||||
|
|
||||||
#include <QAbstractItemView>
|
#include <QAbstractItemView>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@@ -366,7 +368,10 @@ void FancyLineEdit::setFiltering(bool on)
|
|||||||
QIcon icon = QIcon::fromTheme(layoutDirection() == Qt::LeftToRight ?
|
QIcon icon = QIcon::fromTheme(layoutDirection() == Qt::LeftToRight ?
|
||||||
QLatin1String("edit-clear-locationbar-rtl") :
|
QLatin1String("edit-clear-locationbar-rtl") :
|
||||||
QLatin1String("edit-clear-locationbar-ltr"),
|
QLatin1String("edit-clear-locationbar-ltr"),
|
||||||
QIcon::fromTheme(QLatin1String("edit-clear"), QIcon(QLatin1String(":/core/images/editclear.png"))));
|
QIcon::fromTheme(QLatin1String("edit-clear"),
|
||||||
|
ThemeHelper::recoloredPixmap(
|
||||||
|
QLatin1String(":/core/images/editclear.png"),
|
||||||
|
ThemeHelper::inputfieldIconColor())));
|
||||||
|
|
||||||
setButtonPixmap(Right, icon.pixmap(16));
|
setButtonPixmap(Right, icon.pixmap(16));
|
||||||
setButtonVisible(Right, true);
|
setButtonVisible(Right, true);
|
||||||
|
@@ -35,15 +35,15 @@ QtcPlugin {
|
|||||||
"ianalyzertool.h",
|
"ianalyzertool.h",
|
||||||
"startremotedialog.cpp",
|
"startremotedialog.cpp",
|
||||||
"startremotedialog.h",
|
"startremotedialog.h",
|
||||||
"images/analyzer_category.png",
|
|
||||||
"images/analyzer_start_small.png",
|
|
||||||
"images/analyzer_stop_small.png",
|
|
||||||
"images/mode_analyze.png",
|
|
||||||
"images/mode_analyze@2x.png",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Group {
|
||||||
|
name: "Images"
|
||||||
|
prefix: "images/"
|
||||||
|
files: ["*.png"]
|
||||||
|
}
|
||||||
|
|
||||||
Export {
|
Export {
|
||||||
Depends { name: "CPlusPlus" }
|
Depends { name: "CPlusPlus" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
<file>images/mode_analyze.png</file>
|
<file>images/mode_analyze.png</file>
|
||||||
<file>images/mode_analyze@2x.png</file>
|
<file>images/mode_analyze@2x.png</file>
|
||||||
<file>images/analyzer_category.png</file>
|
<file>images/analyzer_category.png</file>
|
||||||
<file>images/analyzer_start_small.png</file>
|
<file>images/analyzer_overlay_small.png</file>
|
||||||
<file>images/analyzer_stop_small.png</file>
|
<file>images/analyzer_overlay_small@2x.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@@ -54,8 +54,7 @@ const char G_ANALYZER_REMOTE_TOOLS[] = "Menu.Group.Analyzer.RemoteTools";
|
|||||||
const char G_ANALYZER_OPTIONS[] = "Menu.Group.Analyzer.Options";
|
const char G_ANALYZER_OPTIONS[] = "Menu.Group.Analyzer.Options";
|
||||||
|
|
||||||
// Manager controls.
|
// Manager controls.
|
||||||
const char ANALYZER_CONTROL_START_ICON[] = ":/images/analyzer_start_small.png";
|
const char ANALYZER_CONTROL_START_ICON[] = ":/images/analyzer_overlay_small.png,:/core/images/run_overlay_small.png|IconsRunColor";
|
||||||
const char ANALYZER_CONTROL_STOP_ICON[] = ":/images/analyzer_stop_small.png";
|
|
||||||
|
|
||||||
const char ANALYZERTASK_ID[] = "Analyzer.TaskId";
|
const char ANALYZERTASK_ID[] = "Analyzer.TaskId";
|
||||||
|
|
||||||
|
@@ -61,6 +61,7 @@
|
|||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/checkablemessagebox.h>
|
#include <utils/checkablemessagebox.h>
|
||||||
#include <utils/statuslabel.h>
|
#include <utils/statuslabel.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@@ -240,14 +241,16 @@ void AnalyzerManagerPrivate::setupActions()
|
|||||||
menubar->addMenu(mtools, m_menu);
|
menubar->addMenu(mtools, m_menu);
|
||||||
|
|
||||||
m_startAction = new QAction(tr("Start"), m_menu);
|
m_startAction = new QAction(tr("Start"), m_menu);
|
||||||
m_startAction->setIcon(QIcon(QLatin1String(ANALYZER_CONTROL_START_ICON)));
|
m_startAction->setIcon(Utils::ThemeHelper::themedIcon(
|
||||||
|
QLatin1String(ANALYZER_CONTROL_START_ICON)));
|
||||||
ActionManager::registerAction(m_startAction, "Analyzer.Start");
|
ActionManager::registerAction(m_startAction, "Analyzer.Start");
|
||||||
connect(m_startAction, &QAction::triggered,
|
connect(m_startAction, &QAction::triggered,
|
||||||
this, &AnalyzerManagerPrivate::startCurrentTool);
|
this, &AnalyzerManagerPrivate::startCurrentTool);
|
||||||
|
|
||||||
m_stopAction = new QAction(tr("Stop"), m_menu);
|
m_stopAction = new QAction(tr("Stop"), m_menu);
|
||||||
m_stopAction->setEnabled(false);
|
m_stopAction->setEnabled(false);
|
||||||
m_stopAction->setIcon(QIcon(QLatin1String(ANALYZER_CONTROL_STOP_ICON)));
|
m_stopAction->setIcon(Utils::ThemeHelper::themedIcon(
|
||||||
|
QLatin1String(ProjectExplorer::Constants::ICON_STOP_SMALL)));
|
||||||
command = ActionManager::registerAction(m_stopAction, "Analyzer.Stop");
|
command = ActionManager::registerAction(m_stopAction, "Analyzer.Stop");
|
||||||
m_menu->addAction(command, G_ANALYZER_CONTROL);
|
m_menu->addAction(command, G_ANALYZER_CONTROL);
|
||||||
|
|
||||||
|
@@ -51,7 +51,7 @@ AnalyzerRunControl::AnalyzerRunControl(const AnalyzerStartParameters &sp,
|
|||||||
RunConfiguration *runConfiguration)
|
RunConfiguration *runConfiguration)
|
||||||
: RunControl(runConfiguration, sp.runMode)
|
: RunControl(runConfiguration, sp.runMode)
|
||||||
{
|
{
|
||||||
setIcon(QLatin1String(":/images/analyzer_start_small.png"));
|
setIcon(QLatin1String(Constants::ANALYZER_CONTROL_START_ICON));
|
||||||
|
|
||||||
m_sp = sp;
|
m_sp = sp;
|
||||||
|
|
||||||
|
BIN
src/plugins/analyzerbase/images/analyzer_overlay_small.png
Normal file
After Width: | Height: | Size: 109 B |
BIN
src/plugins/analyzerbase/images/analyzer_overlay_small@2x.png
Normal file
After Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 314 B |
@@ -36,6 +36,7 @@
|
|||||||
#include "androidmanager.h"
|
#include "androidmanager.h"
|
||||||
#include "ui_androidbuildapkwidget.h"
|
#include "ui_androidbuildapkwidget.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
#include <projectexplorer/buildconfiguration.h>
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
@@ -43,6 +44,7 @@
|
|||||||
|
|
||||||
#include <utils/fancylineedit.h>
|
#include <utils/fancylineedit.h>
|
||||||
#include <utils/pathchooser.h>
|
#include <utils/pathchooser.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
|
|
||||||
@@ -89,8 +91,12 @@ AndroidBuildApkWidget::AndroidBuildApkWidget(AndroidBuildApkStep *step)
|
|||||||
m_ui->KeystoreLocationPathChooser->setInitialBrowsePathBackup(QDir::homePath());
|
m_ui->KeystoreLocationPathChooser->setInitialBrowsePathBackup(QDir::homePath());
|
||||||
m_ui->KeystoreLocationPathChooser->setPromptDialogFilter(tr("Keystore files (*.keystore *.jks)"));
|
m_ui->KeystoreLocationPathChooser->setPromptDialogFilter(tr("Keystore files (*.keystore *.jks)"));
|
||||||
m_ui->KeystoreLocationPathChooser->setPromptDialogTitle(tr("Select Keystore File"));
|
m_ui->KeystoreLocationPathChooser->setPromptDialogTitle(tr("Select Keystore File"));
|
||||||
|
m_ui->signingDebugWarningIcon->setPixmap(
|
||||||
|
Utils::ThemeHelper::themedIconPixmap(QLatin1String(Core::Constants::ICON_WARNING)));
|
||||||
m_ui->signingDebugWarningIcon->hide();
|
m_ui->signingDebugWarningIcon->hide();
|
||||||
m_ui->signingDebugWarningLabel->hide();
|
m_ui->signingDebugWarningLabel->hide();
|
||||||
|
m_ui->signingDebugDeployErrorIcon->setPixmap(
|
||||||
|
Utils::ThemeHelper::themedIconPixmap(QLatin1String(Core::Constants::ICON_ERROR)));
|
||||||
signPackageCheckBoxToggled(m_step->signPackage());
|
signPackageCheckBoxToggled(m_step->signPackage());
|
||||||
|
|
||||||
m_ui->useGradleCheckBox->setChecked(m_step->useGradle());
|
m_ui->useGradleCheckBox->setChecked(m_step->useGradle());
|
||||||
|
@@ -65,12 +65,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/warning.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -133,12 +127,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/error.png</pixmap>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||||
</property>
|
</property>
|
||||||
@@ -265,8 +253,6 @@ The APK will not be usable on any other device.</string>
|
|||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources/>
|
||||||
<include location="../coreplugin/core.qrc"/>
|
|
||||||
</resources>
|
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
@@ -50,6 +50,7 @@
|
|||||||
#include <texteditor/texteditoractionhandler.h>
|
#include <texteditor/texteditoractionhandler.h>
|
||||||
#include <texteditor/texteditor.h>
|
#include <texteditor/texteditor.h>
|
||||||
#include <utils/algorithm.h>
|
#include <utils/algorithm.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
@@ -166,7 +167,8 @@ void AndroidManifestEditorWidget::initializePage()
|
|||||||
m_packageNameWarning->setVisible(false);
|
m_packageNameWarning->setVisible(false);
|
||||||
|
|
||||||
m_packageNameWarningIcon = new QLabel;
|
m_packageNameWarningIcon = new QLabel;
|
||||||
m_packageNameWarningIcon->setPixmap(QPixmap(QLatin1String(Core::Constants::ICON_WARNING)));
|
m_packageNameWarningIcon->setPixmap(
|
||||||
|
Utils::ThemeHelper::themedIconPixmap(QLatin1String(Core::Constants::ICON_WARNING)));
|
||||||
m_packageNameWarningIcon->setVisible(false);
|
m_packageNameWarningIcon->setVisible(false);
|
||||||
m_packageNameWarningIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
m_packageNameWarningIcon->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||||
|
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
#include "androidconfigurations.h"
|
#include "androidconfigurations.h"
|
||||||
|
|
||||||
#include <utils/detailswidget.h>
|
#include <utils/detailswidget.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <projectexplorer/kitmanager.h>
|
#include <projectexplorer/kitmanager.h>
|
||||||
@@ -92,7 +93,7 @@ AndroidPotentialKitWidget::AndroidPotentialKitWidget(QWidget *parent)
|
|||||||
: Utils::DetailsWidget(parent)
|
: Utils::DetailsWidget(parent)
|
||||||
{
|
{
|
||||||
setSummaryText(QLatin1String("<b>Android has not been configured. Create Android kits.</b>"));
|
setSummaryText(QLatin1String("<b>Android has not been configured. Create Android kits.</b>"));
|
||||||
setIcon(QIcon(QLatin1String(Core::Constants::ICON_WARNING)));
|
setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_WARNING)));
|
||||||
//detailsWidget->setState(Utils::DetailsWidget::NoSummary);
|
//detailsWidget->setState(Utils::DetailsWidget::NoSummary);
|
||||||
QWidget *mainWidget = new QWidget(this);
|
QWidget *mainWidget = new QWidget(this);
|
||||||
setWidget(mainWidget);
|
setWidget(mainWidget);
|
||||||
|
@@ -36,9 +36,11 @@
|
|||||||
#include "androidconstants.h"
|
#include "androidconstants.h"
|
||||||
#include "androidtoolchain.h"
|
#include "androidtoolchain.h"
|
||||||
|
|
||||||
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
#include <utils/hostosinfo.h>
|
#include <utils/hostosinfo.h>
|
||||||
#include <utils/pathchooser.h>
|
#include <utils/pathchooser.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
#include <projectexplorer/toolchainmanager.h>
|
#include <projectexplorer/toolchainmanager.h>
|
||||||
#include <projectexplorer/kitmanager.h>
|
#include <projectexplorer/kitmanager.h>
|
||||||
#include <projectexplorer/kitinformation.h>
|
#include <projectexplorer/kitinformation.h>
|
||||||
@@ -174,6 +176,17 @@ AndroidSettingsWidget::AndroidSettingsWidget(QWidget *parent)
|
|||||||
m_ui->downloadAntToolButton->setVisible(!Utils::HostOsInfo::isLinuxHost());
|
m_ui->downloadAntToolButton->setVisible(!Utils::HostOsInfo::isLinuxHost());
|
||||||
m_ui->downloadOpenJDKToolButton->setVisible(!Utils::HostOsInfo::isLinuxHost());
|
m_ui->downloadOpenJDKToolButton->setVisible(!Utils::HostOsInfo::isLinuxHost());
|
||||||
|
|
||||||
|
const QPixmap warningPixmap = Utils::ThemeHelper::themedIconPixmap(
|
||||||
|
QLatin1String(Core::Constants::ICON_WARNING));
|
||||||
|
m_ui->jdkWarningIconLabel->setPixmap(warningPixmap);
|
||||||
|
m_ui->kitWarningIconLabel->setPixmap(warningPixmap);
|
||||||
|
|
||||||
|
const QPixmap errorPixmap = Utils::ThemeHelper::themedIconPixmap(
|
||||||
|
QLatin1String(Core::Constants::ICON_ERROR));
|
||||||
|
m_ui->sdkWarningIconLabel->setPixmap(errorPixmap);
|
||||||
|
m_ui->gdbWarningIconLabel->setPixmap(errorPixmap);
|
||||||
|
m_ui->ndkWarningIconLabel->setPixmap(errorPixmap);
|
||||||
|
|
||||||
connect(m_ui->gdbWarningLabel, SIGNAL(linkActivated(QString)),
|
connect(m_ui->gdbWarningLabel, SIGNAL(linkActivated(QString)),
|
||||||
this, SLOT(showGdbWarningDialog()));
|
this, SLOT(showGdbWarningDialog()));
|
||||||
|
|
||||||
|
@@ -46,9 +46,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/warning.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -123,9 +120,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/error.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -192,9 +186,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/error.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -228,9 +219,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/error.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -280,9 +268,6 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="../coreplugin/core.qrc">:/core/images/warning.png</pixmap>
|
|
||||||
</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -476,7 +461,6 @@
|
|||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../coreplugin/core.qrc"/>
|
|
||||||
<include location="android.qrc"/>
|
<include location="android.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections>
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <utils/tooltip/tooltip.h>
|
#include <utils/tooltip/tooltip.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
@@ -62,7 +63,8 @@ AvdDialog::AvdDialog(int minApiLevel, const QString &targetArch, const AndroidCo
|
|||||||
m_avdDialog.nameLineEdit->setValidator(v);
|
m_avdDialog.nameLineEdit->setValidator(v);
|
||||||
m_avdDialog.nameLineEdit->installEventFilter(this);
|
m_avdDialog.nameLineEdit->installEventFilter(this);
|
||||||
|
|
||||||
m_avdDialog.warningIcon->setPixmap(QPixmap(QLatin1String(Core::Constants::ICON_WARNING)));
|
m_avdDialog.warningIcon->setPixmap(Utils::ThemeHelper::themedIconPixmap(
|
||||||
|
QLatin1String(Core::Constants::ICON_WARNING)));
|
||||||
|
|
||||||
updateApiLevelComboBox();
|
updateApiLevelComboBox();
|
||||||
|
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <utils/detailswidget.h>
|
#include <utils/detailswidget.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QFormLayout>
|
#include <QFormLayout>
|
||||||
@@ -90,7 +91,8 @@ void BareMetalRunConfigurationWidget::addDisabledLabel(QVBoxLayout *topLayout)
|
|||||||
{
|
{
|
||||||
QHBoxLayout * const hl = new QHBoxLayout;
|
QHBoxLayout * const hl = new QHBoxLayout;
|
||||||
hl->addStretch();
|
hl->addStretch();
|
||||||
d->disabledIcon.setPixmap(QPixmap(QLatin1String(Core::Constants::ICON_WARNING)));
|
d->disabledIcon.setPixmap(Utils::ThemeHelper::themedIconPixmap(
|
||||||
|
QLatin1String(Core::Constants::ICON_WARNING)));
|
||||||
hl->addWidget(&d->disabledIcon);
|
hl->addWidget(&d->disabledIcon);
|
||||||
d->disabledReason.setVisible(false);
|
d->disabledReason.setVisible(false);
|
||||||
hl->addWidget(&d->disabledReason);
|
hl->addWidget(&d->disabledReason);
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
#include <utils/tooltip/tooltip.h>
|
#include <utils/tooltip/tooltip.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
namespace ClangCodeModel {
|
namespace ClangCodeModel {
|
||||||
|
|
||||||
@@ -73,8 +74,8 @@ ClangTextMark::ClangTextMark(const QString &fileName, int lineNumber, ClangBackE
|
|||||||
|
|
||||||
void ClangTextMark::setIcon(ClangBackEnd::DiagnosticSeverity severity)
|
void ClangTextMark::setIcon(ClangBackEnd::DiagnosticSeverity severity)
|
||||||
{
|
{
|
||||||
static const QIcon errorIcon{QLatin1String(Core::Constants::ICON_ERROR)};
|
static const QIcon errorIcon{Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_ERROR))};
|
||||||
static const QIcon warningIcon{QLatin1String(Core::Constants::ICON_WARNING)};
|
static const QIcon warningIcon{Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_WARNING))};
|
||||||
|
|
||||||
if (isWarningOrNote(severity))
|
if (isWarningOrNote(severity))
|
||||||
TextMark::setIcon(warningIcon);
|
TextMark::setIcon(warningIcon);
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/core">
|
<qresource prefix="/core">
|
||||||
<file>images/clean_pane_small.png</file>
|
<file>images/clean_pane_small.png</file>
|
||||||
|
<file>images/clean_pane_small@2x.png</file>
|
||||||
<file>images/clear.png</file>
|
<file>images/clear.png</file>
|
||||||
<file>images/clear@2x.png</file>
|
<file>images/clear@2x.png</file>
|
||||||
<file>images/closebutton.png</file>
|
<file>images/closebutton.png</file>
|
||||||
@@ -26,10 +27,10 @@
|
|||||||
<file>images/locked@2x.png</file>
|
<file>images/locked@2x.png</file>
|
||||||
<file>images/magnifier.png</file>
|
<file>images/magnifier.png</file>
|
||||||
<file>images/magnifier@2x.png</file>
|
<file>images/magnifier@2x.png</file>
|
||||||
<file>images/dark_magnifier.png</file>
|
|
||||||
<file>images/dark_magnifier@2x.png</file>
|
|
||||||
<file>images/minus.png</file>
|
<file>images/minus.png</file>
|
||||||
|
<file>images/minus@2x.png</file>
|
||||||
<file>images/next.png</file>
|
<file>images/next.png</file>
|
||||||
|
<file>images/next@2x.png</file>
|
||||||
<file>images/panel_button.png</file>
|
<file>images/panel_button.png</file>
|
||||||
<file>images/panel_button@2x.png</file>
|
<file>images/panel_button@2x.png</file>
|
||||||
<file>images/panel_button_checked.png</file>
|
<file>images/panel_button_checked.png</file>
|
||||||
@@ -41,7 +42,9 @@
|
|||||||
<file>images/panel_button_pressed.png</file>
|
<file>images/panel_button_pressed.png</file>
|
||||||
<file>images/panel_button_pressed@2x.png</file>
|
<file>images/panel_button_pressed@2x.png</file>
|
||||||
<file>images/plus.png</file>
|
<file>images/plus.png</file>
|
||||||
|
<file>images/plus@2x.png</file>
|
||||||
<file>images/prev.png</file>
|
<file>images/prev.png</file>
|
||||||
|
<file>images/prev@2x.png</file>
|
||||||
<file>images/pushbutton.png</file>
|
<file>images/pushbutton.png</file>
|
||||||
<file>images/pushbutton_hover.png</file>
|
<file>images/pushbutton_hover.png</file>
|
||||||
<file>images/pushbutton_pressed.png</file>
|
<file>images/pushbutton_pressed.png</file>
|
||||||
@@ -49,6 +52,7 @@
|
|||||||
<file>images/replace.png</file>
|
<file>images/replace.png</file>
|
||||||
<file>images/reset.png</file>
|
<file>images/reset.png</file>
|
||||||
<file>images/sidebaricon.png</file>
|
<file>images/sidebaricon.png</file>
|
||||||
|
<file>images/sidebaricon@2x.png</file>
|
||||||
<file>images/splitbutton_horizontal.png</file>
|
<file>images/splitbutton_horizontal.png</file>
|
||||||
<file>images/splitbutton_horizontal@2x.png</file>
|
<file>images/splitbutton_horizontal@2x.png</file>
|
||||||
<file>images/statusbar.png</file>
|
<file>images/statusbar.png</file>
|
||||||
@@ -113,5 +117,17 @@
|
|||||||
<file>images/dark_fileicon.png</file>
|
<file>images/dark_fileicon.png</file>
|
||||||
<file>images/dark_foldericon.png</file>
|
<file>images/dark_foldericon.png</file>
|
||||||
<file>images/Desktop.png</file>
|
<file>images/Desktop.png</file>
|
||||||
|
<file>images/run_overlay_small.png</file>
|
||||||
|
<file>images/run_overlay_small@2x.png</file>
|
||||||
|
<file>images/stop_overlay_small.png</file>
|
||||||
|
<file>images/stop_overlay_small@2x.png</file>
|
||||||
|
<file>images/debugger_overlay_small.png</file>
|
||||||
|
<file>images/debugger_overlay_small@2x.png</file>
|
||||||
|
<file>images/interrupt_overlay_small.png</file>
|
||||||
|
<file>images/interrupt_overlay_small@2x.png</file>
|
||||||
|
<file>images/continue_overlay_small.png</file>
|
||||||
|
<file>images/continue_overlay_small@2x.png</file>
|
||||||
|
<file>images/zoom.png</file>
|
||||||
|
<file>images/zoom@2x.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@@ -194,8 +194,8 @@ const char ICON_REDO[] = ":/core/images/redo.png";
|
|||||||
const char ICON_COPY[] = ":/core/images/editcopy.png";
|
const char ICON_COPY[] = ":/core/images/editcopy.png";
|
||||||
const char ICON_PASTE[] = ":/core/images/editpaste.png";
|
const char ICON_PASTE[] = ":/core/images/editpaste.png";
|
||||||
const char ICON_CUT[] = ":/core/images/editcut.png";
|
const char ICON_CUT[] = ":/core/images/editcut.png";
|
||||||
const char ICON_NEXT[] = ":/core/images/next.png";
|
const char ICON_NEXT[] = ":/core/images/next.png|IconsNavigationArrowsColor";
|
||||||
const char ICON_PREV[] = ":/core/images/prev.png";
|
const char ICON_PREV[] = ":/core/images/prev.png|IconsNavigationArrowsColor";
|
||||||
const char ICON_DIR[] = ":/core/images/dir.png";
|
const char ICON_DIR[] = ":/core/images/dir.png";
|
||||||
const char ICON_CLEAN_PANE[] = ":/core/images/clean_pane_small.png";
|
const char ICON_CLEAN_PANE[] = ":/core/images/clean_pane_small.png";
|
||||||
const char ICON_CLEAR[] = ":/core/images/clear.png";
|
const char ICON_CLEAR[] = ":/core/images/clear.png";
|
||||||
@@ -219,9 +219,14 @@ const char ICON_PAUSE[] = ":/core/images/pause.png";
|
|||||||
const char ICON_QTLOGO_32[] = ":/core/images/logo/32/QtProject-qtcreator.png";
|
const char ICON_QTLOGO_32[] = ":/core/images/logo/32/QtProject-qtcreator.png";
|
||||||
const char ICON_QTLOGO_64[] = ":/core/images/logo/64/QtProject-qtcreator.png";
|
const char ICON_QTLOGO_64[] = ":/core/images/logo/64/QtProject-qtcreator.png";
|
||||||
const char ICON_QTLOGO_128[] = ":/core/images/logo/128/QtProject-qtcreator.png";
|
const char ICON_QTLOGO_128[] = ":/core/images/logo/128/QtProject-qtcreator.png";
|
||||||
const char ICON_WARNING[] = ":/core/images/warning.png";
|
const char ICON_WARNING[] = ":/core/images/warning.png|IconsWarningColor";
|
||||||
const char ICON_ERROR[] = ":/core/images/error.png";
|
const char ICON_ERROR[] = ":/core/images/error.png|IconsErrorColor";
|
||||||
const char ICON_INFO[] = ":/core/images/info.png";
|
const char ICON_INFO[] = ":/core/images/info.png|IconsInfoColor";
|
||||||
|
const char ICON_DEBUG_START_SMALL[] = ":/core/images/debugger_overlay_small.png|IconsDebugColor,:/core/images/run_overlay_small.png|IconsRunColor";
|
||||||
|
const char ICON_DEBUG_EXIT_SMALL[] = ":/core/images/debugger_overlay_small.png|IconsDebugColor,:/core/images/stop_overlay_small.png|IconsStopColor";
|
||||||
|
const char ICON_DEBUG_INTERRUPT_SMALL[] = ":/core/images/debugger_overlay_small.png|IconsDebugColor,:/core/images/interrupt_overlay_small.png|IconsInterruptColor";
|
||||||
|
const char ICON_DEBUG_CONTINUE_SMALL[] = ":/core/images/debugger_overlay_small.png|IconsDebugColor,:/core/images/continue_overlay_small.png|IconsRunColor";
|
||||||
|
const char ICON_ZOOM[] = ":/core/images/zoom.png";
|
||||||
|
|
||||||
const char WIZARD_CATEGORY_QT[] = "R.Qt";
|
const char WIZARD_CATEGORY_QT[] = "R.Qt";
|
||||||
const char WIZARD_TR_CATEGORY_QT[] = QT_TRANSLATE_NOOP("Core", "Qt");
|
const char WIZARD_TR_CATEGORY_QT[] = QT_TRANSLATE_NOOP("Core", "Qt");
|
||||||
|
@@ -74,6 +74,7 @@
|
|||||||
#include <utils/mimetypes/mimetype.h>
|
#include <utils/mimetypes/mimetype.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/overridecursor.h>
|
#include <utils/overridecursor.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
@@ -267,8 +268,8 @@ EditorManagerPrivate::EditorManagerPrivate(QObject *parent) :
|
|||||||
m_closeAllEditorsExceptVisibleAction(new QAction(EditorManager::tr("Close All Except Visible"), this)),
|
m_closeAllEditorsExceptVisibleAction(new QAction(EditorManager::tr("Close All Except Visible"), this)),
|
||||||
m_gotoNextDocHistoryAction(new QAction(EditorManager::tr("Next Open Document in History"), this)),
|
m_gotoNextDocHistoryAction(new QAction(EditorManager::tr("Next Open Document in History"), this)),
|
||||||
m_gotoPreviousDocHistoryAction(new QAction(EditorManager::tr("Previous Open Document in History"), this)),
|
m_gotoPreviousDocHistoryAction(new QAction(EditorManager::tr("Previous Open Document in History"), this)),
|
||||||
m_goBackAction(new QAction(QIcon(QLatin1String(Constants::ICON_PREV)), EditorManager::tr("Go Back"), this)),
|
m_goBackAction(new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_PREV)), EditorManager::tr("Go Back"), this)),
|
||||||
m_goForwardAction(new QAction(QIcon(QLatin1String(Constants::ICON_NEXT)), EditorManager::tr("Go Forward"), this)),
|
m_goForwardAction(new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_NEXT)), EditorManager::tr("Go Forward"), this)),
|
||||||
m_copyFilePathContextAction(new QAction(EditorManager::tr("Copy Full Path"), this)),
|
m_copyFilePathContextAction(new QAction(EditorManager::tr("Copy Full Path"), this)),
|
||||||
m_copyLocationContextAction(new QAction(EditorManager::tr("Copy Path and Line Number"), this)),
|
m_copyLocationContextAction(new QAction(EditorManager::tr("Copy Path and Line Number"), this)),
|
||||||
m_copyFileNameContextAction(new QAction(EditorManager::tr("Copy File Name"), this)),
|
m_copyFileNameContextAction(new QAction(EditorManager::tr("Copy File Name"), this)),
|
||||||
|
@@ -45,6 +45,7 @@
|
|||||||
#include <coreplugin/findplaceholder.h>
|
#include <coreplugin/findplaceholder.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/theme/theme.h>
|
#include <utils/theme/theme.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
@@ -703,11 +704,15 @@ void SplitterOrView::split(Qt::Orientation orientation)
|
|||||||
view->view()->setCurrentEditor(duplicate);
|
view->view()->setCurrentEditor(duplicate);
|
||||||
|
|
||||||
if (orientation == Qt::Horizontal) {
|
if (orientation == Qt::Horizontal) {
|
||||||
view->view()->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
view->view()->setCloseSplitIcon(
|
||||||
otherView->view()->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_RIGHT)));
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
||||||
|
otherView->view()->setCloseSplitIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_RIGHT)));
|
||||||
} else {
|
} else {
|
||||||
view->view()->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
view->view()->setCloseSplitIcon(
|
||||||
otherView->view()->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
||||||
|
otherView->view()->setCloseSplitIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorManagerPrivate::activateView(otherView->view());
|
EditorManagerPrivate::activateView(otherView->view());
|
||||||
@@ -795,17 +800,14 @@ void SplitterOrView::unsplit()
|
|||||||
m_layout->addWidget(m_view);
|
m_layout->addWidget(m_view);
|
||||||
QSplitter *parentSplitter = qobject_cast<QSplitter *>(parentWidget());
|
QSplitter *parentSplitter = qobject_cast<QSplitter *>(parentWidget());
|
||||||
if (parentSplitter) { // not the toplevel splitterOrView
|
if (parentSplitter) { // not the toplevel splitterOrView
|
||||||
if (parentSplitter->orientation() == Qt::Horizontal) {
|
if (parentSplitter->orientation() == Qt::Horizontal)
|
||||||
if (parentSplitter->widget(0) == this)
|
Utils::ThemeHelper::themedIcon(QLatin1String(parentSplitter->widget(0) == this ?
|
||||||
m_view->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
Constants::ICON_CLOSE_SPLIT_LEFT
|
||||||
else
|
: Constants::ICON_CLOSE_SPLIT_RIGHT));
|
||||||
m_view->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_RIGHT)));
|
else
|
||||||
} else {
|
Utils::ThemeHelper::themedIcon(QLatin1String(parentSplitter->widget(0) == this ?
|
||||||
if (parentSplitter->widget(0) == this)
|
Constants::ICON_CLOSE_SPLIT_TOP
|
||||||
m_view->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
: Constants::ICON_CLOSE_SPLIT_BOTTOM));
|
||||||
else
|
|
||||||
m_view->setCloseSplitIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_layout->setCurrentWidget(m_view);
|
m_layout->setCurrentWidget(m_view);
|
||||||
|
@@ -43,6 +43,7 @@
|
|||||||
#include <utils/fileutils.h>
|
#include <utils/fileutils.h>
|
||||||
#include <utils/hostosinfo.h>
|
#include <utils/hostosinfo.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
@@ -99,13 +100,13 @@ EditorToolBarPrivate::EditorToolBarPrivate(QWidget *parent, EditorToolBar *q) :
|
|||||||
m_lockButton(new QToolButton(q)),
|
m_lockButton(new QToolButton(q)),
|
||||||
m_dragHandle(new QToolButton(q)),
|
m_dragHandle(new QToolButton(q)),
|
||||||
m_dragHandleMenu(0),
|
m_dragHandleMenu(0),
|
||||||
m_goBackAction(new QAction(QIcon(QLatin1String(Constants::ICON_PREV)), EditorManager::tr("Go Back"), parent)),
|
m_goBackAction(new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_PREV)), EditorManager::tr("Go Back"), parent)),
|
||||||
m_goForwardAction(new QAction(QIcon(QLatin1String(Constants::ICON_NEXT)), EditorManager::tr("Go Forward"), parent)),
|
m_goForwardAction(new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_NEXT)), EditorManager::tr("Go Forward"), parent)),
|
||||||
m_backButton(new QToolButton(q)),
|
m_backButton(new QToolButton(q)),
|
||||||
m_forwardButton(new QToolButton(q)),
|
m_forwardButton(new QToolButton(q)),
|
||||||
m_splitButton(new QToolButton(q)),
|
m_splitButton(new QToolButton(q)),
|
||||||
m_horizontalSplitAction(new QAction(QIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)), EditorManager::tr("Split"), parent)),
|
m_horizontalSplitAction(new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)), EditorManager::tr("Split"), parent)),
|
||||||
m_verticalSplitAction(new QAction(QIcon(QLatin1String(Constants::ICON_SPLIT_VERTICAL)), EditorManager::tr("Split Side by Side"), parent)),
|
m_verticalSplitAction(new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_SPLIT_VERTICAL)), EditorManager::tr("Split Side by Side"), parent)),
|
||||||
m_splitNewWindowAction(new QAction(EditorManager::tr("Open in New Window"), parent)),
|
m_splitNewWindowAction(new QAction(EditorManager::tr("Open in New Window"), parent)),
|
||||||
m_closeSplitButton(new QToolButton(q)),
|
m_closeSplitButton(new QToolButton(q)),
|
||||||
m_activeToolBar(0),
|
m_activeToolBar(0),
|
||||||
@@ -152,7 +153,8 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
|||||||
d->m_editorList->setContextMenuPolicy(Qt::CustomContextMenu);
|
d->m_editorList->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
|
|
||||||
d->m_closeEditorButton->setAutoRaise(true);
|
d->m_closeEditorButton->setAutoRaise(true);
|
||||||
d->m_closeEditorButton->setIcon(QIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
d->m_closeEditorButton->setIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
||||||
d->m_closeEditorButton->setEnabled(false);
|
d->m_closeEditorButton->setEnabled(false);
|
||||||
d->m_closeEditorButton->setProperty("showborder", true);
|
d->m_closeEditorButton->setProperty("showborder", true);
|
||||||
|
|
||||||
@@ -168,7 +170,8 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
|||||||
d->m_splitNewWindowAction->setIconVisibleInMenu(false);
|
d->m_splitNewWindowAction->setIconVisibleInMenu(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
d->m_splitButton->setIcon(QIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
d->m_splitButton->setIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
||||||
d->m_splitButton->setToolTip(tr("Split"));
|
d->m_splitButton->setToolTip(tr("Split"));
|
||||||
d->m_splitButton->setPopupMode(QToolButton::InstantPopup);
|
d->m_splitButton->setPopupMode(QToolButton::InstantPopup);
|
||||||
d->m_splitButton->setProperty("noArrow", true);
|
d->m_splitButton->setProperty("noArrow", true);
|
||||||
@@ -179,7 +182,8 @@ EditorToolBar::EditorToolBar(QWidget *parent) :
|
|||||||
d->m_splitButton->setMenu(splitMenu);
|
d->m_splitButton->setMenu(splitMenu);
|
||||||
|
|
||||||
d->m_closeSplitButton->setAutoRaise(true);
|
d->m_closeSplitButton->setAutoRaise(true);
|
||||||
d->m_closeSplitButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
d->m_closeSplitButton->setIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
||||||
|
|
||||||
QHBoxLayout *toplayout = new QHBoxLayout(this);
|
QHBoxLayout *toplayout = new QHBoxLayout(this);
|
||||||
toplayout->setSpacing(0);
|
toplayout->setSpacing(0);
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
<file>images/wholewords.png</file>
|
<file>images/wholewords.png</file>
|
||||||
<file>images/regexp.png</file>
|
<file>images/regexp.png</file>
|
||||||
<file>images/expand.png</file>
|
<file>images/expand.png</file>
|
||||||
|
<file>images/expand@2x.png</file>
|
||||||
<file>images/wrapindicator.png</file>
|
<file>images/wrapindicator.png</file>
|
||||||
<file>images/preservecase.png</file>
|
<file>images/preservecase.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
|
@@ -47,6 +47,7 @@
|
|||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/stylehelper.h>
|
#include <utils/stylehelper.h>
|
||||||
#include <utils/theme/theme.h>
|
#include <utils/theme/theme.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
@@ -667,8 +668,10 @@ void FindToolBar::updateIcons()
|
|||||||
bool regexp = effectiveFlags & FindRegularExpression;
|
bool regexp = effectiveFlags & FindRegularExpression;
|
||||||
bool preserveCase = effectiveFlags & FindPreserveCase;
|
bool preserveCase = effectiveFlags & FindPreserveCase;
|
||||||
if (!casesensitive && !wholewords && !regexp && !preserveCase) {
|
if (!casesensitive && !wholewords && !regexp && !preserveCase) {
|
||||||
m_ui.findEdit->setButtonPixmap(Utils::FancyLineEdit::Left,
|
const QPixmap pixmap = Utils::ThemeHelper::recoloredPixmap(
|
||||||
Utils::StyleHelper::dpiSpecificImageFile(QLatin1Literal(Constants::ICON_MAGNIFIER)));
|
QLatin1String(Constants::ICON_MAGNIFIER),
|
||||||
|
Utils::ThemeHelper::inputfieldIconColor());
|
||||||
|
m_ui.findEdit->setButtonPixmap(Utils::FancyLineEdit::Left, pixmap);
|
||||||
} else {
|
} else {
|
||||||
m_ui.findEdit->setButtonPixmap(Utils::FancyLineEdit::Left,
|
m_ui.findEdit->setButtonPixmap(Utils::FancyLineEdit::Left,
|
||||||
IFindFilter::pixmapForFindFlags(effectiveFlags));
|
IFindFilter::pixmapForFindFlags(effectiveFlags));
|
||||||
@@ -958,8 +961,19 @@ void FindToolBar::setBackward(bool backward)
|
|||||||
|
|
||||||
void FindToolBar::setLightColoredIcon(bool lightColored)
|
void FindToolBar::setLightColoredIcon(bool lightColored)
|
||||||
{
|
{
|
||||||
m_ui.close->setIcon(lightColored ? QIcon(QLatin1String(Constants::ICON_DARK_CLOSE))
|
if (lightColored) {
|
||||||
: QIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
m_ui.findNextButton->setIcon(QIcon());
|
||||||
|
m_ui.findNextButton->setArrowType(Qt::RightArrow);
|
||||||
|
m_ui.findPreviousButton->setIcon(QIcon());
|
||||||
|
m_ui.findPreviousButton->setArrowType(Qt::LeftArrow);
|
||||||
|
m_ui.close->setIcon(QIcon(QLatin1String(Constants::ICON_DARK_CLOSE)));
|
||||||
|
} else {
|
||||||
|
m_ui.findNextButton->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_NEXT)));
|
||||||
|
m_ui.findNextButton->setArrowType(Qt::NoArrow);
|
||||||
|
m_ui.findPreviousButton->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Core::Constants::ICON_PREV)));
|
||||||
|
m_ui.findPreviousButton->setArrowType(Qt::NoArrow);
|
||||||
|
m_ui.close->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_BUTTON_CLOSE)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OptionsPopup::OptionsPopup(QWidget *parent)
|
OptionsPopup::OptionsPopup(QWidget *parent)
|
||||||
|
@@ -68,21 +68,10 @@
|
|||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="findPreviousButton">
|
<widget class="QToolButton" name="findPreviousButton"/>
|
||||||
<property name="arrowType">
|
|
||||||
<enum>Qt::LeftArrow</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="findNextButton">
|
<widget class="QToolButton" name="findNextButton"/>
|
||||||
<property name="font">
|
|
||||||
<font/>
|
|
||||||
</property>
|
|
||||||
<property name="arrowType">
|
|
||||||
<enum>Qt::RightArrow</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
@@ -98,11 +87,7 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="close">
|
<widget class="QToolButton" name="close"/>
|
||||||
<property name="text">
|
|
||||||
<string>...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 931 B After Width: | Height: | Size: 97 B |
BIN
src/plugins/coreplugin/find/images/expand@2x.png
Normal file
After Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 109 B |
Before Width: | Height: | Size: 103 B |
@@ -39,6 +39,7 @@
|
|||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/styledbar.h>
|
#include <utils/styledbar.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
@@ -141,7 +142,7 @@ namespace Internal {
|
|||||||
m_expandCollapseButton->setAutoRaise(true);
|
m_expandCollapseButton->setAutoRaise(true);
|
||||||
|
|
||||||
m_expandCollapseAction->setCheckable(true);
|
m_expandCollapseAction->setCheckable(true);
|
||||||
m_expandCollapseAction->setIcon(QIcon(QLatin1String(":/find/images/expand.png")));
|
m_expandCollapseAction->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(":/find/images/expand.png")));
|
||||||
Command *cmd = ActionManager::registerAction(m_expandCollapseAction, "Find.ExpandAll");
|
Command *cmd = ActionManager::registerAction(m_expandCollapseAction, "Find.ExpandAll");
|
||||||
cmd->setAttribute(Command::CA_UpdateText);
|
cmd->setAttribute(Command::CA_UpdateText);
|
||||||
m_expandCollapseButton->setDefaultAction(cmd->action());
|
m_expandCollapseButton->setDefaultAction(cmd->action());
|
||||||
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 183 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 713 B After Width: | Height: | Size: 143 B |
BIN
src/plugins/coreplugin/images/clean_pane_small@2x.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
src/plugins/coreplugin/images/continue_overlay_small.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
src/plugins/coreplugin/images/continue_overlay_small@2x.png
Normal file
After Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 589 B |
BIN
src/plugins/coreplugin/images/debugger_overlay_small.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
src/plugins/coreplugin/images/debugger_overlay_small@2x.png
Normal file
After Width: | Height: | Size: 759 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 163 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 265 B |
BIN
src/plugins/coreplugin/images/interrupt_overlay_small.png
Normal file
After Width: | Height: | Size: 94 B |
BIN
src/plugins/coreplugin/images/interrupt_overlay_small@2x.png
Normal file
After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 968 B After Width: | Height: | Size: 325 B |
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 94 B |
BIN
src/plugins/coreplugin/images/minus@2x.png
Normal file
After Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 135 B |
BIN
src/plugins/coreplugin/images/next@2x.png
Normal file
After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 100 B |
BIN
src/plugins/coreplugin/images/plus@2x.png
Normal file
After Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 911 B After Width: | Height: | Size: 135 B |
BIN
src/plugins/coreplugin/images/prev@2x.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
src/plugins/coreplugin/images/run_overlay_small.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
src/plugins/coreplugin/images/run_overlay_small@2x.png
Normal file
After Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 99 B |
BIN
src/plugins/coreplugin/images/sidebaricon@2x.png
Normal file
After Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 139 B |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 131 B |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 134 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 117 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 106 B |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 114 B |
BIN
src/plugins/coreplugin/images/stop_overlay_small.png
Normal file
After Width: | Height: | Size: 94 B |
BIN
src/plugins/coreplugin/images/stop_overlay_small@2x.png
Normal file
After Width: | Height: | Size: 97 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 147 B |
Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 231 B |
BIN
src/plugins/coreplugin/images/zoom.png
Normal file
After Width: | Height: | Size: 183 B |
BIN
src/plugins/coreplugin/images/zoom@2x.png
Normal file
After Width: | Height: | Size: 339 B |
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
using namespace Core;
|
using namespace Core;
|
||||||
using namespace Core::Internal;
|
using namespace Core::Internal;
|
||||||
@@ -44,7 +45,7 @@ LocatorFiltersFilter::LocatorFiltersFilter(Locator *plugin,
|
|||||||
LocatorWidget *locatorWidget):
|
LocatorWidget *locatorWidget):
|
||||||
m_plugin(plugin),
|
m_plugin(plugin),
|
||||||
m_locatorWidget(locatorWidget),
|
m_locatorWidget(locatorWidget),
|
||||||
m_icon(QIcon(QLatin1String(Constants::ICON_NEXT)))
|
m_icon(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_NEXT)))
|
||||||
{
|
{
|
||||||
setId("FiltersFilter");
|
setId("FiltersFilter");
|
||||||
setDisplayName(tr("Available filters"));
|
setDisplayName(tr("Available filters"));
|
||||||
|
@@ -47,6 +47,7 @@
|
|||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/runextensions.h>
|
#include <utils/runextensions.h>
|
||||||
#include <utils/stylehelper.h>
|
#include <utils/stylehelper.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
@@ -252,9 +253,11 @@ LocatorWidget::LocatorWidget(Locator *qop) :
|
|||||||
layout->addWidget(m_fileLineEdit);
|
layout->addWidget(m_fileLineEdit);
|
||||||
|
|
||||||
setWindowIcon(QIcon(QLatin1String(":/locator/images/locator.png")));
|
setWindowIcon(QIcon(QLatin1String(":/locator/images/locator.png")));
|
||||||
const QPixmap image = Utils::StyleHelper::dpiSpecificImageFile(QLatin1String(Constants::ICON_MAGNIFIER));
|
const QPixmap pixmap = Utils::ThemeHelper::recoloredPixmap(
|
||||||
|
QLatin1String(Constants::ICON_MAGNIFIER),
|
||||||
|
Utils::ThemeHelper::inputfieldIconColor());
|
||||||
m_fileLineEdit->setFiltering(true);
|
m_fileLineEdit->setFiltering(true);
|
||||||
m_fileLineEdit->setButtonPixmap(Utils::FancyLineEdit::Left, image);
|
m_fileLineEdit->setButtonPixmap(Utils::FancyLineEdit::Left, pixmap);
|
||||||
m_fileLineEdit->setButtonToolTip(Utils::FancyLineEdit::Left, tr("Options"));
|
m_fileLineEdit->setButtonToolTip(Utils::FancyLineEdit::Left, tr("Options"));
|
||||||
m_fileLineEdit->setFocusPolicy(Qt::ClickFocus);
|
m_fileLineEdit->setFocusPolicy(Qt::ClickFocus);
|
||||||
m_fileLineEdit->setButtonVisible(Utils::FancyLineEdit::Left, true);
|
m_fileLineEdit->setButtonVisible(Utils::FancyLineEdit::Left, true);
|
||||||
|
@@ -82,6 +82,7 @@
|
|||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/stylehelper.h>
|
#include <utils/stylehelper.h>
|
||||||
#include <utils/theme/theme.h>
|
#include <utils/theme/theme.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
#include <utils/stringutils.h>
|
#include <utils/stringutils.h>
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
@@ -677,7 +678,7 @@ void MainWindow::registerDefaultActions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show Sidebar Action
|
// Show Sidebar Action
|
||||||
m_toggleSideBarAction = new QAction(QIcon(QLatin1String(Constants::ICON_TOGGLE_SIDEBAR)),
|
m_toggleSideBarAction = new QAction(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_TOGGLE_SIDEBAR)),
|
||||||
QCoreApplication::translate("Core", Constants::TR_SHOW_SIDEBAR),
|
QCoreApplication::translate("Core", Constants::TR_SHOW_SIDEBAR),
|
||||||
this);
|
this);
|
||||||
m_toggleSideBarAction->setCheckable(true);
|
m_toggleSideBarAction->setCheckable(true);
|
||||||
|
@@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <utils/fancymainwindow.h>
|
#include <utils/fancymainwindow.h>
|
||||||
#include <utils/theme/theme.h>
|
#include <utils/theme/theme.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
@@ -138,7 +139,7 @@ public:
|
|||||||
ManhattanStylePrivate::ManhattanStylePrivate() :
|
ManhattanStylePrivate::ManhattanStylePrivate() :
|
||||||
lineeditImage(StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield.png"))),
|
lineeditImage(StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield.png"))),
|
||||||
lineeditImage_disabled(StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield_disabled.png"))),
|
lineeditImage_disabled(StyleHelper::dpiSpecificImageFile(QStringLiteral(":/core/images/inputfield_disabled.png"))),
|
||||||
extButtonPixmap(QLatin1String(":/core/images/extension.png")),
|
extButtonPixmap(ThemeHelper::themedIconPixmap(QLatin1String(":/core/images/extension.png"))),
|
||||||
closeButtonPixmap(QLatin1String(Core::Constants::ICON_CLOSE_BUTTON))
|
closeButtonPixmap(QLatin1String(Core::Constants::ICON_CLOSE_BUTTON))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -37,6 +37,7 @@
|
|||||||
#include "id.h"
|
#include "id.h"
|
||||||
|
|
||||||
#include <utils/styledbar.h>
|
#include <utils/styledbar.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
@@ -74,7 +75,8 @@ NavigationSubWidget::NavigationSubWidget(NavigationWidget *parentWidget, int pos
|
|||||||
toolBarLayout->addWidget(m_navigationComboBox);
|
toolBarLayout->addWidget(m_navigationComboBox);
|
||||||
|
|
||||||
QToolButton *splitAction = new QToolButton();
|
QToolButton *splitAction = new QToolButton();
|
||||||
splitAction->setIcon(QIcon(QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
splitAction->setIcon(Utils::ThemeHelper::themedIcon(
|
||||||
|
QLatin1String(Constants::ICON_SPLIT_HORIZONTAL)));
|
||||||
splitAction->setToolTip(tr("Split"));
|
splitAction->setToolTip(tr("Split"));
|
||||||
splitAction->setPopupMode(QToolButton::InstantPopup);
|
splitAction->setPopupMode(QToolButton::InstantPopup);
|
||||||
splitAction->setProperty("noArrow", true);
|
splitAction->setProperty("noArrow", true);
|
||||||
@@ -83,7 +85,8 @@ NavigationSubWidget::NavigationSubWidget(NavigationWidget *parentWidget, int pos
|
|||||||
connect(m_splitMenu, &QMenu::aboutToShow, this, &NavigationSubWidget::populateSplitMenu);
|
connect(m_splitMenu, &QMenu::aboutToShow, this, &NavigationSubWidget::populateSplitMenu);
|
||||||
|
|
||||||
m_closeButton = new QToolButton();
|
m_closeButton = new QToolButton();
|
||||||
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
m_closeButton->setIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
||||||
m_closeButton->setToolTip(tr("Close"));
|
m_closeButton->setToolTip(tr("Close"));
|
||||||
|
|
||||||
toolBarLayout->addWidget(splitAction);
|
toolBarLayout->addWidget(splitAction);
|
||||||
|
@@ -40,6 +40,8 @@
|
|||||||
#include "id.h"
|
#include "id.h"
|
||||||
#include "imode.h"
|
#include "imode.h"
|
||||||
|
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
@@ -248,7 +250,8 @@ Internal::NavigationSubWidget *NavigationWidget::insertSubItem(int position,int
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!d->m_subWidgets.isEmpty()) // Make all icons the bottom icon
|
if (!d->m_subWidgets.isEmpty()) // Make all icons the bottom icon
|
||||||
d->m_subWidgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
d->m_subWidgets.at(0)->setCloseIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
||||||
|
|
||||||
Internal::NavigationSubWidget *nsw = new Internal::NavigationSubWidget(this, position, index);
|
Internal::NavigationSubWidget *nsw = new Internal::NavigationSubWidget(this, position, index);
|
||||||
connect(nsw, &Internal::NavigationSubWidget::splitMe,
|
connect(nsw, &Internal::NavigationSubWidget::splitMe,
|
||||||
@@ -257,9 +260,11 @@ Internal::NavigationSubWidget *NavigationWidget::insertSubItem(int position,int
|
|||||||
insertWidget(position, nsw);
|
insertWidget(position, nsw);
|
||||||
d->m_subWidgets.insert(position, nsw);
|
d->m_subWidgets.insert(position, nsw);
|
||||||
if (d->m_subWidgets.size() == 1)
|
if (d->m_subWidgets.size() == 1)
|
||||||
d->m_subWidgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
d->m_subWidgets.at(0)->setCloseIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
||||||
else
|
else
|
||||||
d->m_subWidgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
d->m_subWidgets.at(0)->setCloseIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
||||||
return nsw;
|
return nsw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -308,9 +313,11 @@ void NavigationWidget::closeSubWidget()
|
|||||||
subWidget->deleteLater();
|
subWidget->deleteLater();
|
||||||
// update close button of top item
|
// update close button of top item
|
||||||
if (d->m_subWidgets.size() == 1)
|
if (d->m_subWidgets.size() == 1)
|
||||||
d->m_subWidgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
d->m_subWidgets.at(0)->setCloseIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_LEFT)));
|
||||||
else
|
else
|
||||||
d->m_subWidgets.at(0)->setCloseIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
d->m_subWidgets.at(0)->setCloseIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_TOP)));
|
||||||
} else {
|
} else {
|
||||||
setShown(false);
|
setShown(false);
|
||||||
}
|
}
|
||||||
|
@@ -51,6 +51,7 @@
|
|||||||
#include <utils/stylehelper.h>
|
#include <utils/stylehelper.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
#include <utils/theme/theme.h>
|
#include <utils/theme/theme.h>
|
||||||
|
#include <utils/themehelper.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
@@ -123,8 +124,8 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
|||||||
m_prevAction(0),
|
m_prevAction(0),
|
||||||
m_outputWidgetPane(new QStackedWidget),
|
m_outputWidgetPane(new QStackedWidget),
|
||||||
m_opToolBarWidgets(new QStackedWidget),
|
m_opToolBarWidgets(new QStackedWidget),
|
||||||
m_minimizeIcon(QLatin1String(":/core/images/arrowdown.png")),
|
m_minimizeIcon(ThemeHelper::themedIcon(QLatin1String(":/core/images/arrowdown.png"))),
|
||||||
m_maximizeIcon(QLatin1String(":/core/images/arrowup.png")),
|
m_maximizeIcon(ThemeHelper::themedIcon(QLatin1String(":/core/images/arrowup.png"))),
|
||||||
m_maximised(false),
|
m_maximised(false),
|
||||||
m_outputPaneHeight(0)
|
m_outputPaneHeight(0)
|
||||||
{
|
{
|
||||||
@@ -133,17 +134,17 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
|||||||
m_titleLabel->setContentsMargins(5, 0, 5, 0);
|
m_titleLabel->setContentsMargins(5, 0, 5, 0);
|
||||||
|
|
||||||
m_clearAction = new QAction(this);
|
m_clearAction = new QAction(this);
|
||||||
m_clearAction->setIcon(QIcon(QLatin1String(Constants::ICON_CLEAN_PANE)));
|
m_clearAction->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLEAN_PANE)));
|
||||||
m_clearAction->setText(tr("Clear"));
|
m_clearAction->setText(tr("Clear"));
|
||||||
connect(m_clearAction, SIGNAL(triggered()), this, SLOT(clearPage()));
|
connect(m_clearAction, SIGNAL(triggered()), this, SLOT(clearPage()));
|
||||||
|
|
||||||
m_nextAction = new QAction(this);
|
m_nextAction = new QAction(this);
|
||||||
m_nextAction->setIcon(QIcon(QLatin1String(Constants::ICON_NEXT)));
|
m_nextAction->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_NEXT)));
|
||||||
m_nextAction->setText(tr("Next Item"));
|
m_nextAction->setText(tr("Next Item"));
|
||||||
connect(m_nextAction, SIGNAL(triggered()), this, SLOT(slotNext()));
|
connect(m_nextAction, SIGNAL(triggered()), this, SLOT(slotNext()));
|
||||||
|
|
||||||
m_prevAction = new QAction(this);
|
m_prevAction = new QAction(this);
|
||||||
m_prevAction->setIcon(QIcon(QLatin1String(Constants::ICON_PREV)));
|
m_prevAction->setIcon(Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_PREV)));
|
||||||
m_prevAction->setText(tr("Previous Item"));
|
m_prevAction->setText(tr("Previous Item"));
|
||||||
connect(m_prevAction, SIGNAL(triggered()), this, SLOT(slotPrev()));
|
connect(m_prevAction, SIGNAL(triggered()), this, SLOT(slotPrev()));
|
||||||
|
|
||||||
@@ -151,7 +152,8 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) :
|
|||||||
m_minMaxAction->setIcon(m_maximizeIcon);
|
m_minMaxAction->setIcon(m_maximizeIcon);
|
||||||
m_minMaxAction->setText(tr("Maximize Output Pane"));
|
m_minMaxAction->setText(tr("Maximize Output Pane"));
|
||||||
|
|
||||||
m_closeButton->setIcon(QIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
m_closeButton->setIcon(
|
||||||
|
Utils::ThemeHelper::themedIcon(QLatin1String(Constants::ICON_CLOSE_SPLIT_BOTTOM)));
|
||||||
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(slotHide()));
|
connect(m_closeButton, SIGNAL(clicked()), this, SLOT(slotHide()));
|
||||||
|
|
||||||
connect(ICore::instance(), SIGNAL(saveSettingsRequested()), this, SLOT(saveSettings()));
|
connect(ICore::instance(), SIGNAL(saveSettingsRequested()), this, SLOT(saveSettings()));
|
||||||
|