From 21bcadea5680406f2d4dfe2732aff76dd7d49816 Mon Sep 17 00:00:00 2001 From: Luca <87448287+LUCA-PYTHON@users.noreply.github.com> Date: Thu, 12 Mar 2026 20:48:30 +0100 Subject: [PATCH 1/2] Add files via upload --- database/images/belt.png | Bin 0 -> 1080 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 database/images/belt.png diff --git a/database/images/belt.png b/database/images/belt.png new file mode 100644 index 0000000000000000000000000000000000000000..b4c85ccd4968e1761077b65ac08472af8e18e99a GIT binary patch literal 1080 zcmV-81jqY{P)Wyp6oB7Y?XE$U8`vj^0?9ykl}}&^N!OK6Ams#6PY~$@an@lV`UFyU0ph~;39K8$ zMZ0Tl_M2EnfkgbBA!jJ_10LU#07LeNnK#1`t;7SO;Bd@!M0Df}>XLepH9UA?gV8TJrB4WMGggZBT{B)*iL>|Cm*V51Z^Q&{IoB3|BmTB177Y+KGvdC zD0|<{)$rq5Dnb#ZbHAMb^@egJb~u&RlUG$N|D_9JDh)_)i8f)A8{&ki7m`b(R6)qm zVn$Lfr${;>mx3a!vzby_&VZ={whyZNeot^rHh?{m7o6pnEDJzY;$1j!`rc3s@2K zWruwG&o!k#w7zE)eO!wnb_5088EH)T#GFwyAsb;!kRCnz;umWK9gvMsgb~r=up_s3 z7nJ_d+Iy~spDw8iV=m}@Zz?K!P3a#>y;3jEXH;1bKZQ_JG;_n5m!(t{qB` zF}oitENF8`|C!Q%T2G!9J;X0ADCiDI3!)ATi#BQ#K{L{rr~`8ZO~|=15p+%3mwK>9 z&;dC&ipUMid!OZfNm(BXZWxOR3VI>eW6Bz#&RER`6uHPP$jdJYvr^#8#QcJS-jZuy zYKdAgijF8UqlnDVnDr1{5Oroq!w$)r$Si2HF}$X16Llun(;wLd)p}}uP4=m#h*VhC zr!4EQDR+mAcloJ;kkd!bl5+RRus2E+v_pL-j?{jXEXc2?#>yh`X|z~DwcZfsC1C>@ zFDTDHyw#nA$7JFKz3;7P&OcM`K9TyJX5E)9#0v_#pGj@vF>pg4dP@F=Bta4B(SV?> zF1Eg@X$0M~^-T@879rPT%11!_Sy8;8`=?h|BJv}#%ls*=y?)%&u(5(P_mZM1)v@d( z>P%W{8Yf4SD5#+klu9Egg+@>cl?yW6U&ZZL%A(Q_(;!H%7|)0zTp_4Kt_&A~W~4Du zggJsHQOdNfW1X^?bDdPZd73OOBe70000 Date: Thu, 12 Mar 2026 20:48:44 +0100 Subject: [PATCH 2/2] Update reminder bell to use image instead of drawing Replaced bell drawing with image loading and pasting. --- datein/calendar.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/datein/calendar.py b/datein/calendar.py index 366cfc8..ee6e685 100644 --- a/datein/calendar.py +++ b/datein/calendar.py @@ -139,13 +139,15 @@ async def calendar( ) if remindme: - bell_size = 24 * scale - bell_x = 100*scale + pill_width - 40*scale - bell_y = y_offset + i*task_spacing + pill_height / 2 - draw.ellipse( - (bell_x - bell_size/2, bell_y - bell_size/2, bell_x + bell_size/2, bell_y + bell_size/2), - fill=(255, 215, 0) - ) + try: + bell_img = Image.open("database/images/belt.png").convert("RGBA") + bell_size = 28 * scale + bell_img = bell_img.resize((bell_size, bell_size)) + bell_x = 100*scale + pill_width - 40*scale + bell_y = y_offset + i*task_spacing + pill_height / 2 + img.paste(bell_img, (int(bell_x - bell_size/2), int(bell_y - bell_size/2)), bell_img) + except Exception as e: + print("Failed to load bell image:", e) else: draw.text(