diff --git a/source/meme/graphics.c b/source/meme/graphics.c index ada0e5f..bc51391 100644 --- a/source/meme/graphics.c +++ b/source/meme/graphics.c @@ -24,9 +24,9 @@ void _printwithhighlight(int offset, int folderamount, char *items[], int highli gfx_con_setpos(0, 32); while(i < folderamount && i < 76){ ret = _copystring(temp, items[i + offset], 39); - if(i == highlight - 1) gfx_printf("\n%k%p%s%k%p", COLOR_DEFAULT, COLOR_GREEN, temp, COLOR_GREEN, COLOR_DEFAULT); + if(i == highlight - 1) gfx_printf("\n%k%p%s%k%p", COLOR_DEFAULT, COLOR_WHITE, temp, COLOR_WHITE, COLOR_DEFAULT); else gfx_printf("\n%s", temp); - + while(ret >= 0){ gfx_printf(" "); ret = ret - 1; @@ -47,7 +47,7 @@ int fileexplorergui(char *items[], unsigned int *muhbits, const char path[], int char temp[43]; gfx_con_setpos(0, 16); _copystring(temp, path, 43); - gfx_printf("%k%s\n%k", COLOR_ORANGE, temp, COLOR_GREEN); + gfx_printf("%k%s\n%k", COLOR_GREEN, temp, COLOR_WHITE); while(1){ if (change){ _printwithhighlight(offset, folderamount, items, select, muhbits); diff --git a/source/meme/main.c b/source/meme/main.c index 0214331..4795c02 100644 --- a/source/meme/main.c +++ b/source/meme/main.c @@ -27,7 +27,7 @@ void meme_main(){ sdexplorer(itemsinfolder, muhbits); - gfx_printf("\n\nExited main loop, vol+ to reboot to rcm\nvol- to reboot normally\npower to power off"); + gfx_printf("%k\n\nExited main loop, vol+ to reboot to rcm\nvol- to reboot normally\npower to power off", COLOR_GREEN); utils_waitforpower(); } \ No newline at end of file diff --git a/source/meme/mainfunctions.c b/source/meme/mainfunctions.c index e372d86..4ed8338 100644 --- a/source/meme/mainfunctions.c +++ b/source/meme/mainfunctions.c @@ -12,13 +12,13 @@ void sdexplorer(char *items[], unsigned int *muhbits){ int value = 1; int folderamount = 0; char path[255] = "sd:/"; - static const u32 colors[7] = {COLOR_RED, COLOR_ORANGE, COLOR_YELLOW, COLOR_GREEN, COLOR_BLUE, COLOR_VIOLET, COLOR_DEFAULT}; + //static const u32 colors[8] = {COLOR_RED, COLOR_ORANGE, COLOR_YELLOW, COLOR_GREEN, COLOR_BLUE, COLOR_VIOLET, COLOR_DEFAULT, COLOR_WHITE}; while(1){ gfx_clear_grey(0x1B); gfx_con_setpos(0, 0); - gfx_box(0, 0, 719, 15, COLOR_GREEN); + gfx_box(0, 0, 719, 15, COLOR_WHITE); folderamount = readfolder(items, muhbits, path); - gfx_printf("%k%pTegraExplorer, made by SuchMeme %d\n%k%p", colors[6], colors[3], folderamount - 2, colors[3], colors[6]); + gfx_printf("%k%pTegraExplorer, made by SuchMeme %d\n%k%p", COLOR_DEFAULT, COLOR_WHITE, folderamount - 2, COLOR_WHITE, COLOR_DEFAULT); value = fileexplorergui(items, muhbits, path, folderamount); if (value == 1) {} diff --git a/source/utils/types.h b/source/utils/types.h index 552616f..3721a1e 100644 --- a/source/utils/types.h +++ b/source/utils/types.h @@ -46,6 +46,7 @@ #define COLOR_BLUE 0xFF00DDFF #define COLOR_VIOLET 0xFF8040FF #define COLOR_DEFAULT 0xFF1B1B1B +#define COLOR_WHITE 0xFFFFFFFF typedef signed char s8; typedef short s16;