From ad26bf04ad3ba52a217c149981665943438e9e2b Mon Sep 17 00:00:00 2001 From: ycnmhd <33285087+ycnmhd@users.noreply.github.com> Date: Mon, 2 Sep 2024 19:09:55 +0100 Subject: [PATCH] fix: plugin overrides default highlight color in light mode #14 --- manifest.json | 2 +- package.json | 2 +- .../decorate-annotations/helpers/generate-label-style-string.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 80ff423..4487392 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/package.json b/package.json index b582530..b7abb6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "enhanced-annotations", - "version": "0.1.4", + "version": "0.1.5", "description": "", "scripts": { "dev": "node esbuild.config.mjs", diff --git a/src/editor-plugin/helpers/decorate-annotations/helpers/generate-label-style-string.ts b/src/editor-plugin/helpers/decorate-annotations/helpers/generate-label-style-string.ts index 5e808ad..ad61ee3 100644 --- a/src/editor-plugin/helpers/decorate-annotations/helpers/generate-label-style-string.ts +++ b/src/editor-plugin/helpers/decorate-annotations/helpers/generate-label-style-string.ts @@ -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}`); }