-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for JupyterLab Dark theme #706
Conversation
Add support for dark theme in code snippets sidebar
Fix dark mode theme support in Python Console Output
Update the Elyra logo and Pipeline Editor icons to better support dark theme
support dark theme in the DockPanel background
Took a quick look and this is looking great so far, I'll do a full review once I'm back on Monday. |
Does this also address #683 ? |
this updates how the code snippet icon is displayed (themed). it however, does not add the icon to the code snippet header (#683). i expected that to be its own PR but if you are OK with it i can include it in this PR as well. with this PR the icon properly displays in Light and Dark modes so once it does get included in the header it show properly show when switching themes. |
Update the expandable error dialog to properly display in dark theme
It's ok to be it's own pr, just that I saw some icon related changes and thought it was covering that. |
Just tried this locally and it worked great for me! Should we open an issue for pipeline editor / reach out to canvas about adding a dark mode setting? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Update pipeline editor to support changing dark/light themes
I'll be taking a look at this later today |
@ajbozarth all components have been updated. see screenshots in the description. the one remaining issue is when adding a Pipeline Editor icon to the canvas toolbar it is displayed using as of elyra-ai/canvas#106 (Jun 1, 2020) JSX can be provided as an icon to the canvas toolbar so upgrading to recent version of canvas should help resolve this Pipeline Editor toolbar icon issue. however, short of upgrading canvas we may need to either
or
(will investigate further) |
@marthacryan we may need to coordinate this with your metadata #589 PR to make sure the new pages/dialogs also support changing between Light and Dark themes |
@marthacryan thanks. i was able to work around the canvas support for dark mode and Pipeline Editor should now support switching between light and dark JupyterLab themes. however, the update could have been easier/quicker if canvas did have a support for switching (CSS) themes dynamically. it may be worth opening an issue with them for future consideration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! LGTM
Just a comment, maybe "Run pipeline" icon should stay blue on dark mode to be consistent with the other buttons added on canvas toolbar from elyra?
@karlaspuldaro thanks. yeah, that is a discussion (#706 (comment)) i wanted to have and get people's opinion. until we can update canvas (and use React components as icons) the simplest solution is to go with blue icons. the downside to that is the blue icon on black toolbar background may be difficult for some to see. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments, but this looks great over all.
As for the discussion around the canvas toolbar icon colors. I believe if we intend to update to latest canvas "soon" then leaving it blue for now (and opening an issue for the "know bug") is fine (at least its better than no dark mode). And iiuc canvas does not "actually" support dark mode, you just copied and overrode their css. If that is the case I believe you should open a PR on the canvas repo to include you dark mode support. Then, hopefully, we can get it into a release alongside the new jsx icon support that elyra can update to.
alright, will keep the toolbar icons as blue
yes, canvas does not support a dark mode (or switching CSS themes dynamically). they do recommend importing the canvas Note that if you want to use SCSS, SASS, or LESS files, you must compile them to CSS and point JupyterLab to the CSS files. i figured editing/overriding the CSS would be quicker then trying to add Sass and overcomplicating the issue. |
per review comment keep the toolbar icons blue in color
Remove attributes which are not color related
this is not an external file from canvas. i created the new canvas.css file just to keep all the changes needed for canvas in a single document. i could add them into the existing index.css instead but i believe it is better left separate. and if canvas does change it default theme or adds support for dynamically switching themes, most of the work needed for Elyra would be contained in this file. the new
|
opened an issue in JupyterLab to fix it: jupyterlab/jupyterlab#8652 |
Updated Elyra components to better support and align with JupyterLab Dark & Light themes
Fixes #625
Developer's Certificate of Origin 1.1