fix border
This commit is contained in:
@@ -50,13 +50,13 @@ function border:draw(transparent)
|
|||||||
-- the left-upper attribute
|
-- the left-upper attribute
|
||||||
local attr_ul = curses.color_pair(cornerattr[1], self:background())
|
local attr_ul = curses.color_pair(cornerattr[1], self:background())
|
||||||
if self:background() == cornerattr[1] then
|
if self:background() == cornerattr[1] then
|
||||||
attr_ul = {attr_ul, "standout"}
|
attr_ul = {attr_ul, "bold"}
|
||||||
end
|
end
|
||||||
|
|
||||||
-- the right-lower attribute
|
-- the right-lower attribute
|
||||||
local attr_rl = curses.color_pair(cornerattr[2], self:background())
|
local attr_rl = curses.color_pair(cornerattr[2], self:background())
|
||||||
if self:background() == cornerattr[2] then
|
if self:background() == cornerattr[2] then
|
||||||
attr_rl = {attr_rl, "standout"}
|
attr_rl = {attr_rl, "bold"}
|
||||||
end
|
end
|
||||||
|
|
||||||
-- the border characters
|
-- the border characters
|
||||||
|
Reference in New Issue
Block a user