Skip to content
Open
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ Documentation was added for future OpenProblems v2. This is still in development

* `More information/Troubleshooting`: Describes the most common errors that can occur when contributing/developing.

# openproblems.bio v2.1.2

## MINOR CHANGES

* Updating task images from `.png` to `.svg` (#205).
* Set funkyheatmap colors for dark mode via js instead of css (#208).
* Set color palette dynamically for funkyheatmap (#210).

# openproblems.bio v2.1.1

Expand Down
4 changes: 2 additions & 2 deletions results/_blocks/_summary_figure.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ funkyheatmap(
oddRowBackground: 'var(--bs-body-bg)',
evenRowBackground: 'var(--bs-button-hover)',
textColor: 'var(--bs-body-color)',
strokeColor: 'var(--bs-body-color)',
strokeColor: 'var(--bs-dark)',
headerColor: 'var(--bs-white)',
hoverColor: 'var(--bs-body-color)'
}
Expand All @@ -163,6 +163,6 @@ funkyheatmap(
funkyheatmap = (await require('d3@7').then(d3 => {
window.d3 = d3;
window._ = _;
return import('https://unpkg.com/funkyheatmap-js@0.1.8');
return import('https://unpkg.com/funkyheatmap-js@0.1.9');
})).default;
```
5 changes: 5 additions & 0 deletions results/task_template.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ div.dtsp-panesContainer div.dataTables_wrapper div.dataTables_scrollBody {
section#details details img.img-fluid {
filter: invert(var(--invert-colors));
}

/* funkyheatmap */
.quarto-figure .funkyheatmap .fh-geom {
filter: hue-rotate(var(--hue-rotate)) brightness(var(--brightness-dim)) invert(var(--invert-colors)) brightness(var(--brightness-lighten));
}
6 changes: 6 additions & 0 deletions theme-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ $body-bg: #1d2527;
--shadow-color: #000;
--card-bg-color: #323839;
}

.quarto-figure .funkyheatmap {
--hue-rotate: 180deg;
--brightness-dim: 80%;
--brightness-lighten: 125%;
}
8 changes: 7 additions & 1 deletion theme-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
.card-shadow {
--shadow-color: #5a6268;
--card-bg-color: #ffffff;
}
}

.quarto-figure .funkyheatmap {
--hue-rotate: 0;
--brightness-dim: 100%;
--brightness-lighten: 100%;
}