diff --git a/Cargo.lock b/Cargo.lock index 7410293..3c3910b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1466,7 +1466,7 @@ dependencies = [ [[package]] name = "glyphon" version = "0.8.0" -source = "git+https://git.nations.lol/fnmain/glyphon.git#9707e9c6cf873108e2aea9b1750e7166f6cb9e2b" +source = "git+https://git.nations.lol/fnmain/glyphon.git#675f627c9c7f62e77c4063eac5ae7d2e2d4dc6cc" dependencies = [ "cosmic-text", "etagere", @@ -2944,9 +2944,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.17.0" +version = "3.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a40f762a77d2afa88c2d919489e390a12bdd261ed568e60cfa7e48d4e20f0d33" +checksum = "22e5a0acb1f3f55f65cc4a866c361b2fb2a0ff6366785ae6fbb5f85df07ba230" dependencies = [ "cfg-if", "fastrand", diff --git a/src/lib.rs b/src/lib.rs index edcd65e..3521635 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,6 +20,7 @@ pub struct BufferWithTextArea { pub rect: Rect, pub scale: f32, pub opacity: f32, + pub invert: f32, pub default_color: Color, pub associated_data: T, } @@ -57,6 +58,7 @@ impl BufferWithTextArea { buffer: Arc>, rect: Rect, opacity: f32, + invert: f32, default_color: Color, ctx: &egui::Context, associated_data: T, @@ -68,6 +70,7 @@ impl BufferWithTextArea { rect, scale: ppi, opacity, + invert, default_color, associated_data, } @@ -176,6 +179,7 @@ impl egui_wgpu::CallbackTrait for GlyphonRendererCallback { default_color: b.default_color, custom_glyphs: &[], opacity: b.opacity, + invert: b.invert, }) .collect(); glyphon_renderer