[Feat] reduce the opacity of highlight block
parent
4c3b56c82e
commit
7a580d2106
|
@ -34,7 +34,7 @@ impl Component for HighlightCodeBlock {
|
||||||
let start_y_offset = (self.start_line_number - 1) as f32 * self.line_height;
|
let start_y_offset = (self.start_line_number - 1) as f32 * self.line_height;
|
||||||
|
|
||||||
paint.anti_alias = false;
|
paint.anti_alias = false;
|
||||||
paint.set_color(Color::from_rgba8(255, 255, 255, 18));
|
paint.set_color(Color::from_rgba8(255, 255, 255, 10));
|
||||||
pixmap.fill_rect(
|
pixmap.fill_rect(
|
||||||
Rect::from_xywh(
|
Rect::from_xywh(
|
||||||
render_params.x - EDITOR_PADDING,
|
render_params.x - EDITOR_PADDING,
|
||||||
|
|
|
@ -31,7 +31,7 @@ function highlight_module.create_highlight_selector_window(cb_name, code)
|
||||||
row = row,
|
row = row,
|
||||||
style = "minimal",
|
style = "minimal",
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
title = "Select the code needs to be highlighted",
|
title = "Select highlight lines",
|
||||||
title_pos = "center",
|
title_pos = "center",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue