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

Fix default button focus outline & chip colors #420

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

rock3r
Copy link
Collaborator

@rock3r rock3r commented Jul 1, 2024

  • The default button was missing spacing between its bg and the focus outline, and outlined buttons were slightly off. Now the button border is drawn on top of the focus outline, like Swing does. It is now consistent with Swing both in standalone and bridge:
    standalone-light
    standalone-dark

  • The chips were drawing a double-outline when focused and selected. Now they only draw the selected outline if they are both focused and selected.

  • The chips didn't clearly signal the pressed and selected states. The background now reflects these states better (standalone only). There are no specs so we're going with a bit more freedom in the standalone version, as the Swing impl is quite lacking in polish still

Light Dark
chips-light chips-dark

@rock3r rock3r added the consistency Our UI presentation is not consistent with IJ label Jul 1, 2024
@rock3r rock3r requested review from devkanro and fscarponi July 1, 2024 10:26
@rock3r rock3r self-assigned this Jul 1, 2024
@rock3r rock3r force-pushed the button-outlines branch from 588827d to a36ce3f Compare July 1, 2024 11:21
@rock3r rock3r requested a review from hamen July 1, 2024 11:24
* The default button was missing spacing between its bg and the focus
  outline. Outlined buttons are unaffected.
* The chips were drawing a double-outline when focused and selected. Now
  they only draw the selected outline if they are both focused and
  selected.
* The chips didn't clearly signal the pressed and selected states. The
  background now reflects these states better (standalone only).
  There are no specs so we're going with a bit more freedom in the
  standalone version, as the Swing impl is quite lacking in polish still
@rock3r rock3r force-pushed the button-outlines branch from a36ce3f to 484cd77 Compare July 1, 2024 11:24
Copy link
Collaborator

@hamen hamen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks 👍🏻

@rock3r rock3r merged commit bc61e54 into main Jul 1, 2024
9 checks passed
@rock3r rock3r deleted the button-outlines branch July 1, 2024 12:54
@rock3r
Copy link
Collaborator Author

rock3r commented Jul 1, 2024

🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency Our UI presentation is not consistent with IJ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants