Skip to content

Commit 0f79bfb

Browse files
nyalldawsonnirvn
authored andcommitted
Use svg version of python console icon, courtesy of @pkinglinz (#6016)
1 parent 0d8c5f4 commit 0f79bfb

File tree

8 files changed

+7
-6
lines changed

8 files changed

+7
-6
lines changed

images/images.qrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<file>themes/default/console/iconOpenConsole.png</file>
8686
<file>themes/default/console/iconQtCoreConsole.png</file>
8787
<file>themes/default/console/iconQtGuiConsole.png</file>
88-
<file>themes/default/console/iconRunConsole.png</file>
88+
<file>themes/default/console/mIconRunConsole.svg</file>
8989
<file>themes/default/console/iconSaveConsole.png</file>
9090
<file>themes/default/console/iconSettingsConsole.png</file>
9191
<file>themes/default/console/iconProcessingConsole.png</file>
-1.23 KB
Binary file not shown.
Loading

python/console/console.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def __init__(self, parent=None):
326326
self.runButton = QAction(self)
327327
self.runButton.setCheckable(False)
328328
self.runButton.setEnabled(True)
329-
self.runButton.setIcon(QgsApplication.getThemeIcon("console/iconRunConsole.png"))
329+
self.runButton.setIcon(QgsApplication.getThemeIcon("console/mIconRunConsole.svg"))
330330
self.runButton.setMenuRole(QAction.PreferencesRole)
331331
self.runButton.setIconVisibleInMenu(True)
332332
self.runButton.setToolTip(runBt)

python/console/console_editor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def get_end_pos(self):
282282

283283
def contextMenuEvent(self, e):
284284
menu = QMenu(self)
285-
iconRun = QgsApplication.getThemeIcon("console/iconRunConsole.png")
285+
iconRun = QgsApplication.getThemeIcon("console/mIconRunConsole.svg")
286286
iconRunScript = QgsApplication.getThemeIcon("console/iconRunScriptConsole.png")
287287
iconCodePad = QgsApplication.getThemeIcon("console/iconCodepadConsole.png")
288288
iconCommentEditor = QgsApplication.getThemeIcon("console/iconCommentEditorConsole.png")

python/console/console_output.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def clearConsole(self):
203203

204204
def contextMenuEvent(self, e):
205205
menu = QMenu(self)
206-
iconRun = QgsApplication.getThemeIcon("console/iconRunConsole.png")
206+
iconRun = QgsApplication.getThemeIcon("console/mIconRunConsole.svg")
207207
iconClear = QgsApplication.getThemeIcon("console/iconClearConsole.png")
208208
iconHideTool = QgsApplication.getThemeIcon("console/iconHideToolConsole.png")
209209
iconSettings = QgsApplication.getThemeIcon("console/iconSettingsConsole.png")

src/app/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ void QgisApp::setTheme( const QString &themeName )
30243024
mActionToggleFullScreen->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionToggleFullScreen.png" ) ) );
30253025
mActionProjectProperties->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionProjectProperties.png" ) ) );
30263026
mActionManagePlugins->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionShowPluginManager.svg" ) ) );
3027-
mActionShowPythonDialog->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/iconRunConsole.png" ) ) );
3027+
mActionShowPythonDialog->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "console/mIconRunConsole.svg" ) ) );
30283028
mActionCheckQgisVersion->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconSuccess.svg" ) ) );
30293029
mActionOptions->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionOptions.svg" ) ) );
30303030
mActionConfigureShortcuts->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionKeyboardShortcuts.svg" ) ) );

src/ui/qgisapp.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ Ctrl (Cmd) increments by 15 deg.</string>
18271827
<action name="mActionShowPythonDialog">
18281828
<property name="icon">
18291829
<iconset resource="../../images/images.qrc">
1830-
<normaloff>:/images/themes/default/console/iconRunConsole.png</normaloff>:/images/themes/default/console/iconRunConsole.png</iconset>
1830+
<normaloff>:/images/themes/default/console/mIconRunConsole.svg</normaloff>:/images/themes/default/console/mIconRunConsole.svg</iconset>
18311831
</property>
18321832
<property name="text">
18331833
<string>Python Console</string>

0 commit comments

Comments
 (0)