mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
feat(betterActivities): setting for showing descriptions
This commit is contained in:
parent
811a47ba66
commit
661686b255
2 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@ import { findComponentByCodeLazy } from "@webpack";
|
|||
import { moment, React, useMemo } from "@webpack/common";
|
||||
import { User } from "discord-types/general";
|
||||
|
||||
import settings from "../settings";
|
||||
import { Activity, Application } from "../types";
|
||||
import {
|
||||
formatElapsedTime,
|
||||
|
@ -55,6 +56,7 @@ export default function ActivityTooltip({ activity, application, user, cl }: Rea
|
|||
<div className={cl("activity-details")}>
|
||||
<div>{activity.details}</div>
|
||||
<div>{activity.state}</div>
|
||||
{settings.store.showAppDescriptions && application?.description && <div>{application.description}</div>}
|
||||
{!timestamps && startTime &&
|
||||
<div className={cl("activity-time-bar")}>
|
||||
{formatElapsedTime(moment(startTime), moment())}
|
||||
|
|
|
@ -32,6 +32,12 @@ const settings = definePluginSettings({
|
|||
description: "Allow rendering GIFs",
|
||||
default: true,
|
||||
},
|
||||
showAppDescriptions: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Show application descriptions in the activity tooltip",
|
||||
default: true,
|
||||
restartNeeded: false,
|
||||
},
|
||||
divider: {
|
||||
type: OptionType.COMPONENT,
|
||||
description: "",
|
||||
|
|
Loading…
Reference in a new issue