Fix shadowed and unused theme

This commit is contained in:
boatbomber 2024-02-01 00:26:31 -08:00
parent 09bcef8e8e
commit 5609205fc3

View file

@ -83,8 +83,6 @@ function SettingsPage:render()
end
return Theme.with(function(theme)
theme = theme.Settings
return e(ScrollingFrame, {
size = UDim2.new(1, 0, 1, 0),
contentSize = self.contentSize,
@ -187,17 +185,15 @@ function SettingsPage:render()
self.props.onNavigatePermissions()
end,
}, {
Button = Theme.with(function(theme)
theme = theme.Checkbox
return e(SlicedImage, {
Button = e(SlicedImage, {
slice = Assets.Slices.RoundedBackground,
color = theme.Active.BackgroundColor,
color = theme.Checkbox.Active.BackgroundColor,
transparency = self.props.transparency,
size = UDim2.new(1, 0, 1, 0),
}, {
Icon = e("ImageLabel", {
Image = Assets.Images.Icons.Expand,
ImageColor3 = theme.Active.IconColor,
ImageColor3 = theme.Checkbox.Active.IconColor,
ImageTransparency = self.props.transparency,
Size = UDim2.new(0, 16, 0, 16),
@ -206,8 +202,7 @@ function SettingsPage:render()
BackgroundTransparency = 1,
}),
})
end),
}),
}),
}),