Skip to content

Commit

Permalink
[Feat] reduce the opacity of highlight block
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed May 4, 2024
1 parent c3dc263 commit c0b27cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator/src/components/highlight_code_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lua/codesnap/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})

Expand Down

0 comments on commit c0b27cb

Please sign in to comment.