return function(C,f,U,w)local a=require(U.util.stylesheet)w=w.View local function z(C,f)f.Background.BackgroundColor3=C.Accent f.Background.Cover.BackgroundColor3=C.Elevated f.Container.Image.ImageColor3=C.Icon f.Container.Title.TextColor3=C.Text end local function J()local C=(settings()).Studio.Theme local U=a[C.Name]w.UI.BackgroundColor3=U.Background w.UI.Search.Background.BackgroundColor3=U.Accent w.UI.Search.Background.Cover.BackgroundColor3=U.Elevated w.UI.Search.Gradient.BackgroundColor3=U.Background w.UI.Search.Container.TextBox.PlaceholderColor3=U.Placeholder w.UI.Search.Container.TextBox.TextColor3=U.Text w.UI.ScrollerBackground.BackgroundColor3=U.ScrollerBackground w.UI.List.ScrollBarImageColor3=U.ScrollBar z(U,f.Icon)for C,f in ipairs(w.UI.List:GetChildren())do if f:IsA("\070\114\097\109\101")then z(U,f)end end end J();(settings()).Studio.ThemeChanged:Connect(J)end
return function(PluginService, assets, modules, widget)
    local stylesheet = require(modules.util.stylesheet)
    widget = widget.View

    local function applyColorsToIcon(themeStylesheet, icon)
        icon.Background.BackgroundColor3 = themeStylesheet.Accent
        icon.Background.Cover.BackgroundColor3 = themeStylesheet.Elevated
        icon.Container.Image.ImageColor3 = themeStylesheet.Icon
        icon.Container.Title.TextColor3 = themeStylesheet.Text
    end

    local function applyColors()
        local themeOption = settings().Studio.Theme
        local themeStylesheet = stylesheet[themeOption.Name]
        widget.UI.BackgroundColor3 = themeStylesheet.Background
        widget.UI.Search.Background.BackgroundColor3 = themeStylesheet.Accent
        widget.UI.Search.Background.Cover.BackgroundColor3 = themeStylesheet.Elevated
        widget.UI.Search.Gradient.BackgroundColor3 = themeStylesheet.Background
        widget.UI.Search.Container.TextBox.PlaceholderColor3 = themeStylesheet.Placeholder
        widget.UI.Search.Container.TextBox.TextColor3 = themeStylesheet.Text

        widget.UI.ScrollerBackground.BackgroundColor3 = themeStylesheet.ScrollerBackground
        widget.UI.List.ScrollBarImageColor3 = themeStylesheet.ScrollBar

        applyColorsToIcon(themeStylesheet, assets.Icon)
        for _, object in ipairs(widget.UI.List:GetChildren()) do
            if object:IsA("Frame") then
                applyColorsToIcon(themeStylesheet, object)
            end
        end
    end

    applyColors()
    settings().Studio.ThemeChanged:Connect(applyColors)
end