mail/ui
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
..
about.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
compose.lua Add message id in player selections storage (fix #110, fix #114) 2023-10-16 20:32:06 +02:00
contacts.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
drafts.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
edit_contact.lua Fix strings (translations and checks) 2023-05-05 13:13:09 +02:00
edit_maillists.lua Remove duplicated variable 2023-05-20 20:29:00 +02:00
events.lua Do not call show_message() if selected message is empty (fix #115) 2023-10-24 00:33:14 +02:00
inbox.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
init.lua Quick restructuration of files (create sub-init.lua) 2023-07-20 00:50:10 +02:00
maillists.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
message.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
options.lua Add settings (#85) 2023-05-05 11:38:19 +02:00
outbox.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
receivers.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
select_contact.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
settings.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00
trash.lua Add colors utilities (#121) 2023-12-06 10:11:12 +01:00