add pixel art icons + minor fixes

This commit is contained in:
Lephenixnoir 2021-04-17 17:55:53 +02:00
parent f5a94667e5
commit 390c7d2ea7
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
31 changed files with 12 additions and 9 deletions

View File

@ -80,3 +80,4 @@ Ces dossiers ne sont pas indexés par le dépôt :
* Télécharger les manuels et les héberger sur Planète Casio.
* Télécharger tous les OS updaters, les héberger sur Planète Casio, et les
ajouter à la base de données.
* Compléter les icônes pixel art.

BIN
images/pixel.xcf Normal file

Binary file not shown.

BIN
images/pixel/cg10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

BIN
images/pixel/cg20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

BIN
images/pixel/cp300.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
images/pixel/cp330+.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
images/pixel/cp330.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
images/pixel/cp400+e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

BIN
images/pixel/cp400.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

BIN
images/pixel/g100+.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

BIN
images/pixel/g100.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

BIN
images/pixel/g25+.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

BIN
images/pixel/g25+e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

BIN
images/pixel/g25+pro.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

BIN
images/pixel/g25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

BIN
images/pixel/g35+.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

BIN
images/pixel/g35+e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

BIN
images/pixel/g35+usb3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

BIN
images/pixel/g35+usb4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

BIN
images/pixel/g35.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

BIN
images/pixel/g65.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

BIN
images/pixel/g75+.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

BIN
images/pixel/g75+e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

BIN
images/pixel/g75.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

BIN
images/pixel/g85.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

BIN
images/pixel/g85sd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

BIN
images/pixel/g90+e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

BIN
images/pixel/g95.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

View File

@ -151,7 +151,7 @@ enums:
brightness_5levels: "5 brightness levels"
color_mode:
mono: "Black and white"
rgb565: "65536 colors (`RGB565`)"
rgb565: "65536 colors (RGB565)"
display_size_text:
variable: "Variable"
serial_connection:

View File

@ -151,7 +151,7 @@ enums:
brightness_5levels: "5 niveaux de luminosité"
color_mode:
mono: "Noir et blanc"
rgb565: "65536 couleurs (`RGB565`)"
rgb565: "65536 couleurs (RGB565)"
display_size_text:
variable: "Variable"
serial_connection:

View File

@ -104,14 +104,18 @@ for (name, calc) in db.all_calcs():
else:
url = "https://gitea.planet-casio.com/Lephenixnoir/CalcDB/raw/"\
f"branch/master/images/small/{name}.jpg"
print(f"<td class='borderless'><img src='{url}'></td>")
cssname = "calc calc-" + name.replace("+", "p")
print(f"<td class='borderless {cssname}'><img src='{url}'></td>")
print("</tr>")
# Full name
print(f"<tr><th class='borderless field'></th>")
for (name, calc) in db.all_calcs():
value = calc["general"]["full_name"]
active = " st-active" if calc["general"]["active"] else ""
print(f"<td class='borderless{active}'><b>{value}</b></td>")
cssname = "calc calc-" + name.replace("+", "p")
print(f"<td class='borderless {cssname}{active}'><b>{value}</b></td>")
print("</tr>")
for category in db.all_categories():
@ -135,11 +139,9 @@ for category in db.all_categories():
r = lang.filter(r)
r = md.convert(r)
classes = ""
if styles != []:
classes = " class='" + " ".join(f"st-{c}" for c in styles)+"'"
print(f"<td{classes}>{r}</td>")
classes = " ".join(f"st-{c}" for c in styles)
cssname = "calc calc-" + name.replace("+", "p")
print(f"<td class='{cssname} {classes}'>{r}</td>")
print("</tr>")
print("</table>")