Use svg version of python console icon, courtesy of @pkinglinz (#6016)

This commit is contained in:
Nyall Dawson 2018-01-09 13:33:08 +10:00 committed by Mathieu Pellerin
parent 0d8c5f455a
commit 0f79bfba1c
8 changed files with 7 additions and 6 deletions

View File

@ -85,7 +85,7 @@
<file>themes/default/console/iconOpenConsole.png</file>
<file>themes/default/console/iconQtCoreConsole.png</file>
<file>themes/default/console/iconQtGuiConsole.png</file>
<file>themes/default/console/iconRunConsole.png</file>
<file>themes/default/console/mIconRunConsole.svg</file>
<file>themes/default/console/iconSaveConsole.png</file>
<file>themes/default/console/iconSettingsConsole.png</file>
<file>themes/default/console/iconProcessingConsole.png</file>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><defs><linearGradient gradientTransform="matrix(.04792 0 0 .04817 -1.624 -2.72)" id="b" gradientUnits="userSpaceOnUse" x1="89.137" x2="147.777" y1="111.921" y2="168.101"><stop offset="0" stop-color="#ffe052"/><stop offset="1" stop-color="#ffc331"/></linearGradient><linearGradient gradientTransform="matrix(.04792 0 0 .04817 -1.624 -2.72)" id="a" gradientUnits="userSpaceOnUse" x1="55.549" x2="110.149" y1="77.07" y2="131.853"><stop offset="0" stop-color="#387eb8"/><stop offset="1" stop-color="#366994"/></linearGradient></defs><path d="M3.156.53c-1.343 0-1.26.585-1.26.585l.002.472H3.18v.265H1.389s-.86-.046-.86 1.316c0 1.363.75 1.314.75 1.314h.448V3.85s-.024-.754.739-.754h1.27s.715.012.715-.694V1.235S4.56.53 3.156.53zm-.707.407c.128 0 .23.104.23.232a.231.231 0 1 1-.46 0c0-.128.103-.232.23-.232z" overflow="visible" fill="url(#a)"/><path d="M3.194 5.82c1.343 0 1.26-.585 1.26-.585l-.002-.606H3.17v-.183h1.791s.86.098.86-1.264c0-1.363-.75-1.314-.75-1.314h-.448V2.5s.024.754-.739.754h-1.27s-.715-.011-.715.694v1.167s-.109.706 1.295.706zm.707-.407a.231.231 0 0 1-.23-.232.231.231 0 1 1 .46 0 .231.231 0 0 1-.23.232z" overflow="visible" fill="url(#b)"/><path d="M4.498 4.382l1.587.697v.297l-1.587.71.006-.367 1.18-.488-1.186-.477z" fill="#5b5b5c"/></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -326,7 +326,7 @@ class PythonConsoleWidget(QWidget):
self.runButton = QAction(self)
self.runButton.setCheckable(False)
self.runButton.setEnabled(True)
self.runButton.setIcon(QgsApplication.getThemeIcon("console/iconRunConsole.png"))
self.runButton.setIcon(QgsApplication.getThemeIcon("console/mIconRunConsole.svg"))
self.runButton.setMenuRole(QAction.PreferencesRole)
self.runButton.setIconVisibleInMenu(True)
self.runButton.setToolTip(runBt)

View File

@ -282,7 +282,7 @@ class Editor(QsciScintilla):
def contextMenuEvent(self, e):
menu = QMenu(self)
iconRun = QgsApplication.getThemeIcon("console/iconRunConsole.png")
iconRun = QgsApplication.getThemeIcon("console/mIconRunConsole.svg")
iconRunScript = QgsApplication.getThemeIcon("console/iconRunScriptConsole.png")
iconCodePad = QgsApplication.getThemeIcon("console/iconCodepadConsole.png")
iconCommentEditor = QgsApplication.getThemeIcon("console/iconCommentEditorConsole.png")

View File

@ -203,7 +203,7 @@ class ShellOutputScintilla(QsciScintilla):
def contextMenuEvent(self, e):
menu = QMenu(self)
iconRun = QgsApplication.getThemeIcon("console/iconRunConsole.png")
iconRun = QgsApplication.getThemeIcon("console/mIconRunConsole.svg")
iconClear = QgsApplication.getThemeIcon("console/iconClearConsole.png")
iconHideTool = QgsApplication.getThemeIcon("console/iconHideToolConsole.png")
iconSettings = QgsApplication.getThemeIcon("console/iconSettingsConsole.png")

View File

@ -3024,7 +3024,7 @@ void QgisApp::setTheme( const QString &themeName )
mActionToggleFullScreen->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionToggleFullScreen.png" ) ) );
mActionProjectProperties->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionProjectProperties.png" ) ) );
mActionManagePlugins->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionShowPluginManager.svg" ) ) );
mActionShowPythonDialog->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/iconRunConsole.png" ) ) );
mActionShowPythonDialog->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/mIconRunConsole.svg" ) ) );
mActionCheckQgisVersion->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconSuccess.svg" ) ) );
mActionOptions->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionOptions.svg" ) ) );
mActionConfigureShortcuts->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionKeyboardShortcuts.svg" ) ) );

View File

@ -1827,7 +1827,7 @@ Ctrl (Cmd) increments by 15 deg.</string>
<action name="mActionShowPythonDialog">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/console/iconRunConsole.png</normaloff>:/images/themes/default/console/iconRunConsole.png</iconset>
<normaloff>:/images/themes/default/console/mIconRunConsole.svg</normaloff>:/images/themes/default/console/mIconRunConsole.svg</iconset>
</property>
<property name="text">
<string>Python Console</string>