fix: finding color picker component

This commit is contained in:
Oleh Polisan 2024-12-25 13:40:25 +02:00
parent 10c3f112a5
commit 4bd812ae11

View file

@ -7,14 +7,17 @@
import "./traySetting.css"; import "./traySetting.css";
import { Margins, Modals, ModalSize, openModal } from "@vencord/types/utils"; import { Margins, Modals, ModalSize, openModal } from "@vencord/types/utils";
import { findByCodeLazy, findByPropsLazy } from "@vencord/types/webpack"; import { findByPropsLazy, findComponentByCodeLazy } from "@vencord/types/webpack";
import { Button, Forms, Select, Switch, Toasts } from "@vencord/types/webpack/common"; import { Button, Forms, Select, Switch, Toasts } from "@vencord/types/webpack/common";
import { setCurrentTrayIcon } from "renderer/patches/tray"; import { setCurrentTrayIcon } from "renderer/patches/tray";
import { useSettings } from "renderer/settings"; import { useSettings } from "renderer/settings";
import { SettingsComponent } from "./Settings"; import { SettingsComponent } from "./Settings";
const ColorPicker = findByCodeLazy(".Messages.USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR", ".BACKGROUND_PRIMARY)"); const ColorPicker = findComponentByCodeLazy(
"#{intl::USER_SETTINGS_PROFILE_COLOR_SELECT_COLOR}",
".BACKGROUND_PRIMARY)"
);
const { PencilIcon } = findByPropsLazy("PencilIcon"); const { PencilIcon } = findByPropsLazy("PencilIcon");
const presets = [ const presets = [