|
1 | 1 | import type { BadgeParams, ContributionCalendar, StreakStats, MonthlyStats } from '../../types'; |
2 | 2 | import { getLabels, type BadgeLabels } from '../i18n/badgeLabels'; |
3 | | -import { AUTO_DARK_THEME, AUTO_LIGHT_THEME } from './themes'; |
| 3 | +import { AUTO_THEME_DARK, AUTO_THEME_LIGHT } from './themes'; |
4 | 4 | import { TOWER_ANIMATION_CSS } from './animations'; |
5 | 5 | import { computeTowers, type TowerData } from './layout'; |
6 | 6 | import { sanitizeFont, sanitizeHexColor, sanitizeRadius, sanitizeGoogleFontUrl } from './sanitizer'; |
@@ -237,8 +237,8 @@ function generateAutoThemeSVG( |
237 | 237 | params: BadgeParams, |
238 | 238 | calendar: ContributionCalendar |
239 | 239 | ): string { |
240 | | - const light = AUTO_LIGHT_THEME; |
241 | | - const dark = AUTO_DARK_THEME; |
| 240 | + const light = AUTO_THEME_LIGHT; |
| 241 | + const dark = AUTO_THEME_DARK; |
242 | 242 | const safeUser = escapeXML(params.user || 'GitHub User'); |
243 | 243 | const sanitizedFont = sanitizeFont(params.font); |
244 | 244 | const selectedFont = sanitizedFont |
@@ -428,8 +428,8 @@ export function generateMonthlySVG(stats: MonthlyStats, params: BadgeParams): st |
428 | 428 | } |
429 | 429 |
|
430 | 430 | function generateAutoThemeMonthlySVG(stats: MonthlyStats, params: BadgeParams): string { |
431 | | - const light = AUTO_LIGHT_THEME; |
432 | | - const dark = AUTO_DARK_THEME; |
| 431 | + const light = AUTO_THEME_LIGHT; |
| 432 | + const dark = AUTO_THEME_DARK; |
433 | 433 | const safeUser = escapeXML(params.user || 'GitHub User'); |
434 | 434 | const sanitizeFont = (name: string) => name.replace(/[^a-zA-Z0-9\s-]/g, '').trim(); |
435 | 435 | const sanitizedFont = params.font ? sanitizeFont(params.font) : null; |
|
0 commit comments