Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a7bdda2

Browse filesBrowse files
committed
Pass test, but don't fix.
1 parent df5f835 commit a7bdda2
Copy full SHA for a7bdda2

File tree

2 files changed

+6
-1
lines changed
Filter options

2 files changed

+6
-1
lines changed

‎src/napari_matplotlib/base.py

Copy file name to clipboardExpand all lines: src/napari_matplotlib/base.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ def _draw(self) -> None:
247247
):
248248
self.draw()
249249
self.canvas.draw()
250+
self.canvas.flush_events()
251+
self.apply_napari_colorscheme(self.figure.gca())
250252

251253
def clear(self) -> None:
252254
"""

‎src/napari_matplotlib/tests/test_theme.py

Copy file name to clipboardExpand all lines: src/napari_matplotlib/tests/test_theme.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def test_theme_background_check(make_napari_viewer):
5555

5656
@pytest.mark.parametrize(
5757
"theme_name, expected_text_colour",
58-
[("dark", "white"), ("light", "black")],
58+
[
59+
("dark", "#f0f1f2"), # #f0f1f2 is a light grey (almost white)
60+
("light", "#3b3a39"), # #3b3a39 is a brownish dark grey (almost black)
61+
],
5962
)
6063
def test_titles_respect_theme(
6164
make_napari_viewer, theme_name, expected_text_colour

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.