Remove lineguide_size from style.lua

This commit is contained in:
Jipok 2021-12-21 14:32:29 +05:00
parent 64729ff4a6
commit 35011d7e7b
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ 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,7 +11,7 @@ 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 = style.lineguide_size
local w = style.lineguide_size or style.divider_size
local h = self.size.y
local color = style.guide or style.selection