Black avery background (#217)

- add option to make background of the tabs black
This commit is contained in:
Peter 2018-11-06 10:18:04 -08:00 committed by GitHub
parent c5618bacd2
commit 496f58c256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 13 additions and 0 deletions

View File

@ -642,6 +642,12 @@ class DividerDrawer(object):
if wrapper == "back": if wrapper == "back":
self.canvas.rotate(180) 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 # allow for 3 pt border on each side
textWidth = self.options.labelWidth - 6 textWidth = self.options.labelWidth - 6
textHeight = 7 textHeight = 7
@ -1076,10 +1082,12 @@ class DividerDrawer(object):
# remember whether we start with odd or even divider for tab # remember whether we start with odd or even divider for tab
# location # location
pageStartOdd = self.odd pageStartOdd = self.odd
if not self.options.no_page_footer and ( if not self.options.no_page_footer and (
not self.options.tabs_only and not self.options.tabs_only and
self.options.order != "global"): self.options.order != "global"):
self.drawSetNames(pageCards) self.drawSetNames(pageCards)
for i, card in enumerate(pageCards): for i, card in enumerate(pageCards):
# print card # print card
x = i % self.options.numDividersHorizontal x = i % self.options.numDividersHorizontal

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

@ -420,6 +420,11 @@ def parse_opts(cmdline_args=None):
dest="tabs_only", dest="tabs_only",
help="Draw only the divider tabs and no divider outlines. " help="Draw only the divider tabs and no divider outlines. "
"Used to print the divider tabs on labels.") "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( group_printing.add_argument(
"--info", "--info",
action="store_true", action="store_true",