mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Rename Context::style to global_style; avoid confusion w/ Ui::style (#7772)
This is important after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -222,10 +222,10 @@ fn syntax_highlighting(
|
||||
) -> Option<ColoredText> {
|
||||
let extension_and_rest: Vec<&str> = response.url.rsplitn(2, '.').collect();
|
||||
let extension = extension_and_rest.first()?;
|
||||
let theme = egui_extras::syntax_highlighting::CodeTheme::from_style(&ctx.style());
|
||||
let theme = egui_extras::syntax_highlighting::CodeTheme::from_style(&ctx.global_style());
|
||||
Some(ColoredText(egui_extras::syntax_highlighting::highlight(
|
||||
ctx,
|
||||
&ctx.style(),
|
||||
&ctx.global_style(),
|
||||
&theme,
|
||||
text,
|
||||
extension,
|
||||
|
||||
Reference in New Issue
Block a user