-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update theme/style sheet handling to enable napari-console to use nap…
…ari `font_size` setting (#33) # References and relevant issues Closes #32 # Description Depends on/related to napari/napari#6753 A preview: ![console_font_size](https://github.com/napari/napari-console/assets/16781833/a491c26e-8cd6-4438-939e-3e4d1250f115) ## Notes * While working on this, I noticed that with napari latest main a deprecation warning appears (related with using the `as_dict` kwarg from the `get_theme` function). Added a note about that here. * To preserve compatibility with napari 0.4.x (at least 0.4.19) the previous logic was left. The new `style_sheet` kwarg added to the `_update_theme` method defines if the previous logic needs to be used (napari 0.5.0 will use the new `style_sheet` kwarg, see napari/napari#6753) --------- Co-authored-by: Juan Nunez-Iglesias <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters