tooltip: Allow the border to be configured.

Given the tooltip border is "client side" instead of X11 to allow
anti-aliasing to work when a shape is used, it doesn't use the wibox
border.
This commit is contained in:
Emmanuel Lepage Vallee 2018-12-21 21:34:29 -05:00
parent 2b52926b48
commit 52f62b712c
1 changed files with 10 additions and 0 deletions

View File

@ -391,6 +391,16 @@ function tooltip:set_margins(val)
self.marginbox:set_margins(val)
end
function tooltip:set_border_width(val)
self.widget.shape_border_width = val
end
function tooltip:set_border_color(val)
self.widget.shape_border_color = val
end
--- Set the margins around the left and right of the tooltip textbox
--
-- @property margins_leftright