Is it possible to scale my entire desktop app up b...
# compose
z
Is it possible to scale my entire desktop app up by a factor of say 1,5? Ive tried using scale, and while it works - elements also go off screen, etc. Im looking to acheive something similar to how the emulator window scales its content when you resize it, and all of this is for debugging purposes only.. so somewhat hacky solutions are OK 😅
j
Maybe it’s enough to override your Local Density?
Copy code
val localDensity = LocalDensity.current
val newDensity = Density(fontScale = localDensity.fontScale * 1.5f, density = localDensity.density * 1.5f)
        CompositionLocalProvider(LocalDensity provides newDensity) {
 ...
Pseudo code, haven’t tried it out yet.
🎉 1
But I think that does not really achieve what you want.
z
Actually that worked perfectly! Thank you 👍🏽
j
Glad I could help. You’re welcome. 🙂
💪🏽 1
j
Yeah the power of local compositions, can always override them 😄
very nice 1