Skip to content

Conversation

@Its-Just-Nans
Copy link
Contributor

Following this MR #7375

Without Syntect, the urrent theme selector is global_theme_preference_buttons. It should be the dark_theme variable of the local CodeTheme - same as syntect

Also adding a builder to easily change the font and font size

Tested with

cargo run
# and
cargo run --features syntect 
  • I have followed the instructions in the PR template

thanks for this amazing library!

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Preview available at https://egui-pr-preview.github.io/pr/7684-fix-code-theme-functions
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@Its-Just-Nans
Copy link
Contributor Author

Note that the potential other option is to remove the CodeTheme dark_mode (and theme choice) when syntect is disabled

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.

1 participant