From 6ffb63c9e0eeb56d9c77522c5fbc51bc2a55eed9 Mon Sep 17 00:00:00 2001 From: "Martindale, Nathan" Date: Wed, 4 Sep 2024 11:10:56 -0400 Subject: [PATCH] Add light theme handling for anchorviz ring colors --- icat/vue/anchors-table.vue | 5 +++++ notebooks/simple_example.ipynb | 2 +- requirements.txt | 2 +- setup.py | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/icat/vue/anchors-table.vue b/icat/vue/anchors-table.vue index f36db6b..0c60405 100644 --- a/icat/vue/anchors-table.vue +++ b/icat/vue/anchors-table.vue @@ -138,4 +138,9 @@ div .v-progress-linear { :host { --selectedAnchorColor: #FFF; } + +body[data-jp-theme-light="true"] { + --ringFill: #AAA; + --textColor: black; +} diff --git a/notebooks/simple_example.ipynb b/notebooks/simple_example.ipynb index 54fe491..34b4a22 100644 --- a/notebooks/simple_example.ipynb +++ b/notebooks/simple_example.ipynb @@ -126,7 +126,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.14" + "version": "3.10.12" } }, "nbformat": 4, diff --git a/requirements.txt b/requirements.txt index 1bd642a..071d32a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ scikit-learn ipyvuetify~=1.9 ipywidgets<8.1.3 jupyterlab-widgets<3.0.11 -ipyanchorviz +ipyanchorviz~=0.3.0 altair pytest pytest-mock diff --git a/setup.py b/setup.py index 4736df8..67569b1 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ def get_property(prop): "numpy", "pandas", "scikit-learn", - "ipyanchorviz", + "ipyanchorviz~=0.3.0", "altair", "jupyter_bokeh", "ipywidgets-bokeh",