Add colors utilities

Local function get_base_color(), conversions hex <=> rgb, rgb color mixer, and global function get_color()
This commit is contained in:
Athozus 2023-11-05 16:30:56 +01:00
parent 2111db2ff9
commit 0b3497eb2f
No known key found for this signature in database
GPG key ID: B50895022E8484BF
15 changed files with 80 additions and 39 deletions

View file

@ -23,7 +23,7 @@ function mail.show_settings(name)
tablecolumns[text]
table[0,0.775;3,4.5;groups;]] .. groups_str .. [[;]] .. group_index .. [[]
box[3.5,0.8;3,0.45;]] .. mail.colors.highlighted .. [[]
box[3.5,0.8;3,0.45;]] .. mail.get_color("H") .. [[]
label[3.7,0.8;]] .. mail.settings_groups[group_index].label .. [[]
button[0,5.65;2.5,0.5;reset;]] .. S("Reset") .. [[]