forked from len0rd/rockbox
FS#10824 - viewport/statusbar API rework.
Hopefully the only user visible changes are: - fm and recording screens go by the statusbar setting (sbs or inbuilt) - plugins go back to using the theme as they should for menus and lists - splash screens might get cut a bit... entirely theme and splash dependant.. if there is a problematic one we can look at it later. - hopefully nothing more than very minor screen flickerings... let me know exactly where they are so they can be fixed New GUI screen rules: * Screens assume that the theme (sbs+ui viewport+ maybe background image) are always enabled. They may be disabled on a per display basis, but MUST be re-enabled on exit * Screens must not be coded in a way that requires a statusbar of any type.. the inbuilt bar will be removed shortly. ALWAYS RESPECT THE USERS SETTINGS unless the screen requires the full display to fit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23904 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
85aad9b397
commit
b2eb44ce0e
24 changed files with 292 additions and 426 deletions
|
|
@ -822,14 +822,17 @@ static const char* simplelist_static_getname(int item,
|
|||
bool simplelist_show_list(struct simplelist_info *info)
|
||||
{
|
||||
struct gui_synclist lists;
|
||||
int action, old_line_count = simplelist_line_count;
|
||||
int oldbars = viewportmanager_set_statusbar(VP_SB_ALLSCREENS);
|
||||
int action, old_line_count = simplelist_line_count, i;
|
||||
const char* (*getname)(int item, void * data, char *buffer, size_t buffer_len);
|
||||
int wrap = LIST_WRAP_UNLESS_HELD;
|
||||
if (info->get_name)
|
||||
getname = info->get_name;
|
||||
else
|
||||
getname = simplelist_static_getname;
|
||||
|
||||
FOR_NB_SCREENS(i)
|
||||
viewportmanager_theme_enable(i, true, NULL);
|
||||
|
||||
gui_synclist_init(&lists, getname, info->callback_data,
|
||||
info->scroll_all, info->selection_size, NULL);
|
||||
|
||||
|
|
@ -904,7 +907,8 @@ bool simplelist_show_list(struct simplelist_info *info)
|
|||
return true;
|
||||
}
|
||||
talk_shutup();
|
||||
viewportmanager_set_statusbar(oldbars);
|
||||
FOR_NB_SCREENS(i)
|
||||
viewportmanager_theme_undo(i);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue