add pixel art icons + minor fixes
|
@ -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.
|
||||
|
|
After Width: | Height: | Size: 397 B |
After Width: | Height: | Size: 397 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 335 B |
After Width: | Height: | Size: 335 B |
After Width: | Height: | Size: 322 B |
After Width: | Height: | Size: 322 B |
After Width: | Height: | Size: 369 B |
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 334 B |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 341 B |
After Width: | Height: | Size: 421 B |
After Width: | Height: | Size: 391 B |
After Width: | Height: | Size: 391 B |
After Width: | Height: | Size: 391 B |
After Width: | Height: | Size: 411 B |
After Width: | Height: | Size: 411 B |
After Width: | Height: | Size: 365 B |
After Width: | Height: | Size: 408 B |
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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>")
|
||||
|
|