* 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
* Add Indonesian translations
* Fix few strings for all translation files
* Update credits
---------
Co-authored-by: Athozus <athozus@gmail.com>
2023-12-05 22:31:40 +01:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
* 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>