Where to set the main resolution of the Ubuntu Touch for a specific mobile model?
-
Hi everyone,
I am working with Lomiri UI repo to do some custom changes to the UI, I am checking my changes using the CLICKABLE command on my dev environment. The things look different when I port them to mobile in terms of sizes.
I am working with Redmi Note 9 pro. How can I set the resolution of this model in Lomiri UI code? -
Waiting for the guidance...
-
@iqrajaved no idea
True, the resolution is not exactly the same, but should be not that far from real situation.
Some testers liketryShell
have the possibility to set the size and usage scenario which is close to the Phone resolution.
I don't know if we can set during tests the GRID_UNIT_PX ( which is an env var you can see on the phone) -
@lduboeuf
The variable GRIP_UNIT_PX on my phone is 21, how is the width and height are related to this variable? I am sorry if its a naive question, but I couldn't find it.I believe the default value in lomiri ui is 8 for this
-
-
@iqrajaved said in Where to set the main resolution of the Ubuntu Touch for a specific mobile model?:
@lduboeuf
Also can you please tell me that what's the mathematics behind units.gu(int) with respect to the width and height? How these are related?
May be I can use this for general changesMaybe that resource will help you: https://docs.ubports.com/en/latest/humanguide/design-concepts/units.html
-
@lduboeuf thank you, it helps