1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-12-03 13:34: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} = {
[TaskSimplifiedStatus.Unfinished]: fal,
[TaskSimplifiedStatus.InProgress]: far,
[TaskSimplifiedStatus.Complete]: fas,
[TaskSimplifiedStatus.Journaled]: fas,
[TaskSimplifiedStatus.NonExistent]: far,
[TaskSimplifiedStatus.Unfinished]: fas,
[TaskSimplifiedStatus.InProgress]: fas,
[TaskSimplifiedStatus.Complete]: fal,
[TaskSimplifiedStatus.Journaled]: far,
[TaskSimplifiedStatus.NonExistent]: fas,
}
export function TaskIconComponent({className, title, icon, status, onInteract}: TaskIconProps) {
@ -31,6 +31,7 @@ export function TaskIconComponent({className, title, icon, status, onInteract}:
className={cn({
[style.taskIconComponent]: true,
[style.taskIconComponentClickable]: clickable,
"fade": status === TaskSimplifiedStatus.Complete,
}, className)}
type={"button"}
title={title}