Skip to content

Commit

Permalink
fix: plugin overrides default highlight color in light mode #14
Browse files Browse the repository at this point in the history
  • Loading branch information
ycnmhd committed Sep 2, 2024
1 parent e87f3fe commit ad26bf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "enhanced-annotations",
"name": "Enhanced Annotations",
"version": "0.1.4",
"version": "0.1.5",
"minAppVersion": "0.15.0",
"description": "Add a sidebar view for comments and highlights.",
"author": "ycnmhd",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enhanced-annotations",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"scripts": {
"dev": "node esbuild.config.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const generateLabelStyleString = (
if (isHighlight) {
const rgb = hexToRgb(style.color, (style.opacity || 80) / 100);
styleStringParts.push(`background-color: ${rgb}`);
styleStringParts.push(`color: white`);
styleStringParts.push(`color: var(--text-normal)`);
} else styleStringParts.push(`color: ${style.color}`);
}

Expand Down

0 comments on commit ad26bf0

Please sign in to comment.