A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

plugins: properties: make file info displayable in fullscreen

Extend functionality for displaying info in fullscreen
to folders or files that aren't audio tracks (e.g., to
display the full length of a file name)

Change-Id: I73617e2fd7c291a3c49ddd1b108e418cf069d179

+27 -4
+27 -4
apps/plugins/properties.c
··· 187 187 continue; 188 188 switch(button) 189 189 { 190 - case ACTION_STD_OK: 190 + case ACTION_STD_OK:; 191 + int sel_pos = rb->gui_synclist_get_sel_pos(&properties_lists); 192 + 193 + /* "Show Track Info..." selected? */ 191 194 if ((props_type == PROPS_PLAYLIST || props_type == PROPS_DIR) && 192 - rb->gui_synclist_get_sel_pos(&properties_lists) 193 - == (props_type == PROPS_DIR ? 194 - ARRAY_SIZE(props_dir) : ARRAY_SIZE(props_file)) - 2) 195 + sel_pos == (props_type == PROPS_DIR ? 196 + ARRAY_SIZE(props_dir) : ARRAY_SIZE(props_file)) - 2) 195 197 return -1; 198 + else 199 + { 200 + /* Display field in fullscreen */ 201 + FOR_NB_SCREENS(i) 202 + rb->viewportmanager_theme_enable(i, false, NULL); 203 + if (props_type == PROPS_DIR) 204 + view_text((char *) p2str(props_dir[sel_pos]), 205 + (char *) props_dir[sel_pos + 1]); 206 + else 207 + view_text((char *) p2str(props_file[sel_pos]), 208 + (char *) props_file[sel_pos + 1]); 209 + FOR_NB_SCREENS(i) 210 + rb->viewportmanager_theme_undo(i, false); 211 + 212 + rb->gui_synclist_set_title(&properties_lists, 213 + rb->str(props_type == PROPS_DIR ? 214 + LANG_PROPERTIES_DIRECTORY_PROPERTIES : 215 + LANG_PROPERTIES_FILE_PROPERTIES), 216 + NOICON); 217 + rb->gui_synclist_draw(&properties_lists); 218 + } 196 219 break; 197 220 case ACTION_STD_CANCEL: 198 221 return 0;