mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 11:43:16 -04:00
plugins: text viewer: use SBS title
Take advantage of skinned status bar title, instead of displaying a custom header that reduces space for content. A custom header will still be displayed if the SBS doesn't come with its own title, such as on the default theme, or if the status bar has been turned off in Text Viewer's settings. Change-Id: I14c8d9a61acf338d09d7f54947399e8692987a7b
This commit is contained in:
parent
1fd45d23a0
commit
8c9f70de82
7 changed files with 51 additions and 3 deletions
|
|
@ -870,6 +870,7 @@ static const struct plugin_api rockbox_api = {
|
|||
gesture_vel_get,
|
||||
#endif
|
||||
strstr,
|
||||
sb_set_title_text,
|
||||
};
|
||||
|
||||
static int plugin_buffer_handle;
|
||||
|
|
@ -889,6 +890,7 @@ int plugin_load(const char* plugin, const void* parameter)
|
|||
bool theme_enabled = sepch && (!strcmp("properties.rock", sepch + 1) ||
|
||||
!strcmp("playing_time.rock", sepch + 1) ||
|
||||
!strcmp("main_menu_config.rock", sepch + 1) ||
|
||||
!strcmp("text_viewer.rock", sepch + 1) ||
|
||||
!strcmp("disktidy.rock", sepch + 1));
|
||||
|
||||
if (current_plugin_handle)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue