https://kotlinlang.org logo
#android-studio
Title
# android-studio
u

ursus

10/14/2023, 1:34 PM
I never use previews because my pc is crap How can I disable this bar altogether? It's eating up my precious vertical space on laptop screen
c

Chris Sinco [G]

10/15/2023, 6:43 PM
Not sure it totally helps but in the New UI, this bar is more compact and put on the same bar as the editor tabs
Long term though we are looking into a way to not show the preview modes if no Preview is detected in the active file
u

ursus

10/15/2023, 7:17 PM
yea im aware but I dont use tabs, so I get even more vertical space
that would be smart yea
m

Mohammed Akram Hussain

10/15/2023, 10:18 PM
You can disable it from Setting -> Editor -> Design Tools
thank you color 1
c

Chris Sinco [G]

10/15/2023, 10:22 PM
That setting won’t remove the toolbar though, it just changes the default. So stops Preview from running at least.
👍 1
u

ursus

10/15/2023, 10:29 PM
now that I look at the modes .. I do ofc like it for drawables, but yea I never toggle between them
btw @Chris Sinco [G] what's the criteria for the toolbar to show? Since it shows up in my ViewModels as well, where theres obviously no UI code these are the only foreign imports
c

Chris Sinco [G]

10/16/2023, 9:44 PM
I’d have to check, but I think it shows up when
androidx.compose
is shown. Or any Kotlin file in Studio 😞
u

ursus

10/17/2023, 3:40 PM
hmm I removed the Immutable annotation and still
c

Chris Sinco [G]

10/17/2023, 4:19 PM
Ah unfortunately it’s every Kotlin file 😞