Skip to content
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

Added support for dark mode and a couple other things. #335

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

axhan
Copy link

@axhan axhan commented Apr 8, 2022

Screenshot from 2022-04-08 16-18-39
Screenshot from 2022-04-08 16-18-55

axhan and others added 5 commits April 8, 2022 15:47
…e was made the default.

Support was added for application-wide dark or light mode using qdarkstyle through qt stylesheets.

The stylesheet doesn't affect the console component background colour, so I made it set light or dark background styles using its own, separate Jupyter styling according to the app theme.

(The code editor's colours are alse immune to the stylesheet, but I left it untouched since its preferences-selectable syntax color schemes already include schemes with both light and dark backgrounds.

The 3D viewer's colours are also impervious to stylesheets, I likewise left it untouched since its colours are already fully adjustable in the preferences).

A command-line option '-r, --restore_defaults' to delete the file containing stored preferences was added.

All instantiations of QApplication except one were made conditional on it not already having been instantiated.
@smurfix
Copy link
Contributor

smurfix commented Apr 8, 2024

You might want to add *~ to .gitignore while you're at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants