Skip to content

Commit

Permalink
Update to egui 0.28 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
crumblingstatue authored Jul 3, 2024
1 parent 0b84b35 commit 18b39c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -23,4 +23,4 @@ egui = ["dep:egui"]
[[example]]
name = "demo"
[dev-dependencies]
eframe = "0.27"
eframe = "0.28"
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.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 18b39c3

Please sign in to comment.