1
0
Fork 0

[Feat] reduce the opacity of highlight block

main
Mist 2024-05-04 20:11:45 +08:00 committed by The Mist
parent 4c3b56c82e
commit 7a580d2106
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ impl Component for HighlightCodeBlock {
let start_y_offset = (self.start_line_number - 1) as f32 * self.line_height;
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(
Rect::from_xywh(
render_params.x - EDITOR_PADDING,

View File

@ -31,7 +31,7 @@ function highlight_module.create_highlight_selector_window(cb_name, code)
row = row,
style = "minimal",
border = "rounded",
title = "Select the code needs to be highlighted",
title = "Select highlight lines",
title_pos = "center",
})