HomeTyping: Add ClassName For Typing Dots

This commit is contained in:
thororen1234 2026-03-27 12:55:09 -04:00
parent 992190be02
commit a147c9f680
No known key found for this signature in database

View file

@ -5,12 +5,14 @@
*/
import { Devs } from "@utils/constants";
import { classNameFactory } from "@utils/css";
import definePlugin from "@utils/types";
import { findComponentByCodeLazy, findStoreLazy } from "@webpack";
import { TypingStore, UserStore, useStateFromStores } from "@webpack/common";
const ThreeDots = findComponentByCodeLazy("Math.min(1,Math.max(", "dotRadius:");
const cl = classNameFactory("vc-home-");
const ThreeDots = findComponentByCodeLazy("Math.min(1,Math.max(", "dotRadius:");
const PrivateChannelSortStore = findStoreLazy("PrivateChannelSortStore") as { getPrivateChannelIds: () => string[]; };
export default definePlugin({
@ -18,7 +20,7 @@ export default definePlugin({
description: "Changes the home button to a typing indicator if someone in your dms is typing",
authors: [Devs.Samwich],
TypingIcon() {
return <ThreeDots dotRadius={3} themed={true} />;
return <ThreeDots className={cl("typing")} dotRadius={3} themed={true} />;
},
isTyping() {
return useStateFromStores([TypingStore], () =>