1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-12-04 05:54:28 +00:00

Alter icon fill

This commit is contained in:
Steffo 2024-10-03 14:23:01 +02:00
parent 873794eee5
commit 998b000089
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -16,11 +16,11 @@ type TaskIconProps = {
} }
const STATUS_TO_PREFIX: {[t in TaskSimplifiedStatus]: IconPack} = { const STATUS_TO_PREFIX: {[t in TaskSimplifiedStatus]: IconPack} = {
[TaskSimplifiedStatus.Unfinished]: fal, [TaskSimplifiedStatus.Unfinished]: fas,
[TaskSimplifiedStatus.InProgress]: far, [TaskSimplifiedStatus.InProgress]: fas,
[TaskSimplifiedStatus.Complete]: fas, [TaskSimplifiedStatus.Complete]: fal,
[TaskSimplifiedStatus.Journaled]: fas, [TaskSimplifiedStatus.Journaled]: far,
[TaskSimplifiedStatus.NonExistent]: far, [TaskSimplifiedStatus.NonExistent]: fas,
} }
export function TaskIconComponent({className, title, icon, status, onInteract}: TaskIconProps) { export function TaskIconComponent({className, title, icon, status, onInteract}: TaskIconProps) {
@ -31,6 +31,7 @@ export function TaskIconComponent({className, title, icon, status, onInteract}:
className={cn({ className={cn({
[style.taskIconComponent]: true, [style.taskIconComponent]: true,
[style.taskIconComponentClickable]: clickable, [style.taskIconComponentClickable]: clickable,
"fade": status === TaskSimplifiedStatus.Complete,
}, className)} }, className)}
type={"button"} type={"button"}
title={title} title={title}