Skip to content

Commit 7a86cab

Browse files
committed
Utils: Rename "dependency_ok" icon to "success"
That's a more meaningful name and it can be used more broadly too. [ci skip]
1 parent 1107c26 commit 7a86cab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

spyder/plugins/shortcuts/widgets/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def update_warning(self):
423423
else:
424424
warning = NO_WARNING
425425
tip = _('This key sequence is valid.')
426-
icon = ima.icon('dependency_ok')
426+
icon = ima.icon('success')
427427

428428
self.warning = warning
429429
self.conflicts = conflicts

spyder/utils/icon_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def __init__(self):
175175
'toggle_lowercase': [('mdi.format-letter-case-lower',), {'color': self.MAIN_FG_COLOR}],
176176
'toggle_uppercase': [('mdi.format-letter-case-upper',), {'color': self.MAIN_FG_COLOR}],
177177
'gotoline': [('mdi.format-line-spacing',), {'color': self.MAIN_FG_COLOR}],
178+
'success': [('mdi.check',), {'color': SpyderPalette.COLOR_SUCCESS_3}],
178179
'error': [('mdi.close-circle',), {'color': SpyderPalette.COLOR_ERROR_1}],
179180
'warning': [('mdi.alert',), {'color': SpyderPalette.COLOR_WARN_2}],
180181
'information': [('mdi.information-outline',), {'color': SpyderPalette.GROUP_9}],
@@ -383,7 +384,6 @@ def __init__(self):
383384
'folding.arrow_down': [('mdi.chevron-down',), {'color': self.MAIN_FG_COLOR}],
384385
'lspserver.down': [('mdi.alert',), {'color': self.MAIN_FG_COLOR}],
385386
'lspserver.ready': [('mdi.check',), {'color': self.MAIN_FG_COLOR}],
386-
'dependency_ok': [('mdi.check',), {'color': SpyderPalette.COLOR_SUCCESS_2}],
387387
'dependency_warning': [('mdi.alert',), {'color': SpyderPalette.COLOR_WARN_2}],
388388
'dependency_error': [('mdi.alert',), {'color': SpyderPalette.COLOR_ERROR_1}],
389389
'broken_image': [('mdi.image-broken-variant',), {'color': self.MAIN_FG_COLOR}],

spyder/widgets/dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def update_dependencies(self, dependencies):
6161

6262
# Format content
6363
if dependency.check():
64-
item.setIcon(0, ima.icon('dependency_ok'))
64+
item.setIcon(0, ima.icon('success'))
6565
elif dependency.kind == OPTIONAL:
6666
item.setIcon(0, ima.icon('dependency_warning'))
6767
item.setBackground(2, QColor(SpyderPalette.COLOR_WARN_1))

0 commit comments

Comments
 (0)