From b920e2ae97bb90852a6da6b83b57448b9f9ecd4a Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Sun, 26 May 2024 17:31:06 +0200 Subject: [PATCH] Fix dark mode for monospaced text in table cells and for inline content (#1601) --- CHANGELOG.adoc | 1 + .../resources/org/asciidoc/intellij/editor/javafx/darcula.css | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 7cbde9585..65deca032 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -14,6 +14,7 @@ This document provides a high-level view of the changes introduced by release. - Upgrade to AsciidoctorJ v2.5.13 and asciidoctor 2.0.23 - Detect dark editor theme in light IDE to apply correct background color for monospaced contents in the editor (#1620) - Scroll preview to the beginning of an include (#1624) +- Fix dark mode for monospaced text in table cells and for inline content (#1601) === 0.41.14 diff --git a/src/main/resources/org/asciidoc/intellij/editor/javafx/darcula.css b/src/main/resources/org/asciidoc/intellij/editor/javafx/darcula.css index 44868c119..7f8ce2be2 100644 --- a/src/main/resources/org/asciidoc/intellij/editor/javafx/darcula.css +++ b/src/main/resources/org/asciidoc/intellij/editor/javafx/darcula.css @@ -34,6 +34,9 @@ blockquote cite a,blockquote cite a:visited {color: #bbbbbb} .quoteblock .quoteblock{color: #bbbbbb} .quoteblock .attribution cite,.verseblock .attribution cite{color: #bbbbbb} +/* was: rgba(0,0,0,.9) */ +code {filter: invert(90%) hue-rotate(180deg);} + /* was: f8f8f7 */ table:not(.linenotable):not(.CodeRay) tbody tr{background:#45494a} table:not(.linenotable):not(.CodeRay) tr.even,table tr.alt,table tr:nth-of-type(even){background:#626262}