Fix markdown monospace in headings
This commit is contained in:
@ -82,6 +82,8 @@ struct Ephemeral {
|
||||
current_stroke: Vec<Pos2>,
|
||||
|
||||
/// The lines that have not been blitted to `texture` yet.
|
||||
///
|
||||
/// Each pair of [Pos2]s is the start and end of one line.
|
||||
unblitted_lines: Vec<[Pos2; 2]>,
|
||||
|
||||
tessellator: Option<Tessellator>,
|
||||
@ -425,7 +427,7 @@ impl Handwriting {
|
||||
last_mesh_ctx,
|
||||
..
|
||||
} = &mut self.e;
|
||||
// TODO: don't tessellate and rasterize on the GUI thread
|
||||
// TODO: avoid tessellating and rasterizing on the GUI thread
|
||||
|
||||
*last_mesh_ctx = Some(mesh_context);
|
||||
|
||||
@ -444,10 +446,7 @@ impl Handwriting {
|
||||
.iter()
|
||||
.chain([&*current_stroke])
|
||||
.filter(|stroke| stroke.len() >= 2)
|
||||
.map(|stroke| {
|
||||
//let points: Vec<Pos2> = stroke.iter().map(|&p| to_screen * p).collect();
|
||||
egui::Shape::line(stroke.clone(), style.stroke)
|
||||
})
|
||||
.map(|stroke| egui::Shape::line(stroke.clone(), style.stroke))
|
||||
.for_each(|shape| {
|
||||
tessellator.tessellate_shape(shape, mesh);
|
||||
});
|
||||
@ -480,7 +479,6 @@ impl Handwriting {
|
||||
ui.vertical_centered_justified(|ui| {
|
||||
self.ui_control(None, ui, &mut response);
|
||||
|
||||
//ui.label("Paint with your mouse/touch!");
|
||||
Frame::canvas(ui.style())
|
||||
.corner_radius(20.0)
|
||||
.stroke(Stroke::new(5.0, Color32::from_black_alpha(40)))
|
||||
|
||||
Reference in New Issue
Block a user