light refactoring

This commit is contained in:
root committed 2026-10-08 21:48:35 +02:00
1 parent 4a8132c0b1
commit 5b1b974ac7
6 files changed
+97 -137

No files matched your search

+15 -15
View File
@@ -5,21 +5,21 @@
/* -- colour and style configuration */
// additional information
// #define PERM_STYLE_NUM ( ( int )1 )
// const style_t permission_style[ PERM_STYLE_NUM ] = { style_none };
// const uint32_t permission_colour = 0xEEEEEE;
//
// #define DATE_STYLE_NUM ( ( int )1 )
// const style_t date_style[ DATE_STYLE_NUM ] = { style_none };
// const uint32_t date_colour = 0xEEEEEE;
//
// #define TYPE_STYLE_NUM ( ( int )1 )
// const style_t type_style[ TYPE_STYLE_NUM ] = { style_none };
// const uint32_t type_colour = 0xEEEEEE;
//
// #define SIZE_STYLE_NUM ( ( int )1 )
// const style_t size_style[ SIZE_STYLE_NUM ] = { style_none };
// const uint32_t size_colour = 0xEEEEEE;
#define PERM_STYLE_NUM ( ( int )1 )
const style_t permission_style[ PERM_STYLE_NUM ] = { style_none };
const uint32_t permission_colour = 0xD0D0D0;
#define DATE_STYLE_NUM ( ( int )1 )
const style_t date_style[ DATE_STYLE_NUM ] = { style_none };
const uint32_t date_colour = 0xEEEEEE;
#define TYPE_STYLE_NUM ( ( int )1 )
const style_t type_style[ TYPE_STYLE_NUM ] = { style_none };
const uint32_t type_colour = 0x886699;
#define SIZE_STYLE_NUM ( ( int )1 )
const style_t size_style[ SIZE_STYLE_NUM ] = { style_none };
const uint32_t size_colour = 0xA3BCF5;
// files by type
#define BLK_STYLE_NUM ( ( int )1 )
+5 -5
View File
@@ -3,10 +3,10 @@
#include "type_definitions.h"
void display_link_target(const directory_entry_t* const entry);
void set_type_style( const directory_entry_t* const entry );
void reset_type_style( const directory_entry_t* const entry );
void set_file_style( const directory_entry_t* const entry );
void reset_file_style( const directory_entry_t* const entry );
void display_type( char type );
void display_permissions( const char* const permissions );
void display_size( const char* const size );
void display_entry( const directory_entry_t* const entry );
void display_link_target( const directory_entry_t* const entry );
#endif
+2 -4
View File
@@ -38,9 +38,7 @@ extern const uint8_t STYLE_RESET[ NUMBER_STYLES ];
void format_clear( void );
void format_set_style( const style_t* const styles, uint8_t number_styles );
void format_reset_style( const style_t* const styles, uint8_t number_styles );
void format_set_fg_colour( uint32_t colour );
void format_set_bg_colour( uint32_t colour );
void format_clear_fg_colour( void );
void format_clear_bg_colour( void );
void format_set_colour( uint32_t colour );
void format_clear_colour( void );
#endif