mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
# This file is automatically generated. Please don't edit it manually.
|
|
# To submit a bug report on the content, see
|
|
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
|
|
|
|
name: StudioTheme
|
|
type: class
|
|
memory_category: Instances
|
|
summary: ''
|
|
description: ''
|
|
code_samples: []
|
|
inherits:
|
|
- Instance
|
|
descendants: []
|
|
tags:
|
|
- NotCreatable
|
|
- NotReplicated
|
|
deprecation_message: ''
|
|
properties: []
|
|
methods:
|
|
- name: StudioTheme:GetColor
|
|
summary: |
|
|
Returns the color corresponding to the arguments provided.
|
|
description: |
|
|
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:
|
|
|
|
```lua
|
|
settings().Studio.Theme:GetColor(Enum.StudioStyleGuideColor.MainButton, Enum.StudioStyleGuideModifier.Disabled)
|
|
```
|
|
|
|
See the `Enum.StudioStyleGuideColor` reference for a list of Studio
|
|
elements and `Enum.StudioStyleGuideModifier` for a list of modifiers.
|
|
code_samples: []
|
|
parameters:
|
|
- name: styleguideitem
|
|
type: StudioStyleGuideColor
|
|
default:
|
|
summary: |
|
|
The element you want to get the theme color for.
|
|
- name: modifier
|
|
type: StudioStyleGuideModifier
|
|
default: Default
|
|
summary: |
|
|
The modifier you want to place on the `StyleGuideColor` element.
|
|
returns:
|
|
- type: Color3
|
|
summary: |
|
|
The corresponding Color3 theme value.
|
|
tags: []
|
|
deprecation_message: ''
|
|
security: PluginSecurity
|
|
thread_safety: Unsafe
|
|
capabilities: []
|
|
events: []
|
|
callbacks: []
|