forked from qt-creator/qt-creator
Core: Better warning/error/info icons on non-toolbars
The warning/error/info with shadow and transparent mark work well on our toolbars but not anywhere else. This patch creates a separate set of these icons with better contrast, filled marks and no shadow. Change-Id: I96787753dffd80b325336f0adc8e3be054c34618 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -113,7 +113,7 @@ QmlConsolePane::QmlConsolePane(QObject *parent)
|
||||
m_showDebugButtonAction->setToolTip(tr("Show debug, log, and info messages."));
|
||||
m_showDebugButtonAction->setCheckable(true);
|
||||
m_showDebugButtonAction->setChecked(true);
|
||||
m_showDebugButtonAction->setIcon(Core::Icons::INFO.icon());
|
||||
m_showDebugButtonAction->setIcon(Core::Icons::INFO_TOOLBAR.icon());
|
||||
connect(m_showDebugButtonAction, &Utils::SavedAction::toggled,
|
||||
m_proxyModel, &QmlConsoleProxyModel::setShowLogs);
|
||||
m_showDebugButton->setDefaultAction(m_showDebugButtonAction);
|
||||
@@ -127,7 +127,7 @@ QmlConsolePane::QmlConsolePane(QObject *parent)
|
||||
m_showWarningButtonAction->setToolTip(tr("Show warning messages."));
|
||||
m_showWarningButtonAction->setCheckable(true);
|
||||
m_showWarningButtonAction->setChecked(true);
|
||||
m_showWarningButtonAction->setIcon(Core::Icons::WARNING.icon());
|
||||
m_showWarningButtonAction->setIcon(Core::Icons::WARNING_TOOLBAR.icon());
|
||||
connect(m_showWarningButtonAction, &Utils::SavedAction::toggled,
|
||||
m_proxyModel, &QmlConsoleProxyModel::setShowWarnings);
|
||||
m_showWarningButton->setDefaultAction(m_showWarningButtonAction);
|
||||
@@ -141,7 +141,7 @@ QmlConsolePane::QmlConsolePane(QObject *parent)
|
||||
m_showErrorButtonAction->setToolTip(tr("Show error messages."));
|
||||
m_showErrorButtonAction->setCheckable(true);
|
||||
m_showErrorButtonAction->setChecked(true);
|
||||
m_showErrorButtonAction->setIcon(Core::Icons::ERROR.icon());
|
||||
m_showErrorButtonAction->setIcon(Core::Icons::ERROR_TOOLBAR.icon());
|
||||
connect(m_showErrorButtonAction, &Utils::SavedAction::toggled, m_proxyModel, &QmlConsoleProxyModel::setShowErrors);
|
||||
m_showErrorButton->setDefaultAction(m_showErrorButtonAction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user