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

Migrate to custom checkbox/radio_value UI #2851

Merged
merged 4 commits into from
Jul 28, 2023
Merged

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Jul 27, 2023

What

This PR migrates our checkboxes and radio_values to a custom implementation in re_ui. Currently, the only change is the removal of the extension effect. In the future, the customisation might go deeper (e.g. custom tick mark, a variant for popup menu, etc.), possibly all the way to copy/pasting and rewriting the entire checkbox code.

This PR also introduces a lint to forbid the use of ui.checkbox()/ui.radio_value().

Fixes #2727

Checklist

@abey79 abey79 force-pushed the antoine/ui-custom-checkbox branch from 238ad94 to a84686e Compare July 27, 2023 15:50
@abey79 abey79 marked this pull request as ready for review July 27, 2023 15:50
@abey79 abey79 added the ui concerns graphical user interface label Jul 27, 2023
@abey79 abey79 changed the title Migrat to custom checkbox UI Migrate to custom checkbox UI Jul 27, 2023
@abey79 abey79 requested a review from Wumpf July 27, 2023 15:52
@abey79
Copy link
Member Author

abey79 commented Jul 27, 2023

cc @martenbjork

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

nice, really good idea with the lint.py addition :)

crates/re_ui/src/lib.rs Outdated Show resolved Hide resolved
scripts/lint.py Outdated Show resolved Hide resolved
scripts/lint.py Outdated Show resolved Hide resolved
@abey79 abey79 changed the title Migrate to custom checkbox UI Migrate to custom checkbox/radio_value UI Jul 27, 2023
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

sweet! 🚢

@abey79 abey79 merged commit 4ce7a40 into main Jul 28, 2023
@abey79 abey79 deleted the antoine/ui-custom-checkbox branch July 28, 2023 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove hover effect in checkboxes
2 participants