General : Add dark mode.
CSS : Add dark mode; Python : Custom QR code colors; SVG : Add graphics for dark mode; SVG : Optimize vector code; XHTML : Modify for dark mode.
This commit is contained in:
parent
16338fabb2
commit
19e8910a4e
16 changed files with 205 additions and 502 deletions
5
fasi.py
5
fasi.py
|
@ -669,7 +669,10 @@ class Graphics:
|
|||
return selection
|
||||
|
||||
def generate_qr_code_graphics_from_string(text, jid_bare):
|
||||
qrcode_graphics = qrcode.make(text)
|
||||
#qrcode_graphics = qrcode.make(text)
|
||||
qr = qrcode.QRCode(border=2, box_size=10)
|
||||
qr.add_data(text)
|
||||
qrcode_graphics = qr.make_image(fill_color='#000', back_color='#f2f2f2')
|
||||
qrcode_graphics.save('qr/{}.png'.format(jid_bare))
|
||||
|
||||
class Syndication:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue