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 end
return Theme.with(function(theme) return Theme.with(function(theme)
theme = theme.Settings
return e(ScrollingFrame, { return e(ScrollingFrame, {
size = UDim2.new(1, 0, 1, 0), size = UDim2.new(1, 0, 1, 0),
contentSize = self.contentSize, contentSize = self.contentSize,
@ -187,27 +185,24 @@ function SettingsPage:render()
self.props.onNavigatePermissions() self.props.onNavigatePermissions()
end, end,
}, { }, {
Button = Theme.with(function(theme) Button = e(SlicedImage, {
theme = theme.Checkbox slice = Assets.Slices.RoundedBackground,
return e(SlicedImage, { color = theme.Checkbox.Active.BackgroundColor,
slice = Assets.Slices.RoundedBackground, transparency = self.props.transparency,
color = theme.Active.BackgroundColor, size = UDim2.new(1, 0, 1, 0),
transparency = self.props.transparency, }, {
size = UDim2.new(1, 0, 1, 0), Icon = e("ImageLabel", {
}, { Image = Assets.Images.Icons.Expand,
Icon = e("ImageLabel", { ImageColor3 = theme.Checkbox.Active.IconColor,
Image = Assets.Images.Icons.Expand, ImageTransparency = self.props.transparency,
ImageColor3 = theme.Active.IconColor,
ImageTransparency = self.props.transparency,
Size = UDim2.new(0, 16, 0, 16), Size = UDim2.new(0, 16, 0, 16),
Position = UDim2.new(0.5, 0, 0.5, 0), Position = UDim2.new(0.5, 0, 0.5, 0),
AnchorPoint = Vector2.new(0.5, 0.5), AnchorPoint = Vector2.new(0.5, 0.5),
BackgroundTransparency = 1, BackgroundTransparency = 1,
}), }),
}) }),
end),
}), }),
}), }),