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: Remove icons from standard buttons in dialogs (UI/UX) #21945

Merged
merged 6 commits into from
Apr 6, 2024

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Mar 29, 2024

Description of Changes

  • On Linux, Qt adds by default icons to the standard buttons used in dialogs (e.g. Ok, Cancel , Reset, etc). However, that usually doesn't look good in Spyder because those icons come the operating system icon theme. So, in this PR I decided to remove them.
  • Increase vertical padding of buttons a bit (from 3px to 4px) to make them look better.
  • Fix a visual glitch with the positioning of app menus on Windows and Linux.
  • Fix an error when displaying app menus on Mac.

Visual changes

  • No icons for buttons in dialogs and increased vertical padding for them

    Before After
    imagen imagen
  • Visual glitch in app menus

    Before After
    imagen imagen

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:

@pep8speaks
Copy link

pep8speaks commented Mar 29, 2024

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

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-04-06 02:14:53 UTC

Also, increase vertical padding for buttons in dialogs to make them look
better.
This widget is necessary to remove the default icons Qt adds to the
standard buttons created in a regular QDialogButtonBox.
@ccordoba12 ccordoba12 modified the milestones: v6.0beta1, v6.0alpha5 Apr 6, 2024
@ccordoba12
Copy link
Member Author

I discussed these changes with the UX team and they agree with them.

@ccordoba12 ccordoba12 merged commit 8fb8712 into spyder-ide:master Apr 6, 2024
14 checks passed
@ccordoba12 ccordoba12 deleted the improve-dialogs-ui branch April 6, 2024 05:29
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