@@ -3,30 +3,30 @@ local module = {}
33module .kTitleBarHeight = 27
44module .kInlineTitleBarHeight = 24
55
6- module .kStandardContentAreaWidth = 180
6+ module .kDefaultContentAreaWidth = 180
77
8- module .kStandardFontSize = 15
9- module .kStandardFontFace = Enum .Font .SourceSans
10- module .kStandardFontFaceBold = Enum .Font .SourceSansBold
8+ module .kDefaultFontSize = 15
9+ module .kDefaultFontFace = Enum .Font .SourceSans
10+ module .kDefaultFontFaceBold = Enum .Font .SourceSansBold
1111
12- module .kStandardPropertyHeight = 30
12+ module .kDefaultPropertyHeight = 30
1313module .kSubSectionLabelHeight = 30
1414
15- module .kStandardBorderColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Border , Enum .StudioStyleGuideModifier .Default )
15+ module .kDefaultBorderColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Border , Enum .StudioStyleGuideModifier .Default )
1616
17- module .kStandardVMargin = 7
18- module .kStandardHMargin = 16
17+ module .kDefaultVMargin = 7
18+ module .kDefaultHMargin = 16
1919
2020module .kCheckboxMinLabelWidth = 52
2121module .kCheckboxMinMargin = 16 -- Default: 12
2222module .kCheckboxWidth = module .kCheckboxMinMargin -- Default: 12
2323
2424module .kRadioButtonsHPadding = 54
2525
26- module .StandardLineLabelLeftMargin = module .kTitleBarHeight
27- module .StandardLineElementLeftMargin = (module .StandardLineLabelLeftMargin + module .kCheckboxMinLabelWidth
26+ module .DefaultLineLabelLeftMargin = module .kTitleBarHeight
27+ module .DefaultLineElementLeftMargin = (module .DefaultLineLabelLeftMargin + module .kCheckboxMinLabelWidth
2828+ module .kCheckboxMinMargin + module .kCheckboxWidth + module .kRadioButtonsHPadding )
29- module .StandardLineLabelWidth = (module .StandardLineElementLeftMargin - module .StandardLineLabelLeftMargin - 10 )
29+ module .DefaultLineLabelWidth = (module .DefaultLineElementLeftMargin - module .DefaultLineLabelLeftMargin - 10 )
3030
3131module .kDropDownHeight = 55
3232
@@ -40,10 +40,10 @@ module.kButtonVerticalFudge = -5
4040module .kBottomButtonsWidth = 100
4141
4242module .kDisabledTextColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .ButtonText , Enum .StudioStyleGuideModifier .Disabled )
43- module .kStandardButtonTextColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .ButtonText , Enum .StudioStyleGuideModifier .Default )
43+ module .kDefaultButtonTextColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .ButtonText , Enum .StudioStyleGuideModifier .Default )
4444
45- module .kButtonStandardBorderColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .ButtonBorder , Enum .StudioStyleGuideModifier .Default )
46- module .kButtonStandardBackgroundColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Button , Enum .StudioStyleGuideModifier .Default )
45+ module .kButtonDefaultBorderColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .ButtonBorder , Enum .StudioStyleGuideModifier .Default )
46+ module .kButtonDefaultBackgroundColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Button , Enum .StudioStyleGuideModifier .Default )
4747module .kButtonPressedBackgroundColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Button , Enum .StudioStyleGuideModifier .Pressed )
4848module .kButtonHoverBackgroundColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Button , Enum .StudioStyleGuideModifier .Hover )
4949module .kButtonDisabledBackgroundColor = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .Button , Enum .StudioStyleGuideModifier .Disabled )
170170
171171-- A frame that is one standard-sized line, containing some standard-sized widget (label, edit box, dropdown,
172172-- checkbox)
173- function module .MakeStandardFixedHeightFrame (name )
174- return module .MakeFixedHeightFrame (name , module .kStandardPropertyHeight )
173+ function module .MakeDefaultFixedHeightFrame (name )
174+ return module .MakeFixedHeightFrame (name , module .kDefaultPropertyHeight )
175175end
176176
177177function module .AdjustHeightDynamicallyToLayout (frame , uiLayout , optPadding )
@@ -223,7 +223,7 @@ local function MakeSectionInternal(parentGui, name, title, contentHeight)
223223 titleBar .Text = title
224224 titleBar .Parent = titleBarFrame
225225 titleBar .BackgroundTransparency = 1
226- titleBar .Position = UDim2 .new (0 , module .kStandardHMargin , 0 , 0 )
226+ titleBar .Position = UDim2 .new (0 , module .kDefaultHMargin , 0 , 0 )
227227
228228 module .syncGuiElementFontColor (titleBar )
229229
@@ -235,18 +235,18 @@ local function MakeSectionInternal(parentGui, name, title, contentHeight)
235235 return frame
236236end
237237
238- function module .MakeStandardPropertyLabel (text , opt_ignoreThemeUpdates )
238+ function module .MakeDefaultPropertyLabel (text , opt_ignoreThemeUpdates )
239239 local label = Instance .new (' TextLabel' )
240240 label .RichText = true
241241 label .Name = ' Label'
242242 label .BackgroundTransparency = 1
243- label .Font = module .kStandardFontFace
244- label .TextSize = module .kStandardFontSize
243+ label .Font = module .kDefaultFontFace
244+ label .TextSize = module .kDefaultFontSize
245245 label .TextXAlignment = Enum .TextXAlignment .Left
246246 label .Text = text
247247 label .AnchorPoint = Vector2 .new (0 , 0.5 )
248- label .Position = UDim2 .new (0 , module .StandardLineLabelLeftMargin , 0.5 , module .kTextVerticalFudge )
249- label .Size = UDim2 .new (0 , module .StandardLineLabelWidth , 1 , 0 )
248+ label .Position = UDim2 .new (0 , module .DefaultLineLabelLeftMargin , 0.5 , module .kTextVerticalFudge )
249+ label .Size = UDim2 .new (0 , module .DefaultLineLabelWidth , 1 , 0 )
250250
251251 if (not opt_ignoreThemeUpdates ) then
252252 module .syncGuiElementFontColor (label )
@@ -259,7 +259,7 @@ function module.MakeFrameWithSubSectionLabel(name, text)
259259 local row = module .MakeFixedHeightFrame (name , module .kSubSectionLabelHeight )
260260 row .BackgroundTransparency = 1
261261
262- local label = module .MakeStandardPropertyLabel (text )
262+ local label = module .MakeDefaultPropertyLabel (text )
263263 label .BackgroundTransparency = 1
264264 label .Parent = row
265265
0 commit comments