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

Improve Settings UI/UX #279

Merged
merged 4 commits into from
Jul 5, 2023
Merged

Conversation

Doomsdayrs
Copy link
Contributor

There are a few issues I found with the UI/UX of the settings view. This PR aims to solve those issues.

Previously, two scrolls would occur creating a complicated user experience.

This commit solves the issue by inlining EnginePref into the LazyColumn.

A problem occurs in which BlockingRadioButton causes
 a crash due to infinite height mechanics of LazyVerticalGrid.
To solve this, a max height of 200.dp is applied to LazyVerticalGrid.
@github-actions github-actions bot added the Core label Jul 2, 2023
Helps make the dialog easier to understand.

Solved by adding an optional parameter to ListPreferenceDialog for a title.
Clarifies what is currently being used.

Solved by adding an optional isSelected parameter to ListPreferenceOption & SelectableItem.
@Doomsdayrs
Copy link
Contributor Author

@Bnyro Currently TessSettings is done via dialog and is a tad claustrophobic.

I will leave it out of this PR, as I feel like it is a different scope. But the Tess Helper and Settings can be improved. Such as proper language titles, descriptions, file sizes, etc.

@Bnyro
Copy link
Member

Bnyro commented Jul 2, 2023

@Doomsdayrs Yes, I'm aware, I didn't do that at the initial implementation because I was kinda lazy.
Feel free to open a new PR then, sounds like these would be viable improvements.

@Doomsdayrs
Copy link
Contributor Author

because I was kinda lazy.

Ah, I feel the same sometimes, easier to just get something bare metal in then all the extra effort xD.

The issue was that 250.dp was just empty for no apparent reason.
 By instead having the picker disabled and at half alpha,
 the user can see what is the other option.

This is resolved by using animateFloatAsState to control the alpha,
 and adding a pointer input override.
@Doomsdayrs Doomsdayrs marked this pull request as ready for review July 2, 2023 17:37
Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@Bnyro Bnyro merged commit 9385cc1 into you-apps:master Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants