mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-12-04 14:04:28 +00:00
Alter icon fill
This commit is contained in:
parent
873794eee5
commit
998b000089
1 changed files with 6 additions and 5 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue