Black avery background (#217)
- add option to make background of the tabs black
@ -642,6 +642,12 @@ class DividerDrawer(object):
|
||||
if wrapper == "back":
|
||||
self.canvas.rotate(180)
|
||||
|
||||
if self.options.black_tabs:
|
||||
self.canvas.saveState()
|
||||
self.canvas.setFillColorRGB(0, 0, 0)
|
||||
self.canvas.rect(0, 0, self.options.labelWidth, self.options.labelHeight, fill=True)
|
||||
self.canvas.restoreState()
|
||||
|
||||
# allow for 3 pt border on each side
|
||||
textWidth = self.options.labelWidth - 6
|
||||
textHeight = 7
|
||||
@ -1076,10 +1082,12 @@ class DividerDrawer(object):
|
||||
# remember whether we start with odd or even divider for tab
|
||||
# location
|
||||
pageStartOdd = self.odd
|
||||
|
||||
if not self.options.no_page_footer and (
|
||||
not self.options.tabs_only and
|
||||
self.options.order != "global"):
|
||||
self.drawSetNames(pageCards)
|
||||
|
||||
for i, card in enumerate(pageCards):
|
||||
# print card
|
||||
x = i % self.options.numDividersHorizontal
|
||||
|
||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
@ -420,6 +420,11 @@ def parse_opts(cmdline_args=None):
|
||||
dest="tabs_only",
|
||||
help="Draw only the divider tabs and no divider outlines. "
|
||||
"Used to print the divider tabs on labels.")
|
||||
group_printing.add_argument(
|
||||
"--black-tabs",
|
||||
action="store_true",
|
||||
help="In tabs-only mode, draw tabs on black background"
|
||||
)
|
||||
group_printing.add_argument(
|
||||
"--info",
|
||||
action="store_true",
|
||||
|
||||