default style for files

This commit is contained in:
root committed 2026-10-13 16:25:23 +02:00
1 parent 95fc4dec6a
commit dfd525bed2
2 files changed
+12 -5

No files matched your search

+6 -2
View File
@@ -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
+6 -3
View File
@@ -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 )