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:
Christian Soffke 2025-12-16 13:39:03 +01:00
parent 1fd45d23a0
commit 8c9f70de82
7 changed files with 51 additions and 3 deletions

View file

@ -112,6 +112,7 @@ int plugin_open(const char *plugin, const char *parameter);
#include "menu.h"
#include "rbunicode.h"
#include "list.h"
#include "statusbar-skinned.h"
#include "tree.h"
#include "color_picker.h"
#include "buflib.h"
@ -1020,6 +1021,7 @@ struct plugin_api {
bool (*gesture_vel_get)(struct gesture_vel *gv, int *xvel, int *yvel);
#endif
char* (*strstr)(const char *s1, const char *s2);
bool (*sb_set_title_text)(const char* title, enum themable_icons icon, enum screen_type screen);
};
/* plugin header */