mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 17:31:54 +00:00
Add text color option
This commit is contained in:
parent
ee48800c37
commit
f302d2afab
2 changed files with 4 additions and 2 deletions
|
@ -401,6 +401,7 @@ export function setUpDailyProgressTracker(options: {
|
|||
name: string,
|
||||
day: number,
|
||||
color: string,
|
||||
textColor?: string,
|
||||
modal?: {
|
||||
show: Ref<boolean>,
|
||||
display: VueFeature | CoercableComponent
|
||||
|
@ -413,7 +414,7 @@ export function setUpDailyProgressTracker(options: {
|
|||
width: 600,
|
||||
height: 25,
|
||||
fillStyle: { backgroundColor: options.color },
|
||||
textStyle: { color: 'var(--feature-foreground)' },
|
||||
textStyle: options.textColor ? { color: options.textColor } : undefined,
|
||||
progress: () =>
|
||||
main.day.value === options.day
|
||||
? Decimal.div(
|
||||
|
|
|
@ -164,7 +164,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
goal: 5e3,
|
||||
name,
|
||||
day,
|
||||
color
|
||||
color,
|
||||
textColor: 'var(--feature-foreground)'
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue