ColdWindScholar / MIO-KITCHEN-SOURCE

An Android Rom Tool in python
GNU Affero General Public License v3.0
40 stars 15 forks source link

Fix japanese [2/2] (and all other language) font for sv_ttk #53

Closed ghost closed 5 months ago

ghost commented 5 months ago

this pr includes a small clean up, a fix for japanese ui font size issue on Windows (i accidentally introduced this bug in the previous pr #51 ) and make sv_ttk use system default UI font for all languages (it was hardcoded to use Segoe UI before, see https://github.com/ColdWindScholar/MIO-KITCHEN-SOURCE/issues/8#issuecomment-2153731017

note that this pr also changed behavior of restarting the tool, it's no longer a hot reload, but now it spawns a child process and wait for it, while hiding and destroying the old tool window.

this is needed because currently the Tool object is created at top level, and i didn't have too much luck moving it to somewhere else, or recreating this object from scratch on restart, so this hacky solution is used for now... (since now its no longer relevant, i can separate it into a new PR if u want

ghost commented 5 months ago

see #8