mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Cleaner condition
This commit is contained in:
parent
79cca25704
commit
89f4bb3ca1
@ -133,10 +133,7 @@ def draw_grid_annotations(im, width, height, hor_texts, ver_texts):
|
|||||||
|
|
||||||
fontsize = (width + height) // 25
|
fontsize = (width + height) // 25
|
||||||
line_spacing = fontsize // 2
|
line_spacing = fontsize // 2
|
||||||
if not opts.font:
|
fnt = ImageFont.truetype(opts.font or Roboto, fontsize)
|
||||||
fnt = ImageFont.truetype(Roboto, fontsize)
|
|
||||||
else:
|
|
||||||
fnt = ImageFont.truetype(opts.font, fontsize)
|
|
||||||
color_active = (0, 0, 0)
|
color_active = (0, 0, 0)
|
||||||
color_inactive = (153, 153, 153)
|
color_inactive = (153, 153, 153)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user