Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix pretty-lights theme
Sebastian Martinez committed 3 years ago
commit d1a1b4c9c04b49360195e611ac241cb6af0465a4
parent 569b6601341af8cd9fb31232bf6bde4ecd1c8a25
2 files changed +37 -36
modified public/prettylights.css
@@ -2,6 +2,39 @@
 * It’s based on what GitHub uses on their site.
 * See <https://github.com/wooorm/starry-night> for more info. */
:root {
+
  --color-prettylights-syntax-comment: #8b949e;
+
  --color-prettylights-syntax-constant: #79c0ff;
+
  --color-prettylights-syntax-entity: #d2a8ff;
+
  --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
+
  --color-prettylights-syntax-entity-tag: #7ee787;
+
  --color-prettylights-syntax-keyword: #ff7b72;
+
  --color-prettylights-syntax-string: #a5d6ff;
+
  --color-prettylights-syntax-variable: #ffa657;
+
  --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
+
  --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
+
  --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
+
  --color-prettylights-syntax-carriage-return-text: #f0f6fc;
+
  --color-prettylights-syntax-carriage-return-bg: #b62324;
+
  --color-prettylights-syntax-string-regexp: #7ee787;
+
  --color-prettylights-syntax-markup-list: #f2cc60;
+
  --color-prettylights-syntax-markup-heading: #1f6feb;
+
  --color-prettylights-syntax-markup-italic: #c9d1d9;
+
  --color-prettylights-syntax-markup-bold: #c9d1d9;
+
  --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
+
  --color-prettylights-syntax-markup-deleted-bg: #67060c;
+
  --color-prettylights-syntax-markup-inserted-text: #aff5b4;
+
  --color-prettylights-syntax-markup-inserted-bg: #033a16;
+
  --color-prettylights-syntax-markup-changed-text: #ffdfb6;
+
  --color-prettylights-syntax-markup-changed-bg: #5a1e02;
+
  --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
+
  --color-prettylights-syntax-markup-ignored-bg: #1158c7;
+
  --color-prettylights-syntax-meta-diff-range: #d2a8ff;
+
  --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
+
  --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
+
  --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
+
}
+

+
[data-theme="light"] {
  --color-prettylights-syntax-comment: #6e7781;
  --color-prettylights-syntax-constant: #0550ae;
  --color-prettylights-syntax-entity: #8250df;
@@ -34,41 +67,6 @@
  --color-prettylights-syntax-constant-other-reference-link: #0a3069;
}

-
@media (prefers-color-scheme: dark) {
-
  :root {
-
    --color-prettylights-syntax-comment: #8b949e;
-
    --color-prettylights-syntax-constant: #79c0ff;
-
    --color-prettylights-syntax-entity: #d2a8ff;
-
    --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
-
    --color-prettylights-syntax-entity-tag: #7ee787;
-
    --color-prettylights-syntax-keyword: #ff7b72;
-
    --color-prettylights-syntax-string: #a5d6ff;
-
    --color-prettylights-syntax-variable: #ffa657;
-
    --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
-
    --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
-
    --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
-
    --color-prettylights-syntax-carriage-return-text: #f0f6fc;
-
    --color-prettylights-syntax-carriage-return-bg: #b62324;
-
    --color-prettylights-syntax-string-regexp: #7ee787;
-
    --color-prettylights-syntax-markup-list: #f2cc60;
-
    --color-prettylights-syntax-markup-heading: #1f6feb;
-
    --color-prettylights-syntax-markup-italic: #c9d1d9;
-
    --color-prettylights-syntax-markup-bold: #c9d1d9;
-
    --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
-
    --color-prettylights-syntax-markup-deleted-bg: #67060c;
-
    --color-prettylights-syntax-markup-inserted-text: #aff5b4;
-
    --color-prettylights-syntax-markup-inserted-bg: #033a16;
-
    --color-prettylights-syntax-markup-changed-text: #ffdfb6;
-
    --color-prettylights-syntax-markup-changed-bg: #5a1e02;
-
    --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
-
    --color-prettylights-syntax-markup-ignored-bg: #1158c7;
-
    --color-prettylights-syntax-meta-diff-range: #d2a8ff;
-
    --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
-
    --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
-
    --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
-
  }
-
}
-

.pl-c {
  color: var(--color-prettylights-syntax-comment);
}
modified tests/e2e/project.spec.ts
@@ -75,7 +75,10 @@ test("source file highlighting", async ({ page }) => {
  await page.getByText("src/").click();
  await page.getByText("true.c").click();

-
  await expect(page.getByText("return")).toHaveCSS("color", "rgb(207, 34, 46)");
+
  await expect(page.getByText("return")).toHaveCSS(
+
    "color",
+
    "rgb(255, 123, 114)",
+
  );
});

test("navigate line numbers", async ({ page }) => {