Calendar Lite 1.5: GingerCal is now Calendar Lite, new icon and reminder icon

Renames the app (label, texts, User-Agent, PRODID, APK) and uses the new launcher icon pack
(ldpi to xhdpi, master in art/) instead of drawing one at build time. Reminders show a white
calendar glyph in the status bar (stat_notify, 18-48 px) instead of the system's colour
alarm clock, which didn't fit the Gingerbread bar. The package name, database and signing key
stay, so it installs over GingerCal and keeps its data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
XoséandClaude Opus 5.5 committed 2026-10-19 16:57:48 +02:00
1 parent 5eeaf0f519
commit 748f6add54
24 files changed
+37 -71

No files matched your search

-33
View File
@@ -1,33 +0,0 @@
#!/usr/bin/env python3
"""Draws the launcher icon: a little calendar page in ginger tones.
usage: mkicon.py out.png [size] (48 = mdpi, 36 = ldpi like the Galaxy Mini)"""
import sys
from PIL import Image, ImageDraw
S = 4 # supersample then shrink for smooth edges
W = 48 * S
img = Image.new("RGBA", (W, W), (0, 0, 0, 0))
d = ImageDraw.Draw(img)
# shadow
d.rounded_rectangle((5 * S, 7 * S, 45 * S, 46 * S), radius=6 * S, fill=(0, 0, 0, 90))
# page
d.rounded_rectangle((3 * S, 5 * S, 43 * S, 44 * S), radius=6 * S, fill=(250, 246, 238, 255))
# ginger header band
d.rounded_rectangle((3 * S, 5 * S, 43 * S, 17 * S), radius=6 * S, fill=(214, 110, 42, 255))
d.rectangle((3 * S, 11 * S, 43 * S, 17 * S), fill=(214, 110, 42, 255))
# binder rings
for x in (13, 33):
d.rounded_rectangle(((x - 2) * S, 2 * S, (x + 2) * S, 10 * S), radius=2 * S, fill=(90, 60, 40, 255))
# day grid, one day highlighted
for row in range(3):
for col in range(4):
x0 = (8 + col * 8.5) * S
y0 = (21 + row * 7.5) * S
box = (x0, y0, x0 + 5.5 * S, y0 + 5 * S)
if (row, col) == (1, 2):
d.rounded_rectangle(box, radius=1.5 * S, fill=(0, 130, 201, 255)) # Nextcloud blue
else:
d.rounded_rectangle(box, radius=1.5 * S, fill=(200, 188, 172, 255))
size = int(sys.argv[2]) if len(sys.argv) > 2 else 48
img = img.resize((size, size), Image.LANCZOS)
img.save(sys.argv[1] if len(sys.argv) > 1 else "icon.png", optimize=True)