Show failed to apply in visualizer (#717)

Objects with failed changes will highlight, and the specific failed
changes in their list will highlight as well.
This commit is contained in:
boatbomber
2023-07-08 19:31:26 -07:00
committed by GitHub
parent 7ef4a1ff12
commit 0a932ff880
7 changed files with 49 additions and 17 deletions

View File

@@ -180,7 +180,7 @@ function DomLabel:render()
AnchorPoint = Vector2.new(0, 0.5),
}),
InstanceName = e("TextLabel", {
Text = props.name .. (props.hint and string.format(
Text = (if props.isWarning then "" else "") .. props.name .. (props.hint and string.format(
' <font color="#%s">%s</font>',
theme.AddressEntry.PlaceholderColor:ToHex(),
props.hint
@@ -189,7 +189,7 @@ function DomLabel:render()
BackgroundTransparency = 1,
Font = Enum.Font.GothamMedium,
TextSize = 14,
TextColor3 = theme.Settings.Setting.DescriptionColor,
TextColor3 = if props.isWarning then theme.Diff.Warning else theme.Settings.Setting.DescriptionColor,
TextXAlignment = Enum.TextXAlignment.Left,
TextTransparency = props.transparency,
TextTruncate = Enum.TextTruncate.AtEnd,