def draw(self, node): left = self.settings.get('lines.left') right = self.settings.get('lines.right') below = self.settings.get('lines.below') bg = self.settings.get('colors.background', node) vline(left, node.position.x, node.position.y, node.position.height, bg) vline(right, node.inner.x + node.inner.width, node.position.y, node.position.height, bg) hline(below, node.position.x, node.inner.y + node.inner.height, node.position.width, bg) self.bar(node)
def draw_spacer_after(self, child): from api.line import vline vline(self.spacer, child.position.x + child.position.width, child.position.y, child.position.height, self.module.setting('spacers.horizontal.color'))