mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 06:05:24 +00:00
Use Studio theming (#838)
Updates our Theme provider to use Studio colors. A few components look ever so slightly different now, but more in line with Studio.
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
# Rojo Changelog
|
# Rojo Changelog
|
||||||
|
|
||||||
## Unreleased Changes
|
## Unreleased Changes
|
||||||
|
* Updated Theme to use Studio colors ([#838])
|
||||||
|
|
||||||
|
[#838]: https://github.com/rojo-rbx/rojo/pull/838
|
||||||
|
|
||||||
* Projects may now specify rules for syncing files as if they had a different file extension. ([#813])
|
* Projects may now specify rules for syncing files as if they had a different file extension. ([#813])
|
||||||
This is specified via a new field on project files, `syncRules`:
|
This is specified via a new field on project files, `syncRules`:
|
||||||
|
|||||||
@@ -109,9 +109,7 @@ function Dropdown:render()
|
|||||||
}, {
|
}, {
|
||||||
DropArrow = e("ImageLabel", {
|
DropArrow = e("ImageLabel", {
|
||||||
Image = if self.props.locked then Assets.Images.Dropdown.Locked else Assets.Images.Dropdown.Arrow,
|
Image = if self.props.locked then Assets.Images.Dropdown.Locked else Assets.Images.Dropdown.Arrow,
|
||||||
ImageColor3 = self.openBinding:map(function(a)
|
ImageColor3 = theme.IconColor,
|
||||||
return theme.Closed.IconColor:Lerp(theme.Open.IconColor, a)
|
|
||||||
end),
|
|
||||||
ImageTransparency = self.props.transparency,
|
ImageTransparency = self.props.transparency,
|
||||||
|
|
||||||
Size = UDim2.new(0, 18, 0, 18),
|
Size = UDim2.new(0, 18, 0, 18),
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ function ChangeList:render()
|
|||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Font = Enum.Font.GothamBold,
|
Font = Enum.Font.GothamBold,
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
TextColor3 = theme.Settings.Setting.DescriptionColor,
|
TextColor3 = theme.TextColor,
|
||||||
TextXAlignment = Enum.TextXAlignment.Left,
|
TextXAlignment = Enum.TextXAlignment.Left,
|
||||||
TextTransparency = props.transparency,
|
TextTransparency = props.transparency,
|
||||||
TextTruncate = Enum.TextTruncate.AtEnd,
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
||||||
@@ -66,7 +66,7 @@ function ChangeList:render()
|
|||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Font = Enum.Font.GothamBold,
|
Font = Enum.Font.GothamBold,
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
TextColor3 = theme.Settings.Setting.DescriptionColor,
|
TextColor3 = theme.TextColor,
|
||||||
TextXAlignment = Enum.TextXAlignment.Left,
|
TextXAlignment = Enum.TextXAlignment.Left,
|
||||||
TextTransparency = props.transparency,
|
TextTransparency = props.transparency,
|
||||||
TextTruncate = Enum.TextTruncate.AtEnd,
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
||||||
@@ -78,7 +78,7 @@ function ChangeList:render()
|
|||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Font = Enum.Font.GothamBold,
|
Font = Enum.Font.GothamBold,
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
TextColor3 = theme.Settings.Setting.DescriptionColor,
|
TextColor3 = theme.TextColor,
|
||||||
TextXAlignment = Enum.TextXAlignment.Left,
|
TextXAlignment = Enum.TextXAlignment.Left,
|
||||||
TextTransparency = props.transparency,
|
TextTransparency = props.transparency,
|
||||||
TextTruncate = Enum.TextTruncate.AtEnd,
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
||||||
@@ -197,7 +197,7 @@ function ChangeList:render()
|
|||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Font = Enum.Font.GothamMedium,
|
Font = Enum.Font.GothamMedium,
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
TextColor3 = if isWarning then theme.Diff.Warning else theme.Settings.Setting.DescriptionColor,
|
TextColor3 = if isWarning then theme.Diff.Warning else theme.TextColor,
|
||||||
TextXAlignment = Enum.TextXAlignment.Left,
|
TextXAlignment = Enum.TextXAlignment.Left,
|
||||||
TextTransparency = props.transparency,
|
TextTransparency = props.transparency,
|
||||||
TextTruncate = Enum.TextTruncate.AtEnd,
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ function DomLabel:render()
|
|||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
Font = Enum.Font.GothamMedium,
|
Font = Enum.Font.GothamMedium,
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
TextColor3 = if props.isWarning then theme.Diff.Warning else theme.Settings.Setting.DescriptionColor,
|
TextColor3 = if props.isWarning then theme.Diff.Warning else theme.TextColor,
|
||||||
TextXAlignment = Enum.TextXAlignment.Left,
|
TextXAlignment = Enum.TextXAlignment.Left,
|
||||||
TextTransparency = props.transparency,
|
TextTransparency = props.transparency,
|
||||||
TextTruncate = Enum.TextTruncate.AtEnd,
|
TextTruncate = Enum.TextTruncate.AtEnd,
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ function PatchVisualizer:render()
|
|||||||
Text = "No changes to sync, project is up to date.",
|
Text = "No changes to sync, project is up to date.",
|
||||||
Font = Enum.Font.GothamMedium,
|
Font = Enum.Font.GothamMedium,
|
||||||
TextSize = 15,
|
TextSize = 15,
|
||||||
TextColor3 = theme.Settings.Setting.DescriptionColor,
|
TextColor3 = theme.TextColor,
|
||||||
TextWrapped = true,
|
TextWrapped = true,
|
||||||
Size = UDim2.new(1, 0, 1, 0),
|
Size = UDim2.new(1, 0, 1, 0),
|
||||||
BackgroundTransparency = 1,
|
BackgroundTransparency = 1,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ function ConfirmingPage:render()
|
|||||||
Font = Enum.Font.Gotham,
|
Font = Enum.Font.Gotham,
|
||||||
LineHeight = 1.2,
|
LineHeight = 1.2,
|
||||||
TextSize = 14,
|
TextSize = 14,
|
||||||
TextColor3 = theme.Settings.Setting.DescriptionColor,
|
TextColor3 = theme.TextColor,
|
||||||
TextXAlignment = Enum.TextXAlignment.Left,
|
TextXAlignment = Enum.TextXAlignment.Left,
|
||||||
TextTransparency = self.props.transparency,
|
TextTransparency = self.props.transparency,
|
||||||
Size = UDim2.new(1, 0, 0, 20),
|
Size = UDim2.new(1, 0, 0, 20),
|
||||||
|
|||||||
@@ -25,227 +25,7 @@ local strict = require(script.Parent.Parent.strict)
|
|||||||
|
|
||||||
local BRAND_COLOR = Color3.fromHex("E13835")
|
local BRAND_COLOR = Color3.fromHex("E13835")
|
||||||
|
|
||||||
local lightTheme = strict("LightTheme", {
|
local Context = Roact.createContext({})
|
||||||
BackgroundColor = Color3.fromHex("FFFFFF"),
|
|
||||||
Button = {
|
|
||||||
Solid = {
|
|
||||||
ActionFillColor = Color3.fromHex("FFFFFF"),
|
|
||||||
ActionFillTransparency = 0.8,
|
|
||||||
Enabled = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BackgroundColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Disabled = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BackgroundColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Bordered = {
|
|
||||||
ActionFillColor = Color3.fromHex("000000"),
|
|
||||||
ActionFillTransparency = 0.9,
|
|
||||||
Enabled = {
|
|
||||||
TextColor = Color3.fromHex("393939"),
|
|
||||||
BorderColor = Color3.fromHex("ACACAC"),
|
|
||||||
},
|
|
||||||
Disabled = {
|
|
||||||
TextColor = Color3.fromHex("393939"),
|
|
||||||
BorderColor = Color3.fromHex("ACACAC"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Checkbox = {
|
|
||||||
Active = {
|
|
||||||
IconColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BackgroundColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Inactive = {
|
|
||||||
IconColor = Color3.fromHex("EEEEEE"),
|
|
||||||
BorderColor = Color3.fromHex("AFAFAF"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dropdown = {
|
|
||||||
TextColor = Color3.fromHex("000000"),
|
|
||||||
BorderColor = Color3.fromHex("AFAFAF"),
|
|
||||||
BackgroundColor = Color3.fromHex("EEEEEE"),
|
|
||||||
Open = {
|
|
||||||
IconColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Closed = {
|
|
||||||
IconColor = Color3.fromHex("EEEEEE"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
TextInput = {
|
|
||||||
Enabled = {
|
|
||||||
TextColor = Color3.fromHex("000000"),
|
|
||||||
PlaceholderColor = Color3.fromHex("8C8C8C"),
|
|
||||||
BorderColor = Color3.fromHex("ACACAC"),
|
|
||||||
},
|
|
||||||
Disabled = {
|
|
||||||
TextColor = Color3.fromHex("393939"),
|
|
||||||
PlaceholderColor = Color3.fromHex("8C8C8C"),
|
|
||||||
BorderColor = Color3.fromHex("AFAFAF"),
|
|
||||||
},
|
|
||||||
ActionFillColor = Color3.fromHex("000000"),
|
|
||||||
ActionFillTransparency = 0.9,
|
|
||||||
},
|
|
||||||
AddressEntry = {
|
|
||||||
TextColor = Color3.fromHex("000000"),
|
|
||||||
PlaceholderColor = Color3.fromHex("8C8C8C"),
|
|
||||||
},
|
|
||||||
BorderedContainer = {
|
|
||||||
BorderColor = Color3.fromHex("CBCBCB"),
|
|
||||||
BackgroundColor = Color3.fromHex("EEEEEE"),
|
|
||||||
},
|
|
||||||
Spinner = {
|
|
||||||
ForegroundColor = BRAND_COLOR,
|
|
||||||
BackgroundColor = Color3.fromHex("EEEEEE"),
|
|
||||||
},
|
|
||||||
Diff = {
|
|
||||||
Add = Color3.fromHex("baffbd"),
|
|
||||||
Remove = Color3.fromHex("ffbdba"),
|
|
||||||
Edit = Color3.fromHex("bacdff"),
|
|
||||||
Row = Color3.fromHex("000000"),
|
|
||||||
Warning = Color3.fromHex("FF8E3C"),
|
|
||||||
},
|
|
||||||
ConnectionDetails = {
|
|
||||||
ProjectNameColor = Color3.fromHex("000000"),
|
|
||||||
AddressColor = Color3.fromHex("000000"),
|
|
||||||
DisconnectColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Settings = {
|
|
||||||
DividerColor = Color3.fromHex("CBCBCB"),
|
|
||||||
Navbar = {
|
|
||||||
BackButtonColor = Color3.fromHex("000000"),
|
|
||||||
TextColor = Color3.fromHex("000000"),
|
|
||||||
},
|
|
||||||
Setting = {
|
|
||||||
NameColor = Color3.fromHex("000000"),
|
|
||||||
DescriptionColor = Color3.fromHex("5F5F5F"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Header = {
|
|
||||||
LogoColor = BRAND_COLOR,
|
|
||||||
VersionColor = Color3.fromHex("727272"),
|
|
||||||
},
|
|
||||||
Notification = {
|
|
||||||
InfoColor = Color3.fromHex("000000"),
|
|
||||||
CloseColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
ErrorColor = Color3.fromHex("000000"),
|
|
||||||
ScrollBarColor = Color3.fromHex("000000"),
|
|
||||||
})
|
|
||||||
|
|
||||||
local darkTheme = strict("DarkTheme", {
|
|
||||||
BackgroundColor = Color3.fromHex("2E2E2E"),
|
|
||||||
Button = {
|
|
||||||
Solid = {
|
|
||||||
ActionFillColor = Color3.fromHex("FFFFFF"),
|
|
||||||
ActionFillTransparency = 0.8,
|
|
||||||
Enabled = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BackgroundColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Disabled = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BackgroundColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Bordered = {
|
|
||||||
ActionFillColor = Color3.fromHex("FFFFFF"),
|
|
||||||
ActionFillTransparency = 0.9,
|
|
||||||
Enabled = {
|
|
||||||
TextColor = Color3.fromHex("DBDBDB"),
|
|
||||||
BorderColor = Color3.fromHex("535353"),
|
|
||||||
},
|
|
||||||
Disabled = {
|
|
||||||
TextColor = Color3.fromHex("DBDBDB"),
|
|
||||||
BorderColor = Color3.fromHex("535353"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Checkbox = {
|
|
||||||
Active = {
|
|
||||||
IconColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BackgroundColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Inactive = {
|
|
||||||
IconColor = Color3.fromHex("484848"),
|
|
||||||
BorderColor = Color3.fromHex("5A5A5A"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Dropdown = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
BorderColor = Color3.fromHex("5A5A5A"),
|
|
||||||
BackgroundColor = Color3.fromHex("2B2B2B"),
|
|
||||||
Open = {
|
|
||||||
IconColor = BRAND_COLOR,
|
|
||||||
},
|
|
||||||
Closed = {
|
|
||||||
IconColor = Color3.fromHex("484848"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
TextInput = {
|
|
||||||
Enabled = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
PlaceholderColor = Color3.fromHex("8B8B8B"),
|
|
||||||
BorderColor = Color3.fromHex("535353"),
|
|
||||||
},
|
|
||||||
Disabled = {
|
|
||||||
TextColor = Color3.fromHex("484848"),
|
|
||||||
PlaceholderColor = Color3.fromHex("8B8B8B"),
|
|
||||||
BorderColor = Color3.fromHex("5A5A5A"),
|
|
||||||
},
|
|
||||||
ActionFillColor = Color3.fromHex("FFFFFF"),
|
|
||||||
ActionFillTransparency = 0.9,
|
|
||||||
},
|
|
||||||
AddressEntry = {
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
PlaceholderColor = Color3.fromHex("8B8B8B"),
|
|
||||||
},
|
|
||||||
BorderedContainer = {
|
|
||||||
BorderColor = Color3.fromHex("535353"),
|
|
||||||
BackgroundColor = Color3.fromHex("2B2B2B"),
|
|
||||||
},
|
|
||||||
Spinner = {
|
|
||||||
ForegroundColor = BRAND_COLOR,
|
|
||||||
BackgroundColor = Color3.fromHex("2B2B2B"),
|
|
||||||
},
|
|
||||||
Diff = {
|
|
||||||
Add = Color3.fromHex("273732"),
|
|
||||||
Remove = Color3.fromHex("3F2D32"),
|
|
||||||
Edit = Color3.fromHex("193345"),
|
|
||||||
Row = Color3.fromHex("FFFFFF"),
|
|
||||||
Warning = Color3.fromHex("FF8E3C"),
|
|
||||||
},
|
|
||||||
ConnectionDetails = {
|
|
||||||
ProjectNameColor = Color3.fromHex("FFFFFF"),
|
|
||||||
AddressColor = Color3.fromHex("FFFFFF"),
|
|
||||||
DisconnectColor = Color3.fromHex("FFFFFF"),
|
|
||||||
},
|
|
||||||
Settings = {
|
|
||||||
DividerColor = Color3.fromHex("535353"),
|
|
||||||
Navbar = {
|
|
||||||
BackButtonColor = Color3.fromHex("FFFFFF"),
|
|
||||||
TextColor = Color3.fromHex("FFFFFF"),
|
|
||||||
},
|
|
||||||
Setting = {
|
|
||||||
NameColor = Color3.fromHex("FFFFFF"),
|
|
||||||
DescriptionColor = Color3.fromHex("D3D3D3"),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Header = {
|
|
||||||
LogoColor = BRAND_COLOR,
|
|
||||||
VersionColor = Color3.fromHex("D3D3D3"),
|
|
||||||
},
|
|
||||||
Notification = {
|
|
||||||
InfoColor = Color3.fromHex("FFFFFF"),
|
|
||||||
CloseColor = Color3.fromHex("FFFFFF"),
|
|
||||||
},
|
|
||||||
ErrorColor = Color3.fromHex("FFFFFF"),
|
|
||||||
ScrollBarColor = Color3.fromHex("FFFFFF"),
|
|
||||||
})
|
|
||||||
|
|
||||||
local Context = Roact.createContext(lightTheme)
|
|
||||||
|
|
||||||
local StudioProvider = Roact.Component:extend("StudioProvider")
|
local StudioProvider = Roact.Component:extend("StudioProvider")
|
||||||
|
|
||||||
@@ -253,21 +33,153 @@ local StudioProvider = Roact.Component:extend("StudioProvider")
|
|||||||
function StudioProvider:updateTheme()
|
function StudioProvider:updateTheme()
|
||||||
local studioTheme = getStudio().Theme
|
local studioTheme = getStudio().Theme
|
||||||
|
|
||||||
if studioTheme.Name == "Light" then
|
local theme = strict(studioTheme.Name .. "Theme", {
|
||||||
self:setState({
|
BackgroundColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.MainBackground),
|
||||||
theme = lightTheme,
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.MainText),
|
||||||
})
|
Button = {
|
||||||
elseif studioTheme.Name == "Dark" then
|
Solid = {
|
||||||
self:setState({
|
-- Solid uses brand theming, not Studio theming.
|
||||||
theme = darkTheme,
|
ActionFillColor = Color3.fromHex("FFFFFF"),
|
||||||
})
|
ActionFillTransparency = 0.8,
|
||||||
else
|
Enabled = {
|
||||||
Log.warn("Unexpected theme '{}'' -- falling back to light theme!", studioTheme.Name)
|
TextColor = Color3.fromHex("FFFFFF"),
|
||||||
|
BackgroundColor = BRAND_COLOR,
|
||||||
|
},
|
||||||
|
Disabled = {
|
||||||
|
TextColor = Color3.fromHex("FFFFFF"),
|
||||||
|
BackgroundColor = BRAND_COLOR,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Bordered = {
|
||||||
|
ActionFillColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.ButtonText,
|
||||||
|
Enum.StudioStyleGuideModifier.Selected
|
||||||
|
),
|
||||||
|
ActionFillTransparency = 0.9,
|
||||||
|
Enabled = {
|
||||||
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.ButtonText),
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
},
|
||||||
|
Disabled = {
|
||||||
|
TextColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.ButtonText,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Checkbox = {
|
||||||
|
Active = {
|
||||||
|
-- Active checkboxes use brand theming, not Studio theming.
|
||||||
|
IconColor = Color3.fromHex("FFFFFF"),
|
||||||
|
BackgroundColor = BRAND_COLOR,
|
||||||
|
},
|
||||||
|
Inactive = {
|
||||||
|
IconColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldIndicator,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Dropdown = {
|
||||||
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.ButtonText),
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
BackgroundColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.MainBackground),
|
||||||
|
IconColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldIndicator,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
},
|
||||||
|
TextInput = {
|
||||||
|
Enabled = {
|
||||||
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
PlaceholderColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.SubText),
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
},
|
||||||
|
Disabled = {
|
||||||
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.MainText),
|
||||||
|
PlaceholderColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.SubText),
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
},
|
||||||
|
ActionFillColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
ActionFillTransparency = 0.9,
|
||||||
|
},
|
||||||
|
AddressEntry = {
|
||||||
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
PlaceholderColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.SubText),
|
||||||
|
},
|
||||||
|
BorderedContainer = {
|
||||||
|
BorderColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
BackgroundColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.InputFieldBackground),
|
||||||
|
},
|
||||||
|
Spinner = {
|
||||||
|
ForegroundColor = BRAND_COLOR,
|
||||||
|
BackgroundColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.InputFieldBackground),
|
||||||
|
},
|
||||||
|
Diff = {
|
||||||
|
Add = studioTheme:GetColor(Enum.StudioStyleGuideColor.DiffTextAdditionBackground),
|
||||||
|
Remove = studioTheme:GetColor(Enum.StudioStyleGuideColor.DiffTextDeletionBackground),
|
||||||
|
Edit = studioTheme:GetColor(Enum.StudioStyleGuideColor.DiffLineNumSeparatorBackground),
|
||||||
|
Row = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
Warning = studioTheme:GetColor(Enum.StudioStyleGuideColor.WarningText),
|
||||||
|
},
|
||||||
|
ConnectionDetails = {
|
||||||
|
ProjectNameColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
AddressColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
DisconnectColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
},
|
||||||
|
Settings = {
|
||||||
|
DividerColor = studioTheme:GetColor(
|
||||||
|
Enum.StudioStyleGuideColor.CheckedFieldBorder,
|
||||||
|
Enum.StudioStyleGuideModifier.Disabled
|
||||||
|
),
|
||||||
|
Navbar = {
|
||||||
|
BackButtonColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
TextColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
},
|
||||||
|
Setting = {
|
||||||
|
NameColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
DescriptionColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.MainText),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Header = {
|
||||||
|
LogoColor = BRAND_COLOR,
|
||||||
|
VersionColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.MainText),
|
||||||
|
},
|
||||||
|
Notification = {
|
||||||
|
InfoColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
CloseColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
},
|
||||||
|
ErrorColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
ScrollBarColor = studioTheme:GetColor(Enum.StudioStyleGuideColor.BrightText),
|
||||||
|
})
|
||||||
|
|
||||||
self:setState({
|
self:setState({
|
||||||
theme = lightTheme,
|
theme = theme,
|
||||||
})
|
})
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function StudioProvider:init()
|
function StudioProvider:init()
|
||||||
|
|||||||
Reference in New Issue
Block a user