- self.m.width, marquise.edge_top + (
- self.m.height - marquise.edge_top
- ) / 4
- ))
- )
-
- marquise.apply(
- img, 0, 0, self.m.width
- )
- title_box.apply(
- img,
- marquise.title_box_position[0],
- marquise.title_box_position[1],
- )
-
- AuthorBox(self, self.m.author_width).apply(
- img, self.m.width - self.m.margin - self.m.author_width, self.m.margin
- )
- WLLogo(self).apply(img, self.m.margin, self.m.margin, None, self.m.logo_h)
-
-
+ self.m.width, self.m.height - marquise.edge_top
+ )
+ self.set_color_scheme_from(
+ img.crop((
+ 0, marquise.edge_top,
+ self.m.width, marquise.edge_top + (
+ self.m.height - marquise.edge_top
+ ) / 4
+ ))
+ )
+
+ marquise.apply(
+ img, 0, 0, self.m.width
+ )
+ title_box.apply(
+ img,
+ marquise.title_box_position[0],
+ marquise.title_box_position[1],
+ )
+
+ AuthorBox(self, self.m.author_width).apply(
+ img, self.m.width - self.m.margin - self.m.author_width, self.m.margin
+ )
+ WLLogo(self).apply(img, self.m.margin, self.m.margin, None, self.m.logo_h)
+
+
+ if self.cover_logo:
+ LogoSticker(self, self.cover_logo).apply(
+ img,
+ self.m.width - self.m.margin - self.m.sticker_size,
+ self.m.height - self.m.margin,
+ self.m.sticker_size, self.m.sticker_size, self.m.sticker_padding_x, self.m.sticker_padding_y, self.m.sticker_radius
+ )