johann-foerster commited on
Commit
8c55048
·
1 Parent(s): b46c051

stronger backgrounds

Browse files
Files changed (1) hide show
  1. webui.py +2 -2
webui.py CHANGED
@@ -73,10 +73,10 @@ def overlay_image(image_path, toggle_greet, greet):
73
  TEXTBOX_WIDTH = 1280-HEIGHT-4*TEXT_PADDING
74
 
75
  X_RECT=1280-HEIGHT-2*TEXT_PADDING
76
- image.rectangle(((X_RECT, 768-HEIGHT), (1280, 766)), fill=(0, 0, 0, 50))
77
  image._image.paste(QM_LOGO, (1148,687), QM_LOGO)
78
  if (toggle_greet):
79
- image.rectangle(((0, 768-HEIGHT), (X_RECT-1, 768)), fill=(255, 255, 255, 166))
80
  txt_image = Image.new('RGBA', (4*1280, 4*TEXTBOX_HEIGHT), (255,255,255,0))
81
  ImageDraw.Draw(txt_image).text(xy=(0,0), text=greet, font=ImageFont.truetype('resources/Neuton-ExtralightItalic.ttf', floor(1.5*TEXTBOX_HEIGHT)), fill=(0, 0, 0))
82
  image_box = txt_image.getbbox()
 
73
  TEXTBOX_WIDTH = 1280-HEIGHT-4*TEXT_PADDING
74
 
75
  X_RECT=1280-HEIGHT-2*TEXT_PADDING
76
+ image.rectangle(((X_RECT, 768-HEIGHT), (1280, 766)), fill=(0, 0, 0, 75))
77
  image._image.paste(QM_LOGO, (1148,687), QM_LOGO)
78
  if (toggle_greet):
79
+ image.rectangle(((0, 768-HEIGHT), (X_RECT-1, 768)), fill=(255, 255, 255, 190))
80
  txt_image = Image.new('RGBA', (4*1280, 4*TEXTBOX_HEIGHT), (255,255,255,0))
81
  ImageDraw.Draw(txt_image).text(xy=(0,0), text=greet, font=ImageFont.truetype('resources/Neuton-ExtralightItalic.ttf', floor(1.5*TEXTBOX_HEIGHT)), fill=(0, 0, 0))
82
  image_box = txt_image.getbbox()