simple_viewer: use UI viewport and SBS title

Also adjust scrollbar margins and height so it matches
the look of normal lists, and hide scrollbars when set
to SCROLLBAR_OFF.

Change-Id: I27f6de7b16cf5ec72e12c7d6377a8772d84947ac
This commit is contained in:
Christian Soffke 2026-04-28 05:36:12 +02:00 • committed by Solomon Peachy
parent 2d419b4b93
commit 7ab1a81806
5 changed files with 100 additions and 53 deletions

View file

@ -872,6 +872,9 @@ static const struct plugin_api rockbox_api = {
/* new stuff at the end, sort into place next time
the API gets incompatible */
panicf,
gui_synclist_scroll_stop,
add_event_ex,
remove_event_ex,
};
static int plugin_buffer_handle;
@ -892,6 +895,7 @@ int plugin_load(const char* plugin, const void* parameter)
!strcmp("playing_time.rock", sepch + 1) ||
!strcmp("main_menu_config.rock", sepch + 1) ||
!strcmp("text_viewer.rock", sepch + 1) ||
!strcmp("view_text.rock", sepch + 1) ||
!strcmp("disktidy.rock", sepch + 1) ||
!strcmp("open_plugins.rock", sepch + 1));