Skip to content
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: Additional UI/UX improvements for Files and Projects #21813

Merged
merged 12 commits into from
Feb 19, 2024

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Feb 19, 2024

Description of Changes

  • Use a generic icon for unknown files instead of trying to detect if they are binary or not. That should speed up performance because relying on chardet for binary detection is slow.
  • Don't show full path in tooltips of files and directories in Projects because it's not really necessary.
  • Hide .orig files from view in Projects. Those are generated by git when a merge fails so we don't really need to display them.
  • Add more padding to QTreeWidget/QTreeView items to make the interface look less packed.
  • Switch between open/closed folder icons when collapsing/expanding directories in Files and Projects. That provides a better UI for those panes.
  • Use Spyder project icon for the project root directory and its plugin.

Visual changes

Before After
imagen imagen

Issue(s) Resolved

Part of #10081.

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

Without this we were not showing the pointing hand cursor on top of rows
for Python versions equal or greater than 3.10
- What we really need in other places is the constant instead of the
function.
- Use it instead of the function where it was called.
- That's much faster because is_text_file needs to open a file to detect
if it's editable or not.
- That should prevent freezes when browsing large directories in the
Files plugin.
- Those are files left by git from failed merges.
- Also, fix code style a bit.
Also, skip warning due to our splash screen and don't print blacklisted
warnings in dev mode because they can be annoying.
This is a follow up after PR spyder-ide#21666 was merged.
@pep8speaks
Copy link

Hello @ccordoba12! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 249:80: E501 line too long (94 > 79 characters)
Line 273:80: E501 line too long (85 > 79 characters)

@ccordoba12
Copy link
Member Author

I already discussed these changes with the UX team and they agree with them. So, I'm going to merge this one.

@ccordoba12 ccordoba12 merged commit 6dae78a into spyder-ide:master Feb 19, 2024
14 checks passed
@ccordoba12 ccordoba12 deleted the files-projects-ui-ux branch February 19, 2024 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants