openvanilla / McBopomofo

小麥注音輸入法
http://mcbopomofo.openvanilla.org/
MIT License
626 stars 76 forks source link

Show custom size in Candidate Text Size setting #390

Closed lukhnos closed 11 months ago

lukhnos commented 11 months ago

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