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

Show custom size in Candidate Text Size setting #390

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

lukhnos
Copy link
Contributor

@lukhnos lukhnos commented Nov 27, 2023

Before this treatment, if a user uses a custom candidate text size, the pop up button will revert to the first item (the smallest font size) in the list since we now remove the empty item at the bottom. If the user doesn't touch the pop up button, the custom font size remains intact. It's still a less ideal UI, though.

This commit makes sure that the custom font size is inserted into the pop up button and is selected.

Using defaults write org.openvanilla.inputmethod.McBopomofo CandidateListTextSize -int 38 to set the custom font size to 38pt, this is before:

1

After:

2

Before this treatment, if a user uses a custom candidate text size, the
pop up button will revert to the first item (the smallest font size) in
the list since we now remove the empty item at the bottom. If the user
doesn't touch the pop up button, the custom font size remains intact.
It's still a less ideal UI, though.

This commit makes sure that the custom font size is inserted into the
pop up button and is selected.
@lukhnos lukhnos requested a review from zonble November 27, 2023 04:24
@zonble zonble merged commit 44d47a1 into master Nov 27, 2023
2 checks passed
@lukhnos lukhnos deleted the dev/font-size-ui-improvement branch November 27, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants