diff --git a/inc/config.h b/inc/config.h index 8fdc988..d6f930a 100644 --- a/inc/config.h +++ b/inc/config.h @@ -64,11 +64,15 @@ const style_t makefile_style[ MAKE_STYLE_NUM ] = { style_bold, style_underlin const uint32_t makefile_colour = 0xEAE977; #define SRC_STYLE_NUM ( ( int )1 ) -const style_t source_style[ SRC_STYLE_NUM ] = { style_none }; +const style_t source_style[ SRC_STYLE_NUM ] = { style_bold }; const uint32_t source_colour = 0x6FADD8; #define AR_STYLE_NUM ( ( int )1 ) -const style_t archive_style[ AR_STYLE_NUM ] = { style_none }; +const style_t archive_style[ AR_STYLE_NUM ] = { style_bold }; const uint32_t archive_colour = 0xE02482; +#define OTH_STYLE_NUM ( ( int )1 ) +const style_t others_style[ OTH_STYLE_NUM ] = { style_none }; +const uint32_t others_colour = 0xFFFFFF; + #endif diff --git a/src/display.c b/src/display.c index 23dafc5..4bb1896 100644 --- a/src/display.c +++ b/src/display.c @@ -278,9 +278,7 @@ void set_file_style( const directory_entry_t* const entry ) format_set_style( &executable_style[ 0 ], EXEC_STYLE_NUM ); format_set_colour( executable_colour ); } - - // makefiles and readmes - if ( compare_makefile( entry ) ) + else if ( compare_makefile( entry ) ) { format_set_style( &makefile_style[ 0 ], MAKE_STYLE_NUM ); format_set_colour( makefile_colour ); @@ -295,6 +293,11 @@ void set_file_style( const directory_entry_t* const entry ) format_set_style( &source_style[ 0 ], SRC_STYLE_NUM ); format_set_colour( source_colour ); } + else + { + format_set_style( &others_style[ 0 ], OTH_STYLE_NUM ); + format_set_colour( others_colour ); + } } bool compare_makefile( const directory_entry_t* const entry )