Skip to content

Commit

Permalink
Merge branch 'quickThemes' into sqaaakoi-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqaaakoi committed Apr 29, 2024
2 parents 2a01785 + c83324e commit c5e0314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/vencordToolbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { findExportedComponentLazy } from "@webpack";
import { Menu, Popout, useState } from "@webpack/common";
import { Menu, Popout, SettingsRouter, useState } from "@webpack/common";
import type { ReactNode } from "react";

const HeaderBarIcon = findExportedComponentLazy("Icon", "Divider");
Expand Down Expand Up @@ -86,6 +86,9 @@ function VencordPopout(onClose: () => void) {
<Menu.MenuItem
id="vc-toolbox-css-snippets"
label="CSS Snippets"
action={() => {
SettingsRouter.open("VencordThemes");
}}
subtext={cssSnippets?.enabled ? (cssSnippets?.list.filter(s => s.enabled).length + " snippets enabled") : "Disabled"}
>
<Menu.MenuCheckboxItem
Expand Down

0 comments on commit c5e0314

Please sign in to comment.