Correct and configurable lineguide size
This commit is contained in:
parent
2e9619f630
commit
64729ff4a6
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue