mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 13:15:50 +00:00
Add benchmarking, perf gains, and better settings UI (#850)
This commit is contained in:
@@ -121,8 +121,14 @@ function Setting:render()
|
||||
BackgroundTransparency = 1,
|
||||
}, {
|
||||
Name = e("TextLabel", {
|
||||
Text = (if self.props.experimental then '<font color="#FF8E3C">⚠ </font>' else "")
|
||||
.. self.props.name,
|
||||
Text = (
|
||||
if self.props.experimental
|
||||
then '<font color="#FF8E3C">⚠ </font>'
|
||||
elseif
|
||||
self.props.developerDebug
|
||||
then '<font family="rbxasset://fonts/families/Guru.json" color="#35B5FF">⚑ </font>' -- Guru is the only font with the flag emoji
|
||||
else ""
|
||||
) .. self.props.name,
|
||||
Font = Enum.Font.GothamBold,
|
||||
TextSize = 17,
|
||||
TextColor3 = theme.Setting.NameColor,
|
||||
@@ -137,8 +143,10 @@ function Setting:render()
|
||||
}),
|
||||
|
||||
Description = e("TextLabel", {
|
||||
Text = (if self.props.experimental then '<font color="#FF8E3C">[Experimental] </font>' else "")
|
||||
.. self.props.description,
|
||||
Text = (if self.props.experimental
|
||||
then '<font color="#FF8E3C">[Experimental] </font>'
|
||||
elseif self.props.developerDebug then '<font color="#35B5FF">[Dev Debug] </font>'
|
||||
else "") .. self.props.description,
|
||||
Font = Enum.Font.Gotham,
|
||||
LineHeight = 1.2,
|
||||
TextSize = 14,
|
||||
|
||||
Reference in New Issue
Block a user