Skip to content

Commit

Permalink
Black avery background (#217)
Browse files Browse the repository at this point in the history
- add option to make background of the tabs black
  • Loading branch information
sumpfork authored Nov 6, 2018
1 parent c5618ba commit 496f58c
Show file tree
Hide file tree
Showing 22 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions domdiv/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,12 @@ def drawTab(self, card, rightSide, wrapper="no"):
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
Expand Down Expand Up @@ -1076,10 +1082,12 @@ def drawDividers(self, cards):
# 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
Expand Down
Binary file modified domdiv/images/action-shelter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/action-victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/curse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/duration-reaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/duration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/landmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/reaction-shelter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/reaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/reserve-treasure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/reserve-victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/reserve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/shelter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/treasure-reaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/treasure-victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/treasure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/victory-reaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/victory-shelter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified domdiv/images/victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions domdiv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 496f58c

Please sign in to comment.