Is it Possible to check User's Theme Choice?

Hey, I’m wondering if you’re able to check and see if someone is using Dark Theme or Light Theme in studio?

If it is possible, how might I go about it?

1 Like

I believe an API is coming out shortly, but for now you can use settings().Studio["UI Theme"] to get and set the theme. Note that this is temporary, and Roblox intends to break this API when the new one is revealed, so wrap it in a pcall() statement.

pcall(function()
local settings=settings().Studio
if settings["UI Theme"]==Enum.UITheme.Light then --is it the wrong way?
    settings["UI Theme"]=Enum.UITheme.Dark --then make it the right way.
end
end)
3 Likes

Thanks!

What was the API? i cant seem to find it

You can get the StudioTheme object by using settings().Studio.Theme.