colors fiddling; -TRANSPARENT

This commit is contained in:
Gwenhael Le Moine 2024-09-06 22:43:24 +02:00
parent 36c1f9b607
commit 4d69ed3425
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 142 additions and 120 deletions

138
src/ui.c
View file

@ -143,7 +143,8 @@ letter_t small_font[ 128 ] = {
color_t colors_sx[ NB_COLORS ] = {
{
.name = "white", /* #ffffff */
/* #ffffff */
.name = "white",
.r = 255,
.g = 255,
.b = 255,
@ -152,7 +153,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 255,
},
{
.name = "left", /* #ffa600 */
/* #ffa600 */
.name = "left",
.r = 255,
.g = 166,
.b = 0,
@ -161,7 +163,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 230,
},
{
.name = "right", /* #00d2ff */
/* #00d2ff */
.name = "right",
.r = 0,
.g = 210,
.b = 255,
@ -170,7 +173,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 169,
},
{
.name = "but_top", /* #6d5d5d */
/* #6d5d5d */
.name = "but_top",
.r = 109,
.g = 93,
.b = 93,
@ -179,7 +183,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 91,
},
{
.name = "button", /* #5a4d4d */
/* #5a4d4d */
.name = "button",
.r = 90,
.g = 77,
.b = 77,
@ -188,7 +193,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 81,
},
{
.name = "but_bot", /* #4c4141 */
/* #4c4141 */
.name = "but_bot",
.r = 76,
.g = 65,
.b = 65,
@ -197,7 +203,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 69,
},
{
.name = "lcd_col", /* #cadd5c */
/* #cadd5c */
.name = "lcd_col",
.r = 202,
.g = 221,
.b = 92,
@ -206,7 +213,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 205,
},
{
.name = "pix_col", /* #000080 */
/* #000080 */
.name = "pix_col",
.r = 0,
.g = 0,
.b = 128,
@ -215,7 +223,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 20,
},
{
.name = "pad_top", /* #6d4e4e */
/* #6d4e4e */
.name = "pad_top",
.r = 109,
.g = 78,
.b = 78,
@ -224,7 +233,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 88,
},
{
.name = "pad", /* #5a4040 */
/* #5a4040 */
.name = "pad",
.r = 90,
.g = 64,
.b = 64,
@ -233,7 +243,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 73,
},
{
.name = "pad_bot", /* #4c3636 */
/* #4c3636 */
.name = "pad_bot",
.r = 76,
.g = 54,
.b = 54,
@ -242,7 +253,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 60,
},
{
.name = "disp_pad_top", /* #9b7654 */
/* #9b7654 */
.name = "disp_pad_top",
.r = 155,
.g = 118,
.b = 84,
@ -251,7 +263,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 124,
},
{
.name = "disp_pad", /* #7c5e43 */
/* #7c5e43 */
.name = "disp_pad",
.r = 124,
.g = 94,
.b = 67,
@ -260,7 +273,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 99,
},
{
.name = "disp_pad_bot", /* #644b35 */
/* #644b35 */
.name = "disp_pad_bot",
.r = 100,
.g = 75,
.b = 53,
@ -269,7 +283,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 79,
},
{
.name = "logo", /* #cca96b */
/* #cca96b */
.name = "logo",
.r = 204,
.g = 169,
.b = 107,
@ -278,7 +293,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 172,
},
{
.name = "logo_back", /* #404040 */
/* #404040 */
.name = "logo_back",
.r = 64,
.g = 64,
.b = 64,
@ -287,7 +303,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 65,
},
{
.name = "label", /* #cab890 */
/* #cab890 */
.name = "label",
.r = 202,
.g = 184,
.b = 144,
@ -296,7 +313,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 185,
},
{
.name = "frame", /* #000000 */
/* #000000 */
.name = "frame",
.r = 0,
.g = 0,
.b = 0,
@ -305,7 +323,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 0,
},
{
.name = "underlay", /* #3c2a2a */
/* #3c2a2a */
.name = "underlay",
.r = 60,
.g = 42,
.b = 42,
@ -314,7 +333,8 @@ color_t colors_sx[ NB_COLORS ] = {
.gray_rgb = 48,
},
{
.name = "black", /* #000000 */
/* #000000 */
.name = "black",
.r = 0,
.g = 0,
.b = 0,
@ -322,20 +342,12 @@ color_t colors_sx[ NB_COLORS ] = {
.mono_rgb = 0,
.gray_rgb = 0,
},
{
.name = "transparent", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 0,
.mono_rgb = 0,
.gray_rgb = 0,
},
};
color_t colors_gx[ NB_COLORS ] = {
{
.name = "white", /* #FFFFFF */
/* #FFFFFF */
.name = "white",
.r = 255,
.g = 255,
.b = 255,
@ -344,7 +356,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 255,
},
{
.name = "left", /* #ffbaff */
/* #ffbaff */
.name = "left",
.r = 255,
.g = 186,
.b = 255,
@ -353,7 +366,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 220,
},
{
.name = "right", /* #00ffcc */
/* #00ffcc */
.name = "right",
.r = 0,
.g = 255,
.b = 204,
@ -362,7 +376,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 169,
},
{
.name = "but_top", /* #646464 */
/* #646464 */
.name = "but_top",
.r = 104,
.g = 104,
.b = 104,
@ -371,7 +386,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "button", /* #585858 */
/* #585858 */
.name = "button",
.r = 88,
.g = 88,
.b = 88,
@ -380,7 +396,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 88,
},
{
.name = "but_bot", /* #4a4a4a */
/* #4a4a4a */
.name = "but_bot",
.r = 74,
.g = 74,
.b = 74,
@ -389,7 +406,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 74,
},
{
.name = "lcd_col", /* #cadd5c */
/* #cadd5c */
.name = "lcd_col",
.r = 202,
.g = 221,
.b = 92,
@ -398,7 +416,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 205,
},
{
.name = "pix_col", /* #000080 */
/* #000080 */
.name = "pix_col",
.r = 0,
.g = 0,
.b = 128,
@ -407,7 +426,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 20,
},
{
.name = "pad_top", /* #585858 */
/* #585858 */
.name = "pad_top",
.r = 88,
.g = 88,
.b = 88,
@ -416,7 +436,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 88,
},
{
.name = "pad", /* #4a4a4a */
/* #4a4a4a */
.name = "pad",
.r = 74,
.g = 74,
.b = 74,
@ -425,7 +446,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 74,
},
{
.name = "pad_bot", /* #404040 */
/* #404040 */
.name = "pad_bot",
.r = 64,
.g = 64,
.b = 64,
@ -434,7 +456,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 64,
},
{
.name = "disp_pad_top", /* #808080 */
/* #808080 */
.name = "disp_pad_top",
.r = 128,
.g = 128,
.b = 138,
@ -443,7 +466,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 128,
},
{
.name = "disp_pad", /* #68686E */
/* #68686E */
.name = "disp_pad",
.r = 104,
.g = 104,
.b = 110,
@ -452,7 +476,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "disp_pad_bot", /* #54545a */
/* #54545a */
.name = "disp_pad_bot",
.r = 84,
.g = 84,
.b = 90,
@ -461,7 +486,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 84,
},
{
.name = "logo", /* #b0b0b8 */
/* #b0b0b8 */
.name = "logo",
.r = 176,
.g = 176,
.b = 184,
@ -470,7 +496,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 176,
},
{
.name = "logo_back", /* #68686e */
/* #68686e */
.name = "logo_back",
.r = 104,
.g = 104,
.b = 110,
@ -479,7 +506,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "label", /* #f0f0f0 */
/* #f0f0f0 */
.name = "label",
.r = 240,
.g = 240,
.b = 240,
@ -488,7 +516,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 240,
},
{
.name = "frame", /* #000000 */
/* #000000 */
.name = "frame",
.r = 0,
.g = 0,
.b = 0,
@ -497,7 +526,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 0,
},
{
.name = "underlay", /* #68686e */
/* #68686e */
.name = "underlay",
.r = 104,
.g = 104,
.b = 110,
@ -506,7 +536,8 @@ color_t colors_gx[ NB_COLORS ] = {
.gray_rgb = 104,
},
{
.name = "black", /* #000000 */
/* #000000 */
.name = "black",
.r = 0,
.g = 0,
.b = 0,
@ -514,15 +545,6 @@ color_t colors_gx[ NB_COLORS ] = {
.mono_rgb = 0,
.gray_rgb = 0,
},
{
.name = "transparent", /* #000000 */
.r = 0,
.g = 0,
.b = 0,
.a = 0,
.mono_rgb = 0,
.gray_rgb = 0,
},
};
button_t buttons_sx[ NB_KEYS ] = {

View file

@ -4,30 +4,30 @@
#include "emulator.h"
// Colors
#define WHITE 0
#define LEFT 1
#define RIGHT 2
#define BUT_TOP 3
#define BUTTON 4
#define BUT_BOT 5
#define LCD 6
#define PIXEL 7
#define PAD_TOP 8
#define PAD 9
#define PAD_BOT 10
#define DISP_PAD_TOP 11
#define DISP_PAD 12
#define DISP_PAD_BOT 13
#define LOGO 14
#define LOGO_BACK 15
#define LABEL 16
#define FRAME 17
#define UNDERLAY 18
#define BLACK 19
#define TRANSPARENT 20
/* SX GX */
#define WHITE 0 /* #ffffff #ffffff */
#define LEFT 1 /* #ffa600 #ffbaff */
#define RIGHT 2 /* #00d2ff #00ffcc */
#define BUT_TOP 3 /* #6d5d5d #646464 */
#define BUTTON 4 /* #5a4d4d #585858 */
#define BUT_BOT 5 /* #4c4141 #4a4a4a */
#define LCD 6 /* #cadd5c #cadd5c */
#define PIXEL 7 /* #000080 #000080 */
#define PAD_TOP 8 /* #6d4e4e #585858 */
#define PAD 9 /* #5a4040 #4a4a4a */
#define PAD_BOT 10 /* #4c3636 #404040 */
#define DISP_PAD_TOP 11 /* #9b7654 #808080 */
#define DISP_PAD 12 /* #7c5e43 #68686e */
#define DISP_PAD_BOT 13 /* #644b35 #54545a */
#define LOGO 14 /* #cca96b #b0b0b8 */
#define LOGO_BACK 15 /* #404040 #68686e */
#define LABEL 16 /* #cab890 #f0f0f0 */
#define FRAME 17 /* #000000 #000000 */
#define UNDERLAY 18 /* #3c2a2a #68686e */
#define BLACK 19 /* #000000 #000000 */
#define FIRST_COLOR WHITE
#define LAST_COLOR TRANSPARENT
#define LAST_COLOR BLACK
#define NB_COLORS ( LAST_COLOR + 1 )
/***********/