Add headless API

This commit is contained in:
boatbomber 2022-09-25 16:43:02 -04:00
parent 003abe86bb
commit 4832035a18
6 changed files with 149 additions and 25 deletions

View file

@ -42,7 +42,7 @@ end
function TextButton:render()
return Theme.with(function(theme)
local textSize = TextService:GetTextSize(
self.props.text, 18, Enum.Font.GothamSemibold,
self.props.text, 18, Enum.Font.GothamMedium,
Vector2.new(math.huge, math.huge)
)
@ -85,7 +85,7 @@ function TextButton:render()
Text = e("TextLabel", {
Text = self.props.text,
Font = Enum.Font.GothamSemibold,
Font = Enum.Font.GothamMedium,
TextSize = 18,
TextColor3 = bindingUtil.mapLerp(bindingEnabled, theme.Enabled.TextColor, theme.Disabled.TextColor),
TextTransparency = self.props.transparency,