-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR: Improve style of the Preferences dialog (UI) #21233
Merged
ccordoba12
merged 36 commits into
spyder-ide:master
from
ccordoba12:improve-preferences-ui
Nov 4, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
a8ed626
Preferences: Add a max width to all pages
ccordoba12 b4ab294
Preferences: Fix layout of Appearance page after last changes
ccordoba12 db007c2
Preferences: Replace splitter for a grid layout in config dialog
ccordoba12 e38f331
Fix setting and restoring Preferences dialog size
ccordoba12 088b3b9
Stylesheet: Change QGroupBox style in the application
ccordoba12 92b6717
Preferences: Add a modern style for its dialog
ccordoba12 b3cc034
Preferences: Remove unneeded margins in "Completions and linting" tabs
ccordoba12 c7f6101
Preferences: Set for its tabs the same style used for dockwidget tabbars
ccordoba12 d6e7a3f
Preferences: Show wait cursor when opening its dialog
ccordoba12 9c05e3a
Preferences: Small style fixes in several pages
ccordoba12 4c33c52
Preferences: Show tooltips for plugin names whose text is elided
ccordoba12 25af2a6
Editor: Improve config page
ccordoba12 78f5477
IPython console: Improve its config page
ccordoba12 001db9f
Preferences: Increase tabs font size and padding per review
ccordoba12 3c63e25
Preferences: Add header sections to its plugin and minor style fixes
ccordoba12 9f2033b
Preferences: Move `api` module to `widgets/config_widgets.py`
ccordoba12 bb51667
Preferences: Organize page entries in different sections
ccordoba12 c7894fc
Preferences: Improve how we add tooltips to contents_widget elided items
ccordoba12 f7062b0
Preferences: Move Qt method to the right section
ccordoba12 678d6bb
Widgets: Fix bug in ElementsTable when hovering
ccordoba12 9fd5d0a
Widgets: Fix right margin of ElementsTable last column on Mac
ccordoba12 f501efd
Widgets: Remove setting ElementsTable layout on QEvent.LayoutRequest
ccordoba12 fd694e8
Preferences: Standardize how tabs are created in config pages
ccordoba12 175953d
Set scroll buttons and prevent eliding text on dock and preference tabs
ccordoba12 acefd0d
Merge branch 'master' into improve-preferences-ui
ccordoba12 5d4c23d
Testing: Fix tests related to Preferences
ccordoba12 9935686
Preferences: Set min height for config pages
ccordoba12 189806e
Add superqt as a new dependency
ccordoba12 4fb839f
Preferences: Debounce operations when its dialog is resized
ccordoba12 85310f8
Preferences: Adjust separators width when its dialog is resized
ccordoba12 7c7c396
Widgets: Debounce operations when resizing ElementsTable
ccordoba12 66700f0
Preferences: Make several adjustments per operating system
ccordoba12 69fa4ba
Stylesheet: Create a new class for tab bars used in Preferences
ccordoba12 f739662
Preferences: Show "Main interpreter" entry above "Keyboard shortcuts"
ccordoba12 c59a2e5
Preferences: Move MOST_IMPORTANT_PAGES constant to its init module
ccordoba12 34f5bdc
Merge branch 'master' into improve-preferences-ui
ccordoba12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we preserve the import call that was before and instead do this new import from
spyder.plugins.preferences.api
? Although those definitions are widgets, it is also true that they are part of the preferences plugin API, no?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say that not really. I mean, I think what we should put in
spyder/plugins/myplugin/api.py
are things that other plugins need to import to work in relationship tomyplugin
. That's why we have mainly enums for actions in theapi
module of most of our plugins (to place other actions in menus or toolbars before or after them, for instance).In this particular case, other plugins don't need to import
SpyderConfigPage
andBaseConfigTab
butSpyderPreferencesTab
andPluginConfigPage
, which are declared here.However, your comment made me realize that the
MOST_IMPORTANT_PAGES
constant that I added tospyder.plugins.preferences.api
shouldn't be there. That's because that constant is not needed by other plugins but by several modules in the Preferences plugin. So, I put it inapi.py
to avoid circular imports, but I think it's better placed inspyder.plugins.preferences.__init__
, which is where I'll move it in my next commit.