Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
GodGotzi committed Jul 12, 2024
1 parent c9931db commit a20c1cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ categories = ["gui", "text-editors"]
keywords = ["egui", "GUI", "editor", "syntax", "highlighting"]

[dependencies]
egui = { version = "0.27", optional = true }
egui = { version = "0.28", optional = true }

[lib]
name = "egui_code_editor"
Expand All @@ -24,4 +24,4 @@ editor = []
[[example]]
name = "demo"
[dev-dependencies]
eframe = "0.27"
eframe = "0.28"
2 changes: 1 addition & 1 deletion examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Egui Code Editor Demo",
options,
Box::new(|cc| Box::new(CodeEditorDemo::new(cc))),
Box::new(|cc| Ok(Box::new(CodeEditorDemo::new(cc)))),
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/themes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl ColorTheme {
style.visuals.selection.bg_fill = self.selection();
style.visuals.extreme_bg_color = self.bg();
style.override_font_id = Some(egui::FontId::monospace(fontsize));
// style.visuals.text_cursor.stroke.width = fontsize * 0.1;
style.visuals.text_cursor.stroke.width = fontsize * 0.1;
}

pub const fn type_color_str(&self, ty: TokenType) -> &'static str {
Expand Down

0 comments on commit a20c1cd

Please sign in to comment.