There’s seemingly no info about it, even almighty mal has no clue about it. When sfos is in tablet mode it enables three finger gesture (it controls volume if you never had tablet), and in past it changed how homescreen looks. Now I would like to adjust my apps ui for the tablet mode because well, real estate is huge and some elements don’t scale nicely (thing that takes 1/10th the screen on phone is 1mm on the tablet for some reason). But seemingly there’s no way to check for it?
The “tablet mode” is mostly behavior based on the screen size category. You can try overriding it with dconf key “/desktop/sailfish/silica/size_category” with “large” or “extralarge”.
You might get a funny outcome if that’s adjusted on a phone and the screen is really smaller, but maybe it helps testing the UI scaling.
Yeah but how do i check if its in tablet mode in my app to adjust ui accordingly?
Ah, just make some behavior depending on the screen size category.
somePropertyThing: Screen.sizeCategory > Screen.Medium ? bigThing : smallThing
or whatever.
I’m guessing sizeCategory
is determined from things like
QT_QPA_EGLFS_PHYSICAL_WIDTH=140
QT_QPA_EGLFS_PHYSICAL_HEIGHT=220
?
e.g.
Ah wasn’t available of that property thanks i’ll try it out.