comment hexcodes of colors

This commit is contained in:
Gwenhael Le Moine 2024-09-05 16:23:46 +02:00
parent 1fdcd0679b
commit 976b23aa78
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

208
src/ui.c
View file

@ -143,8 +143,8 @@ letter_t small_font[ 128 ] = {
color_t colors_sx[ NB_COLORS ] = {
{
.name = "white",
.r = 255,
.name = "white", /* #ffffff */
.r = 255,
.g = 255,
.b = 255,
.a = 255,
@ -152,8 +152,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 255,
},
{
.name = "left",
.r = 255,
.name = "left", /* #ffa600 */
.r = 255,
.g = 166,
.b = 0,
.a = 255,
@ -161,8 +161,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 230,
},
{
.name = "right",
.r = 0,
.name = "right", /* #00d2ff */
.r = 0,
.g = 210,
.b = 255,
.a = 255,
@ -170,8 +170,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 169,
},
{
.name = "but_top",
.r = 109,
.name = "but_top", /* #6d5d5d */
.r = 109,
.g = 93,
.b = 93,
.a = 255,
@ -179,8 +179,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 91,
},
{
.name = "button",
.r = 90,
.name = "button", /* #5a4d4d */
.r = 90,
.g = 77,
.b = 77,
.a = 255,
@ -188,8 +188,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 81,
},
{
.name = "but_bot",
.r = 76,
.name = "but_bot", /* #4c4141 */
.r = 76,
.g = 65,
.b = 65,
.a = 255,
@ -197,8 +197,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 69,
},
{
.name = "lcd_col",
.r = 202,
.name = "lcd_col", /* #cadd5c */
.r = 202,
.g = 221,
.b = 92,
.a = 255,
@ -206,8 +206,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 205,
},
{
.name = "pix_col",
.r = 0,
.name = "pix_col", /* #000080 */
.r = 0,
.g = 0,
.b = 128,
.a = 255,
@ -215,8 +215,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 20,
},
{
.name = "pad_top",
.r = 109,
.name = "pad_top", /* #6d4e4e */
.r = 109,
.g = 78,
.b = 78,
.a = 255,
@ -224,8 +224,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 88,
},
{
.name = "pad",
.r = 90,
.name = "pad", /* #5a4040 */
.r = 90,
.g = 64,
.b = 64,
.a = 255,
@ -233,8 +233,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 73,
},
{
.name = "pad_bot",
.r = 76,
.name = "pad_bot", /* #4c3636 */
.r = 76,
.g = 54,
.b = 54,
.a = 255,
@ -242,8 +242,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 60,
},
{
.name = "disp_pad_top",
.r = 155,
.name = "disp_pad_top", /* #9b7654 */
.r = 155,
.g = 118,
.b = 84,
.a = 255,
@ -251,8 +251,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 124,
},
{
.name = "disp_pad",
.r = 124,
.name = "disp_pad", /* #7c5e43 */
.r = 124,
.g = 94,
.b = 67,
.a = 255,
@ -260,8 +260,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 99,
},
{
.name = "disp_pad_bot",
.r = 100,
.name = "disp_pad_bot", /* #644b35 */
.r = 100,
.g = 75,
.b = 53,
.a = 255,
@ -269,8 +269,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 79,
},
{
.name = "logo",
.r = 204,
.name = "logo", /* #cca96b */
.r = 204,
.g = 169,
.b = 107,
.a = 255,
@ -278,8 +278,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 172,
},
{
.name = "logo_back",
.r = 64,
.name = "logo_back", /* #404040 */
.r = 64,
.g = 64,
.b = 64,
.a = 255,
@ -287,8 +287,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 65,
},
{
.name = "label",
.r = 202,
.name = "label", /* #cab890 */
.r = 202,
.g = 184,
.b = 144,
.a = 255,
@ -296,8 +296,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 185,
},
{
.name = "frame",
.r = 0,
.name = "frame", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 255,
@ -305,8 +305,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 0,
},
{
.name = "underlay",
.r = 60,
.name = "underlay", /* #3c2a2a */
.r = 60,
.g = 42,
.b = 42,
.a = 255,
@ -314,8 +314,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 48,
},
{
.name = "black",
.r = 0,
.name = "black", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 255,
@ -323,8 +323,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 0,
},
{
.name = "transparent",
.r = 0,
.name = "transparent", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 0,
@ -335,8 +335,8 @@ color_t colors_sx[ NB_COLORS ] = {
color_t colors_gx[ NB_COLORS ] = {
{
.name = "white",
.r = 255,
.name = "white", /* #FFFFFF */
.r = 255,
.g = 255,
.b = 255,
.a = 255,
@ -344,8 +344,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 255,
},
{
.name = "left",
.r = 255,
.name = "left", /* #ffbaff */
.r = 255,
.g = 186,
.b = 255,
.a = 255,
@ -353,8 +353,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 220,
},
{
.name = "right",
.r = 0,
.name = "right", /* #00ffcc */
.r = 0,
.g = 255,
.b = 204,
.a = 255,
@ -362,8 +362,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 169,
},
{
.name = "but_top",
.r = 104,
.name = "but_top", /* #646464 */
.r = 104,
.g = 104,
.b = 104,
.a = 255,
@ -371,8 +371,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "button",
.r = 88,
.name = "button", /* #585858 */
.r = 88,
.g = 88,
.b = 88,
.a = 255,
@ -380,8 +380,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 88,
},
{
.name = "but_bot",
.r = 74,
.name = "but_bot", /* #4a4a4a */
.r = 74,
.g = 74,
.b = 74,
.a = 255,
@ -389,8 +389,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 74,
},
{
.name = "lcd_col",
.r = 202,
.name = "lcd_col", /* #cadd5c */
.r = 202,
.g = 221,
.b = 92,
.a = 255,
@ -398,8 +398,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 205,
},
{
.name = "pix_col",
.r = 0,
.name = "pix_col", /* #000080 */
.r = 0,
.g = 0,
.b = 128,
.a = 255,
@ -407,8 +407,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 20,
},
{
.name = "pad_top",
.r = 88,
.name = "pad_top", /* #585858 */
.r = 88,
.g = 88,
.b = 88,
.a = 255,
@ -416,8 +416,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 88,
},
{
.name = "pad",
.r = 74,
.name = "pad", /* #4a4a4a */
.r = 74,
.g = 74,
.b = 74,
.a = 255,
@ -425,8 +425,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 74,
},
{
.name = "pad_bot",
.r = 64,
.name = "pad_bot", /* #404040 */
.r = 64,
.g = 64,
.b = 64,
.a = 255,
@ -434,8 +434,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 64,
},
{
.name = "disp_pad_top",
.r = 128,
.name = "disp_pad_top", /* #808080 */
.r = 128,
.g = 128,
.b = 138,
.a = 255,
@ -443,8 +443,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 128,
},
{
.name = "disp_pad",
.r = 104,
.name = "disp_pad", /* #68686E */
.r = 104,
.g = 104,
.b = 110,
.a = 255,
@ -452,8 +452,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "disp_pad_bot",
.r = 84,
.name = "disp_pad_bot", /* #54545a */
.r = 84,
.g = 84,
.b = 90,
.a = 255,
@ -461,8 +461,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 84,
},
{
.name = "logo",
.r = 176,
.name = "logo", /* #b0b0b8 */
.r = 176,
.g = 176,
.b = 184,
.a = 255,
@ -470,8 +470,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 176,
},
{
.name = "logo_back",
.r = 104,
.name = "logo_back", /* #68686e */
.r = 104,
.g = 104,
.b = 110,
.a = 255,
@ -479,8 +479,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "label",
.r = 240,
.name = "label", /* #f0f0f0 */
.r = 240,
.g = 240,
.b = 240,
.a = 255,
@ -488,8 +488,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 240,
},
{
.name = "frame",
.r = 0,
.name = "frame", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 255,
@ -497,8 +497,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 0,
},
{
.name = "underlay",
.r = 104,
.name = "underlay", /* #68686e */
.r = 104,
.g = 104,
.b = 110,
.a = 255,
@ -506,8 +506,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "black",
.r = 0,
.name = "black", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 255,
@ -515,8 +515,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 0,
},
{
.name = "transparent",
.r = 0,
.name = "transparent", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 0,
@ -1818,9 +1818,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "SOLVE",
.is_menu = 1,
.right = "SOLVE",
.right = 0,
.sub = 0 },
{.name = "8",
.x = 120,
@ -1834,9 +1834,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "PLOT",
.is_menu = 1,
.right = "PLOT",
.right = 0,
.sub = 0 },
{.name = "9",
.x = 180,
@ -1850,9 +1850,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "SYMBOLIC",
.is_menu = 1,
.right = "SYMBOLIC",
.right = 0,
.sub = 0 },
{.name = "DIV",
.x = 240,
@ -1899,9 +1899,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "TIME",
.is_menu = 1,
.right = "TIME",
.right = 0,
.sub = 0 },
{.name = "5",
.x = 120,
@ -1915,9 +1915,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "STAT",
.is_menu = 1,
.right = "STAT",
.right = 0,
.sub = 0 },
{.name = "6",
.x = 180,
@ -1931,9 +1931,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "UNITS",
.is_menu = 1,
.right = "UNITS",
.right = 0,
.sub = 0 },
{.name = "MUL",
.x = 240,
@ -1964,9 +1964,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = shr_height,
.lb = shr_bitmap,
.letter = 0,
.left = 0,
.left = " ",
.is_menu = 1,
.right = " ",
.right = 0,
.sub = 0 },
{.name = "1",
.x = 60,
@ -1980,9 +1980,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "I/O",
.is_menu = 1,
.right = "I/O",
.right = 0,
.sub = 0 },
{.name = "2",
.x = 120,
@ -1996,9 +1996,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "LIBRARY",
.is_menu = 1,
.right = "LIBRARY",
.right = 0,
.sub = 0 },
{.name = "3",
.x = 180,
@ -2012,9 +2012,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lh = 0,
.lb = 0,
.letter = 0,
.left = 0,
.left = "EQ LIB",
.is_menu = 1,
.right = "EQ LIB",
.right = 0,
.sub = 0 },
{.name = "MINUS",
.x = 240,