Correct and configurable lineguide size

This commit is contained in:
Jipok 2021-12-20 17:32:03 +05:00
parent 2e9619f630
commit 64729ff4a6
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ local style = {}
style.padding = { x = common.round(14 * SCALE), y = common.round(7 * SCALE) }
style.divider_size = common.round(1 * SCALE)
style.lineguide_size = style.divider_size
style.scrollbar_size = common.round(4 * SCALE)
style.caret_width = common.round(2 * SCALE)
style.tab_width = common.round(170 * SCALE)

View File

@ -11,9 +11,9 @@ function DocView:draw_overlay(...)
local offset = self:get_font():get_width("n") * config.line_limit
local x = self:get_line_screen_position(1) + offset
local y = self.position.y
local w = math.ceil(SCALE * 1)
local w = style.lineguide_size
local h = self.size.y
local color = style.guide or style.selection
renderer.draw_rect(x, y, w, h, color)
end