mail/util
Athozus 3bad371353
Add colors utilities (#121)
* Add colors utilities

Local function get_base_color(), conversions hex <=> rgb, rgb color mixer, and global function get_color()

* Round numbers to avoid eventual float in string.format

* Simplify inbox/outbox mixing of color

Use a single if statement for each property and concatenate to displayed_color then execute mail.get_color(displayed_color) instead of making many combined if statements

* Convert 3-chars hex colors to 6-chars hex colors

Could break the code, the hex convert to rgb always run on 6-chars

* Rework color utility using tables

Instead of one-letter symbols, it now supports tables of identifiers or single strings
2023-12-06 10:11:12 +01:00
..
colors.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
contact.lua Add translation for "No contacts" (fix #107) 2023-07-06 19:03:42 +02:00
init.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
normalize.lua View sent messages (new database, add maillists) (#26) 2023-03-29 17:25:01 +02:00
normalize.spec.lua View sent messages (new database, add maillists) (#26) 2023-03-29 17:25:01 +02:00
time_ago.lua Add a tooltip for elapsed time since the delivery 2023-07-16 19:42:08 +02:00
uuid.lua View sent messages (new database, add maillists) (#26) 2023-03-29 17:25:01 +02:00
uuid.spec.lua View sent messages (new database, add maillists) (#26) 2023-03-29 17:25:01 +02:00