Allow configuration of the thumbnail icon overlay.
Previously this was hardcoded to be M_DOOM_scaled.png.
This commit is contained in:
parent
c1e4156f3c
commit
fcc6b22785
3 changed files with 10 additions and 9 deletions
|
|
@ -13,7 +13,7 @@ class Thumb(dcc.doom_base.WadMap):
|
|||
def take_action(self, parsed_args):
|
||||
base = self.base_thumb_path()
|
||||
text = self.text_thumb_path()
|
||||
mdoom = self.m_doom_path()
|
||||
overlay = self.thumnail_overlay_path()
|
||||
with (
|
||||
wand.image.Image(filename=base) as bi,
|
||||
wand.color.Color("transparent") as tc
|
||||
|
|
@ -22,7 +22,7 @@ class Thumb(dcc.doom_base.WadMap):
|
|||
ti.border(tc, 5, 5)
|
||||
bi.composite(ti, gravity="south_west")
|
||||
|
||||
with wand.image.Image(filename=mdoom) as mdi:
|
||||
with wand.image.Image(filename=overlay) as mdi:
|
||||
mdi.border(tc, 5, 5)
|
||||
bi.composite(mdi, gravity="north_west")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue