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

Implement automatic color scheme changing between light and dark #3

Open
kovidgoyal opened this issue Jun 8, 2024 · 2 comments
Open
Assignees
Labels
easy This project is relatively easy to implement Python

Comments

@kovidgoyal
Copy link
Owner

Allow specifying color themes for light and dark mode and switch automatically between them based on system color theme state.

Will require a new option in kitty.conf, something like

light_and_dark_mode_themes theme name 1, theme name 2

Integration points:

Boss.on_system_color_scheme_change
Boss.patch_colors

Get a named theme as a .conf file by running
kitten themes --dump-theme --check-age=-1 Theme Name

Then parse that into a color dict to call patch_colors with. See rc/set_colors.py for an example of doing that.

When calling the kitten handle the theme not being downloaded by recalling with --cache-age=0

Also use an IPC mutex so that if there are multiple kitty's running they dont all call the kitten at the same time.

Pure python unless some changes to the themes kittne need to be made, which would be in Go.

@kovidgoyal kovidgoyal added easy This project is relatively easy to implement Python labels Jun 8, 2024
@KishanJainSP
Copy link

Hey @kovidgoyal
Our team would like work upon this issue under FOSS Hack 2024 please assign this issue to us

@kovidgoyal
Copy link
Owner Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy This project is relatively easy to implement Python
Projects
None yet
Development

No branches or pull requests

2 participants