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?
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?
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)
Thanks!
What was the API? i cant seem to find it
You can get the StudioTheme object by using settings().Studio.Theme
.