-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Dark mode #23
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The |
Perhaps Or a simple substitution thing could be made for
This is needed anyways to do #77 Maybe check performance first? |
Maybe it would be good to first check whether Plots.jl (or whatever backend) can be persuaded to work in a dark mode? Otherwise your plots would look pretty bad |
I think people would need to use PlotThemes.jl for this. |
Ah okay, I agree 👍 |
As discussed in #2, a dark mode can automatically match the system theme, we don't necessarily need our own config for this. And I would say that the printed document is always in light mode? |
To new contributors: the plan is to rewrite This makes it easier to maintain the package because we will only have one CSS file to worry about. |
And check whether all the sample notebooks still look nice |
This comment has been minimized.
This comment has been minimized.
This is an accessability issue for me. Most of the Pluto user interface (hiding cells, and adding new cells are the only buttons I've found so far -- through painstaking examination of the DOM tree) is invisible if one's browser is in dark mode. |
Currently working on this, and managed to separate all the color variables in a separate file. 😃 Though, some design decision are to be made about the way to select dark and light mode and the possibility to include other different themes (might as well since the code would support it). Any inputs? Thanks 😉 |
Ideally it would query the browser to get the user's preferred theme. I think I'm stating the obvious though. |
@MarkNahabedian what do you mean with invisible if your browser is in dark mode? You're using an extension? Because by default dark mode doesn't change any styles for websites.. @pbignardi taking the user preferred color scheme would be ideal, I'm not too fond about having user specified themes integrated into Pluto. |
I mostly use Chrome. I think I installed an extension there before Chrome respected the system theme. I seldom use Edge and have not extended it. It respects the system's dark theme. Pluto's buttons are just as invisible there. |
You happen to have a screenshot? |
I'm on a Microsoft Surface. is supposed to take a screenshot but doesn't. I tried Microsoft Edge's "web capture" menu item and selected full screen capture. It did something but I don't know where it put the screenshot. It resulted in all of Pluto's non-cell background changing from black to white, and the icons becoming barely visible if I look real close, but the contrast is really poor. If I reload the page the black background is restored. I took a photo which is shared here: Because of the heated competition to give us smart phones with cameras that give us a couple of orders of magnitude more pixels than we need, the image was too big to email. Sorry about the glare. I meant to say this before: much thanks to those who are working on this issue. The very nature of vision limitations makes the so afflicted more likely to use computers than to play baseball. |
Thanks for the photo, that makes stuff a bit more clear. I hope introducing our own dark mode disables the force dark mode so you can see the buttons again 😁 |
What I see doesn'y quite match that description. In Edge settings, under Appearance, I have "overall appeaqrance" set to "dark" and "theme" set to "defailt". |
I'm changing all the colours for all the elements in the DOM and I just found a little problem. Caret color cannot be set in any way through CSS for the pluto-input. Any inputs? Also, the colours for highlighting the syntax in the input are fixed in the |
It should definitely have different highlighting: we can add some javascript that pulls the colors from the computed css. |
Code highlighting has been fixed. Though selecting code and cursor Color are buggy. Somehow, somewhere, the JavaScript code for CodeMirror chooses its own colors. Those two problems aside, the dark mode is complete. If anyone has suggestions to solve the two mentioned problems I'll be very grateful |
No description provided.
The text was updated successfully, but these errors were encountered: