diff --git a/Cargo.toml b/Cargo.toml index 36e5555..e5bfde3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,8 +30,8 @@ presser = { version = "0.3" } # such as the ability to link/load a Vulkan library. ash = { version = "0.38", optional = true, default-features = false, features = ["debug"] } # Only needed for visualizer. -egui = { version = ">=0.24, <=0.27", optional = true, default-features = false } -egui_extras = { version = ">=0.24, <=0.27", optional = true, default-features = false } +egui = { version = ">=0.24, <=0.31", optional = true, default-features = false } +egui_extras = { version = ">=0.24, <=0.31", optional = true, default-features = false } [target.'cfg(target_vendor = "apple")'.dependencies] objc2 = { version = "0.6", default-features = false, optional = true } diff --git a/src/visualizer/memory_chunks.rs b/src/visualizer/memory_chunks.rs index 6615600..c3ec9d7 100644 --- a/src/visualizer/memory_chunks.rs +++ b/src/visualizer/memory_chunks.rs @@ -32,7 +32,7 @@ impl MemoryChunksVisualizationSettings { ui.horizontal(|ui| { ui.add( DragValue::new(&mut self.width_in_bytes) - .clamp_range(BYTES_PER_UNIT_MIN..=BYTES_PER_UNIT_MAX) + .range(BYTES_PER_UNIT_MIN..=BYTES_PER_UNIT_MAX) .speed(10.0), ); ui.label("Bytes per line"); @@ -95,10 +95,11 @@ pub(crate) fn render_memory_chunks_ui<'a>( if ui.is_rect_visible(resp.rect) { ui.painter().rect( resp.rect, - egui::Rounding::ZERO, + egui::CornerRadius::ZERO, color_scheme .get_allocation_type_color(data[cursor_idx].allocation_type), egui::Stroke::new(1.0, Color32::BLACK), + egui::StrokeKind::Outside, ); resp.on_hover_ui_at_pointer(|ui| {