mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-04-01 13:31:01 +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,
|
name: string,
|
||||||
day: number,
|
day: number,
|
||||||
color: string,
|
color: string,
|
||||||
|
textColor?: string,
|
||||||
modal?: {
|
modal?: {
|
||||||
show: Ref<boolean>,
|
show: Ref<boolean>,
|
||||||
display: VueFeature | CoercableComponent
|
display: VueFeature | CoercableComponent
|
||||||
|
@ -413,7 +414,7 @@ export function setUpDailyProgressTracker(options: {
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 25,
|
height: 25,
|
||||||
fillStyle: { backgroundColor: options.color },
|
fillStyle: { backgroundColor: options.color },
|
||||||
textStyle: { color: 'var(--feature-foreground)' },
|
textStyle: options.textColor ? { color: options.textColor } : undefined,
|
||||||
progress: () =>
|
progress: () =>
|
||||||
main.day.value === options.day
|
main.day.value === options.day
|
||||||
? Decimal.div(
|
? Decimal.div(
|
||||||
|
|
|
@ -164,7 +164,8 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
goal: 5e3,
|
goal: 5e3,
|
||||||
name,
|
name,
|
||||||
day,
|
day,
|
||||||
color
|
color,
|
||||||
|
textColor: 'var(--feature-foreground)'
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue