1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Make text background rects pixel-sharp (#5864)

Small visual teak: make sure the background text color is pixel-aligned.
This commit is contained in:
Emil Ernerfeldt
2025-03-30 16:21:00 +02:00
committed by GitHub
parent 995058bbd1
commit e3acd71090
3 changed files with 5 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ pub fn highlight(
// performing it at a separate thread (ctx, ctx.style()) can be used and when ui is available
// (ui.ctx(), ui.style()) can be used
#[allow(non_local_definitions)]
impl egui::cache::ComputerMut<(&egui::FontId, &CodeTheme, &str, &str), LayoutJob> for Highlighter {
fn compute(
&mut self,