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

Refactor _highlight_configure_tag to use is_dark_theme #532

Closed
tangledhelix opened this issue Nov 17, 2024 · 1 comment · Fixed by #533
Closed

Refactor _highlight_configure_tag to use is_dark_theme #532

tangledhelix opened this issue Nov 17, 2024 · 1 comment · Fixed by #533
Assignees
Labels
code improvement Improve maintainability, consistency, etc

Comments

@tangledhelix
Copy link
Collaborator

As discussed in #525, consider updating _highlight_configure_tag to use is_dark_theme to auto-detect light/dark when calculating what colors to apply.

Potentially this would simplify a few things, including perhaps not needing to define a "Default" value in the color maps at all, and using only "Light" and "Dark".

@tangledhelix tangledhelix added the code improvement Improve maintainability, consistency, etc label Nov 17, 2024
@tangledhelix tangledhelix self-assigned this Nov 17, 2024
@windymilla
Copy link
Collaborator

Yes - I think this is a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code improvement Improve maintainability, consistency, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants