mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2025-06-03 01:15:15 +02:00
jfileselect: improve for fx-CP (hide AutoImport, more padding on items)
This commit is contained in:
parent
5d3a6639ee
commit
bd89221d33
2 changed files with 5 additions and 3 deletions
|
@ -21,7 +21,7 @@ static int jfileselect_type_id = -1;
|
|||
# define JFILESELECT_SCROLLBAR_WIDTH 1
|
||||
# define JFILESELECT_INFO_SHORT 1
|
||||
#elif GINT_RENDER_RGB
|
||||
# define JFILESELECT_LINE_SPACING 4
|
||||
# define JFILESELECT_LINE_SPACING (J_CONFIG_TOUCH ? 6 : 4)
|
||||
# define JFILESELECT_SCROLLBAR_WIDTH 2
|
||||
# define JFILESELECT_INFO_SHORT 0
|
||||
#endif
|
||||
|
@ -353,6 +353,8 @@ bool jfileselect_default_filter(struct dirent const *ent)
|
|||
return false;
|
||||
if(!strcmp(ent->d_name, "SAVE-F"))
|
||||
return false;
|
||||
if(!strcmp(ent->d_name, "AutoImport"))
|
||||
return false;
|
||||
if(!strcmp(ent->d_name, "."))
|
||||
return false;
|
||||
if(!strcmp(ent->d_name, ".."))
|
||||
|
@ -360,7 +362,7 @@ bool jfileselect_default_filter(struct dirent const *ent)
|
|||
return true;
|
||||
}
|
||||
|
||||
static void jfileselect_select(jfileselect *fs, int index)
|
||||
GUNUSED static void jfileselect_select(jfileselect *fs, int index)
|
||||
{
|
||||
/* Normalize out-of-bounds to -1 */
|
||||
if(index < 0 || index >= fs->entry_count)
|
||||
|
|
|
@ -167,7 +167,7 @@ jrect jlist_selected_region(jlist *l)
|
|||
// Polymorphic widget operations
|
||||
//---
|
||||
|
||||
static int item_index_at(void *l0, int ly)
|
||||
GUNUSED static int item_index_at(void *l0, int ly)
|
||||
{
|
||||
jlist *l = l0;
|
||||
int y = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue