mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Add changing toolbar icon to indicate state (#538)
* Add changing toolbar icon * Return to default icon after closing error * Update changelog * Add assets * Improved link icon * Upload new icons Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
This commit is contained in:
parent
5d5536a95e
commit
10abc2254a
6 changed files with 19 additions and 5 deletions
|
|
@ -44,6 +44,10 @@ function StudioToggleButton:didUpdate(lastProps)
|
|||
self.button.Enabled = self.props.enabled
|
||||
end
|
||||
|
||||
if self.props.icon ~= lastProps.icon then
|
||||
self.button.Icon = self.props.icon
|
||||
end
|
||||
|
||||
if self.props.active ~= lastProps.active then
|
||||
self.button:SetActive(self.props.active)
|
||||
end
|
||||
|
|
@ -63,4 +67,4 @@ local function StudioToggleButtonWrapper(props)
|
|||
})
|
||||
end
|
||||
|
||||
return StudioToggleButtonWrapper
|
||||
return StudioToggleButtonWrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue