Skip to content

Commit

Permalink
Preferences: Increase tabs font size and padding per review
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 4, 2023
1 parent 08ede9e commit f86d9e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spyder/plugins/editor/confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def enable_tabwidth_spin(index):
"mixed end-of-line characters (this may "
"raise syntax errors in the consoles "
"on Windows platforms), Spyder may fix the "
"file automatically.<br>"))
"file automatically.<br><br>"))
eol_label.setWordWrap(True)
check_eol_box = newcb(_("Fix automatically and show warning "
"message box"),
Expand Down
2 changes: 1 addition & 1 deletion spyder/plugins/ipythonconsole/confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def setup_page(self):
"<tt>&lt;Space&gt;</tt> for some completions; "
"e.g. <tt>np.sin(&lt;Space&gt;np.&lt;Tab&gt;"
"</tt> works while <tt>np.sin(np.&lt;Tab&gt; "
"</tt> doesn't.<br>"))
"</tt> doesn't.<br><br>"))
greedy_label.setWordWrap(True)
greedy_box = newcb(_("Use greedy completion in the IPython console"),
"greedy_completer",
Expand Down
7 changes: 6 additions & 1 deletion spyder/plugins/preferences/widgets/configdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,15 @@ def _stylesheet(self):
tabs_stylesheet = SPECIAL_TABBAR_STYLESHEET.get_copy()
css = tabs_stylesheet.get_stylesheet()

# Set tabs font size to be the same as the one for items
css.QTabBar.setValues(
fontSize=f'{self.items_font.pointSize()}pt',
)

# Remove border and add padding for content inside tabs
css['QTabWidget::pane'].setValues(
border='0px',
padding='9px',
padding='15px',
)

# Set style of contents area
Expand Down

0 comments on commit f86d9e9

Please sign in to comment.