-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update to Compose 1.6 (BC break in Text) #564
Conversation
b362e77
to
5aa26f2
Compare
Pure update of Compose without M3 (still in alpha) is crashing in loaders: |
Ok, now I see, the icon sizing is broken as well. 🤔 |
Oh n.2, it is caused by adaptive font scaling. Exploring. |
Ok, so this is what is happening: Newly, there is the non-linear scaling. Orbit's icon usage is relying on the icon's box height to be the same height as the line height of the accompanying text. I.e. 15sp text with line-height 20sp fits nicely with 20sp tall icon. The issue now appears when the non-linear scaling applies smaller enlargement on a bigger text. All this is calculated against a sp unit value. Therefore, in the aforementioned example, this stops working:
But, this produces a different ratio between the text size and the icon size, which should be/had been ~30sp before (non-linear scaling) and now it is "only" ~26sp. So there are these options:
|
Let's not block Compose 1.6 by this and tackle it later. I've contacted Orbit and created an issue. |
The current Orbit POV is:
|
No description provided.