Moves the `mail.get_setting(name, "mute_list")` call out of the message loop. Previously, this is called repeated, causing disastrous lag when using mail with beerchat.
* Optimize settings layout
* Optimize about layout
* Use codes for contributors list instead of overflowing texts
* Integrate version id in its translation string
Using @1 within the string
Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
* Use contributions labels instead of code
* Fix formspec syntax error
Missing ]
* Implement grouping by contribution type (#142)
* Implement grouping by contribution type
* minor
---------
Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
* 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
* Store globally settings (type and default value)
* Add settings groups
* Generate settings pages with global storage
Add saving, generate selection idxs from settings list, order settings via index value in each group of settings
* Rewrite setting store
No code change, only format
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Remove tabs from settings groups
Use spaces instead
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Use table.copy() minetest api function
* Better formatting for setting tooltip
Using inline instead of multiples lines to add tooltip attached to setting into formspec
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
---------
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>