slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.54k stars 600 forks source link

horizontal-alignment for LineEdit and TextEdit #1317

Closed cppdev123 closed 2 years ago

cppdev123 commented 2 years ago

LineEdit and TextEdit use TextInput under the hood which contains horizontal-alignment that can allow right to left language text to appear from right to left. They should expose this property or an equivalent text direction property. Also an automatic text direction depending on the text language will be good to have

cppdev123 commented 2 years ago

this pr should solve this: https://github.com/slint-ui/slint/pull/1319

tronical commented 2 years ago

You're right. Thanks for filing the ticket and also making a PR :)

ogoffart commented 2 years ago

Was fixed by #1321