Skip to content

Commit 2d9d196

Browse files
feat!: Add color customization for excludeDaysLabel (DenverCoder1#526)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6d75d59 commit 2d9d196

File tree

5 files changed

+133
-1
lines changed

5 files changed

+133
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ If the `theme` parameter is specified, any color customizations specified will b
5959
| `currStreakLabel` | Current streak label | **hex code** without `#` or **css color** |
6060
| `sideLabels` | Total and longest streak labels | **hex code** without `#` or **css color** |
6161
| `dates` | Date range text color | **hex code** without `#` or **css color** |
62+
| `excludeDaysLabel` | Excluded days of the week text color | **hex code** without `#` or **css color** |
6263
| `date_format` | Date format pattern or empty for locale format | See note below on [📅 Date Formats](#-date-formats) |
6364
| `locale` | Locale for labels and numbers (Default: `en`) | ISO 639-1 code - See [🗪 Locales](#-locales) |
6465
| `type` | Output format (Default: `svg`) | Current options: `svg`, `png` or `json` |

src/card.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function generateCard(array $stats, array $params = null): string
417417
$excludedDays = "<g style='isolation: isolate'>
418418
<!-- Excluded Days -->
419419
<g transform='translate({$offset},187)'>
420-
<text stroke-width='0' text-anchor='right' fill='{$theme["dates"]}' stroke='none' font-family='\"Segoe UI\", Ubuntu, sans-serif' font-weight='400' font-size='10px' font-style='normal' style='opacity: 0; animation: fadein 0.5s linear forwards 0.9s'>
420+
<text stroke-width='0' text-anchor='right' fill='{$theme["excludeDaysLabel"]}' stroke='none' font-family='\"Segoe UI\", Ubuntu, sans-serif' font-weight='400' font-size='10px' font-style='normal' style='opacity: 0; animation: fadein 0.5s linear forwards 0.9s'>
421421
* {$localeTranslations["Excluding"]} {$daysCommaSeparated}
422422
</text>
423423
</g>

0 commit comments

Comments
 (0)