mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 21:55:09 +00:00
fix: finding color picker component
This commit is contained in:
parent
10c3f112a5
commit
4bd812ae11
1 changed files with 5 additions and 2 deletions
|
@ -7,14 +7,17 @@
|
|||
import "./traySetting.css";
|
||||
|
||||
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 { setCurrentTrayIcon } from "renderer/patches/tray";
|
||||
import { useSettings } from "renderer/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 presets = [
|
||||
|
|
Loading…
Add table
Reference in a new issue