Add background_image

This commit is contained in:
Fredrick Brennan
2020-01-30 17:23:42 +08:00
parent a67e4e550e
commit 9f364209af
14 changed files with 289 additions and 47 deletions

View File

@@ -60,11 +60,13 @@ class Borders:
active_window,
current_layout,
extra_blank_rects,
draw_window_borders=True
draw_window_borders=True,
draw_blank_rects=False
):
add_borders_rect(self.os_window_id, self.tab_id, 0, 0, 0, 0, BorderColor.default_bg)
for br in chain(current_layout.blank_rects, extra_blank_rects):
add_borders_rect(self.os_window_id, self.tab_id, *br, BorderColor.default_bg)
if draw_blank_rects:
for br in chain(current_layout.blank_rects, extra_blank_rects):
add_borders_rect(self.os_window_id, self.tab_id, *br, BorderColor.default_bg)
bw, pw = self.border_width, self.padding_width
if bw + pw <= 0:
return