From 7a580d21069ad37784e5c20d398016e41177f431 Mon Sep 17 00:00:00 2001 From: Mist Date: Sat, 4 May 2024 20:11:45 +0800 Subject: [PATCH] [Feat] reduce the opacity of highlight block --- generator/src/components/highlight_code_block.rs | 2 +- lua/codesnap/highlight.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/src/components/highlight_code_block.rs b/generator/src/components/highlight_code_block.rs index 3a2ea22..cbefc09 100644 --- a/generator/src/components/highlight_code_block.rs +++ b/generator/src/components/highlight_code_block.rs @@ -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, diff --git a/lua/codesnap/highlight.lua b/lua/codesnap/highlight.lua index 36a59c8..6feac19 100644 --- a/lua/codesnap/highlight.lua +++ b/lua/codesnap/highlight.lua @@ -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", })