mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2025-06-06 05:25:10 +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_SCROLLBAR_WIDTH 1
|
||||||
# define JFILESELECT_INFO_SHORT 1
|
# define JFILESELECT_INFO_SHORT 1
|
||||||
#elif GINT_RENDER_RGB
|
#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_SCROLLBAR_WIDTH 2
|
||||||
# define JFILESELECT_INFO_SHORT 0
|
# define JFILESELECT_INFO_SHORT 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -353,6 +353,8 @@ bool jfileselect_default_filter(struct dirent const *ent)
|
||||||
return false;
|
return false;
|
||||||
if(!strcmp(ent->d_name, "SAVE-F"))
|
if(!strcmp(ent->d_name, "SAVE-F"))
|
||||||
return false;
|
return false;
|
||||||
|
if(!strcmp(ent->d_name, "AutoImport"))
|
||||||
|
return false;
|
||||||
if(!strcmp(ent->d_name, "."))
|
if(!strcmp(ent->d_name, "."))
|
||||||
return false;
|
return false;
|
||||||
if(!strcmp(ent->d_name, ".."))
|
if(!strcmp(ent->d_name, ".."))
|
||||||
|
@ -360,7 +362,7 @@ bool jfileselect_default_filter(struct dirent const *ent)
|
||||||
return true;
|
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 */
|
/* Normalize out-of-bounds to -1 */
|
||||||
if(index < 0 || index >= fs->entry_count)
|
if(index < 0 || index >= fs->entry_count)
|
||||||
|
|
|
@ -167,7 +167,7 @@ jrect jlist_selected_region(jlist *l)
|
||||||
// Polymorphic widget operations
|
// 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;
|
jlist *l = l0;
|
||||||
int y = 0;
|
int y = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue