Skip to content

Commit

Permalink
fix comment colors
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoLuglio committed Oct 10, 2024
1 parent fe4ee48 commit 01717cf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/lib/generator/syntaxColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,12 @@ export function generateSyntaxColors(

// Ensure readability and harmony
Object.keys(syntaxColors).forEach((key) => {
if (key !== 'comment') {
if (!lockedColors[key as keyof SyntaxColors]) {
syntaxColors[key as keyof SyntaxColors] = ensureReadability(
syntaxColors[key as keyof SyntaxColors],
backgroundColor,
5.5
)
}
if (!lockedColors[key as keyof SyntaxColors]) {
syntaxColors[key as keyof SyntaxColors] = ensureReadability(
syntaxColors[key as keyof SyntaxColors],
backgroundColor,
5.5
)
}
})

Expand Down

0 comments on commit 01717cf

Please sign in to comment.