Skip to content

Commit

Permalink
Appearance: Make the preview interface font text editable
Browse files Browse the repository at this point in the history
- That way users will be able to set a new text in they need to.
- Also, use a more generic text there.
  • Loading branch information
ccordoba12 committed Nov 17, 2024
1 parent 10ca9cb commit da22bd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spyder/plugins/appearance/confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,13 @@ def setup_page(self):
self.preview_editor.set_scrollpastend_enabled(False)

preview_interface_label = QLabel(_("Interface font"))
self.preview_interface = QLabel("Happy Spydering!")
self.preview_interface = QLabel("Sample text")
self.preview_interface.setFixedWidth(260)
self.preview_interface.setFixedHeight(45)
self.preview_interface.setWordWrap(True)
self.preview_interface.setTextInteractionFlags(
Qt.TextEditorInteraction
)
self.preview_interface.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)

preview_interface_label_css = qstylizer.style.StyleSheet()
Expand Down

0 comments on commit da22bd9

Please sign in to comment.