1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-09 13:41:45 +00:00

Change color to white

This commit is contained in:
Such Meme, Many Skill 2019-08-15 22:23:56 +02:00
parent a190a07016
commit 5dc063d301
4 changed files with 8 additions and 7 deletions

View file

@ -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);

View file

@ -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();
}

View file

@ -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) {}

View file

@ -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;