forked from qt-creator/qt-creator
Utils: Add a non-toolbar variant of the "RELOAD" icon
New icon is: Utils::Icons::RELOAD. And the toolbar variant is now Utils::Icons::RELOAD_TOOLBAR. Change-Id: I811d83c7340a717968430ac1ce4a5c708c8ddcf9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -152,6 +152,8 @@ const Icon CLEAN({
|
||||
const Icon CLEAN_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/clean_pane_small.png"), Theme::IconsBaseColor}});
|
||||
const Icon RELOAD({
|
||||
{QLatin1String(":/utils/images/reload_gray.png"), Theme::PanelTextColorMid}}, Icon::Tint);
|
||||
const Icon RELOAD_TOOLBAR({
|
||||
{QLatin1String(":/utils/images/reload_gray.png"), Theme::IconsBaseColor}});
|
||||
const Icon TOGGLE_LEFT_SIDEBAR({
|
||||
{QLatin1String(":/utils/images/leftsidebaricon.png"), Theme::PanelTextColorMid}}, Icon::MenuTintedStyle);
|
||||
|
@@ -93,6 +93,7 @@ QTCREATOR_UTILS_EXPORT extern const Icon MAGNIFIER;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLEAN;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon CLEAN_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RELOAD;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon RELOAD_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_LEFT_SIDEBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_LEFT_SIDEBAR_TOOLBAR;
|
||||
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_RIGHT_SIDEBAR;
|
||||
|
@@ -200,7 +200,7 @@ DiffEditor::DiffEditor()
|
||||
m_toggleDescriptionAction = m_toolBar->addAction(Icons::TOP_BAR.icon(), QString());
|
||||
m_toggleDescriptionAction->setCheckable(true);
|
||||
|
||||
m_reloadAction = m_toolBar->addAction(Utils::Icons::RELOAD.icon(), tr("Reload Diff"));
|
||||
m_reloadAction = m_toolBar->addAction(Utils::Icons::RELOAD_TOOLBAR.icon(), tr("Reload Diff"));
|
||||
m_reloadAction->setToolTip(tr("Reload Diff"));
|
||||
|
||||
m_toggleSyncAction = m_toolBar->addAction(Utils::Icons::LINK_TOOLBAR.icon(), QString());
|
||||
|
@@ -89,7 +89,7 @@ BranchView::BranchView() :
|
||||
m_addButton->setProperty("noArrow", true);
|
||||
connect(m_addButton, &QToolButton::clicked, this, &BranchView::add);
|
||||
|
||||
m_refreshButton->setIcon(Utils::Icons::RELOAD.icon());
|
||||
m_refreshButton->setIcon(Utils::Icons::RELOAD_TOOLBAR.icon());
|
||||
m_refreshButton->setToolTip(tr("Refresh"));
|
||||
m_refreshButton->setProperty("noArrow", true);
|
||||
connect(m_refreshButton, &QToolButton::clicked, this, &BranchView::refreshCurrentRepository);
|
||||
|
@@ -277,7 +277,7 @@ SearchSideBarItem::SearchSideBarItem()
|
||||
QList<QToolButton *> SearchSideBarItem::createToolBarWidgets()
|
||||
{
|
||||
auto reindexButton = new QToolButton;
|
||||
reindexButton->setIcon(Utils::Icons::RELOAD.icon());
|
||||
reindexButton->setIcon(Utils::Icons::RELOAD_TOOLBAR.icon());
|
||||
reindexButton->setToolTip(tr("Regenerate Index"));
|
||||
connect(reindexButton, &QAbstractButton::clicked,
|
||||
static_cast<SearchWidget *>(widget()), &SearchWidget::reindexDocumentation);
|
||||
|
@@ -367,7 +367,7 @@ void SerialOutputPane::createToolButtons()
|
||||
|
||||
// Reset button
|
||||
m_resetButton = new QToolButton;
|
||||
m_resetButton->setIcon(Utils::Icons::RELOAD.icon());
|
||||
m_resetButton->setIcon(Utils::Icons::RELOAD_TOOLBAR.icon());
|
||||
m_resetButton->setToolTip(tr("Reset Board"));
|
||||
m_resetButton->setEnabled(false);
|
||||
|
||||
|
@@ -396,7 +396,7 @@ CallgrindToolPrivate::CallgrindToolPrivate()
|
||||
// reset action
|
||||
m_resetAction = action = new QAction(this);
|
||||
action->setDisabled(true);
|
||||
action->setIcon(Utils::Icons::RELOAD.icon());
|
||||
action->setIcon(Utils::Icons::RELOAD_TOOLBAR.icon());
|
||||
//action->setText(CallgrindTool::tr("Reset"));
|
||||
action->setToolTip(CallgrindTool::tr("Reset all event counters."));
|
||||
connect(action, &QAction::triggered, this, &CallgrindToolPrivate::resetRequested);
|
||||
|
@@ -136,7 +136,7 @@ void VcsBaseEditorConfig::setBaseArguments(const QStringList &b)
|
||||
|
||||
QAction *VcsBaseEditorConfig::addReloadButton()
|
||||
{
|
||||
auto action = new QAction(Utils::Icons::RELOAD.icon(), tr("Reload"), d->m_toolBar);
|
||||
auto action = new QAction(Utils::Icons::RELOAD_TOOLBAR.icon(), tr("Reload"), d->m_toolBar);
|
||||
connect(action, &QAction::triggered, this, &VcsBaseEditorConfig::argumentsChanged);
|
||||
addAction(action);
|
||||
return action;
|
||||
|
Reference in New Issue
Block a user