From f86d9e93c5ba2ff72f54a9161d9639403d120f57 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Fri, 4 Aug 2023 18:24:44 -0500 Subject: [PATCH] Preferences: Increase tabs font size and padding per review --- spyder/plugins/editor/confpage.py | 2 +- spyder/plugins/ipythonconsole/confpage.py | 2 +- spyder/plugins/preferences/widgets/configdialog.py | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/spyder/plugins/editor/confpage.py b/spyder/plugins/editor/confpage.py index 39a41872cf8..4a6afc7acf9 100644 --- a/spyder/plugins/editor/confpage.py +++ b/spyder/plugins/editor/confpage.py @@ -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.
")) + "file automatically.

")) eol_label.setWordWrap(True) check_eol_box = newcb(_("Fix automatically and show warning " "message box"), diff --git a/spyder/plugins/ipythonconsole/confpage.py b/spyder/plugins/ipythonconsole/confpage.py index e7622a57e2a..0dbf0633a61 100644 --- a/spyder/plugins/ipythonconsole/confpage.py +++ b/spyder/plugins/ipythonconsole/confpage.py @@ -268,7 +268,7 @@ def setup_page(self): "<Space> for some completions; " "e.g. np.sin(<Space>np.<Tab>" " works while np.sin(np.<Tab> " - " doesn't.
")) + " doesn't.

")) greedy_label.setWordWrap(True) greedy_box = newcb(_("Use greedy completion in the IPython console"), "greedy_completer", diff --git a/spyder/plugins/preferences/widgets/configdialog.py b/spyder/plugins/preferences/widgets/configdialog.py index 2657b6d9707..9de9a9963a6 100644 --- a/spyder/plugins/preferences/widgets/configdialog.py +++ b/spyder/plugins/preferences/widgets/configdialog.py @@ -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