Skip to content

Commit 5f73c36

Browse files
committed
Use consistant terminology for syntax highlighting theme in UI
1 parent baa23ba commit 5f73c36

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

spyder/plugins/appearance/confpage.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def setup_page(self):
9595
syntax_group = QGroupBox(_("Syntax highlighting theme"))
9696

9797
# Syntax Widgets
98-
edit_button = QPushButton(_("Edit selected scheme"))
99-
create_button = QPushButton(_("Create new scheme"))
100-
self.delete_button = QPushButton(_("Delete scheme"))
98+
edit_button = QPushButton(_("Edit selected theme"))
99+
create_button = QPushButton(_("Create new theme"))
100+
self.delete_button = QPushButton(_("Delete theme"))
101101
self.reset_button = QPushButton(_("Reset to defaults"))
102102

103103
self.stacked_widget = QStackedWidget(self)
@@ -560,10 +560,12 @@ def delete_scheme(self):
560560
"""Deletes the currently selected custom color scheme."""
561561
scheme_name = self.current_scheme
562562

563-
answer = QMessageBox.warning(self, _("Warning"),
564-
_("Are you sure you want to delete "
565-
"this scheme?"),
566-
QMessageBox.Yes | QMessageBox.No)
563+
answer = QMessageBox.warning(
564+
self,
565+
_("Warning"),
566+
_("Are you sure you want to delete this theme?"),
567+
QMessageBox.Yes | QMessageBox.No,
568+
)
567569
if answer == QMessageBox.Yes:
568570
# Put the combobox in Spyder by default, when deleting a scheme
569571
names = self.get_option('names')

spyder/plugins/appearance/widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ def add_color_scheme_stack(self, scheme_name, custom=False):
150150

151151
parent = self.parent
152152
self.line_edit = parent.create_lineedit(
153-
_("Scheme name:"), '{0}/name'.format(scheme_name)
153+
_("Theme name:"), '{0}/name'.format(scheme_name)
154154
)
155155

156156
self.widgets[scheme_name] = {}
157157

158158
# Widget setup
159159
self.line_edit.label.setAlignment(Qt.AlignRight | Qt.AlignVCenter)
160-
self.setWindowTitle(_('Color scheme editor'))
160+
self.setWindowTitle(_('Syntax highlighting theme editor'))
161161

162162
# Layout
163163
name_layout = QHBoxLayout()
@@ -243,7 +243,7 @@ def restore_original_scheme(self, scheme_name):
243243
self.line_edit.textbox.setText(
244244
str(parent.get_option('{0}/name'.format(scheme_name)))
245245
)
246-
246+
247247
for key, value in self.original_scheme.items():
248248
if isinstance(value, tuple):
249249
color = QColor()
@@ -255,7 +255,7 @@ def restore_original_scheme(self, scheme_name):
255255
color = QColor()
256256
color.setNamedColor(value)
257257
self.widgets[scheme_name][key][0].update_text(color)
258-
258+
259259
def reject(self):
260260
"""Executes when Cancel is pressed: Restores the edited scheme."""
261261
self.restore_original_scheme(self.last_used_scheme)

0 commit comments

Comments
 (0)