PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetColor

The GetColor() function returns the DataType/Color3 corresponding to the arguments provided. For instance, if you would like to get the DataType/Color3 of the Studio “MainButton” when it’s disabled, you can use the following code:

settings().Studio.Theme:GetColor(Enum.StudioStyleGuideColor.MainButton, Enum.StudioStyleGuideModifier.Disabled)

See the enum/StudioStyleGuideColor|StudioStyleGuideColor reference for a list of Studio elements and enum/StudioStyleGuideModifier|StudioStyleGuideModifier for a list of modifiers.

Parameters

Name Type Default Description

The element you want to get the theme color for

Default

The modifier you want to place on the StyleGuideColor element

Returns

Return Type Summary

The corresponding Color3 theme value