From 5609205fc31f4702a775725508b4f018ed16575b Mon Sep 17 00:00:00 2001 From: boatbomber Date: Thu, 1 Feb 2024 00:26:31 -0800 Subject: [PATCH] Fix shadowed and unused theme --- plugin/src/App/StatusPages/Settings/init.lua | 37 +++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/plugin/src/App/StatusPages/Settings/init.lua b/plugin/src/App/StatusPages/Settings/init.lua index f3f3dad1..ee5e72d5 100644 --- a/plugin/src/App/StatusPages/Settings/init.lua +++ b/plugin/src/App/StatusPages/Settings/init.lua @@ -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,27 +185,24 @@ function SettingsPage:render() self.props.onNavigatePermissions() end, }, { - Button = Theme.with(function(theme) - theme = theme.Checkbox - return e(SlicedImage, { - slice = Assets.Slices.RoundedBackground, - color = theme.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, - ImageTransparency = self.props.transparency, + Button = e(SlicedImage, { + slice = Assets.Slices.RoundedBackground, + 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.Checkbox.Active.IconColor, + ImageTransparency = self.props.transparency, - Size = UDim2.new(0, 16, 0, 16), - Position = UDim2.new(0.5, 0, 0.5, 0), - AnchorPoint = Vector2.new(0.5, 0.5), + Size = UDim2.new(0, 16, 0, 16), + Position = UDim2.new(0.5, 0, 0.5, 0), + AnchorPoint = Vector2.new(0.5, 0.5), - BackgroundTransparency = 1, - }), - }) - end), + BackgroundTransparency = 1, + }), + }), }), }),