plugin: Fix dark theme when resized to be wide

This commit is contained in:
Lucien Greathouse
2020-03-10 20:34:12 -07:00
parent c437507442
commit e8e3b7b985

View File

@@ -17,7 +17,8 @@ function Panel:render()
return Theme.with(function(theme) return Theme.with(function(theme)
return e("Frame", { return e("Frame", {
Size = UDim2.new(1, 0, 1, 0), Size = UDim2.new(1, 0, 1, 0),
BackgroundTransparency = 1, BackgroundColor3 = theme.Background1,
BorderSizePixel = 1,
}, { }, {
Layout = Roact.createElement("UIListLayout", { Layout = Roact.createElement("UIListLayout", {
HorizontalAlignment = Enum.HorizontalAlignment.Center, HorizontalAlignment = Enum.HorizontalAlignment.Center,
@@ -26,8 +27,7 @@ function Panel:render()
Body = e("Frame", { Body = e("Frame", {
Size = UDim2.new(0, 360, 1, -32), Size = UDim2.new(0, 360, 1, -32),
BackgroundColor3 = theme.Background1, BackgroundTransparency = 1,
BorderSizePixel = 0,
}, self.props[Roact.Children]), }, self.props[Roact.Children]),
Footer = e(RojoFooter), Footer = e(RojoFooter),