1
0
Fork 0
forked from len0rd/rockbox

Settings menu: add main menu customization

Lets you launch the main_menu_config plugin
from Settings, so that it remains accessible,
even after all other menu items have been
hidden.

Includes minor changes to the main menu config
plugin, so that it better fits in with the rest
of the settings menus:

* Keep theme enabled
* Autosave
* Add "On" or "Off" suffix to each item, to prevent
  confusion when Icon_Config is blank, as is the case
  with certain iconsets
* Update current selection after swapping items
* Prefix spoken selection with row number for enhanced
  clarity when swapping items
* Change title to LANG_MAIN_MENU
* ACTION_STD_OK to toggle an item's visibility
* ACTION_STD_CONTEXT to access options for reordering
  menu items, or for reverting to the default menu
* Ask for confirmation before reverting

Change-Id: I74240b94243224c76e23ef8f3a0559bd8ba28df0
This commit is contained in:
Christian Soffke 2025-04-19 02:16:58 +02:00
parent dbeefebcad
commit 5efb6d7fac
7 changed files with 99 additions and 65 deletions

View file

@ -5,10 +5,11 @@
\subsection{\label{ref:CustomisingTheMainMenu}Customising The Main Menu}
It is possible to customise the main menu, i.e. to reorder or to hide some
of its items (only the main menu can be customised, submenus can not).
To accomplish this, load a \fname{.cfg} file (as described in
\reference{ref:manage_settings}) containing the following line:
The easiest way to reorder or to hide menu items is via the settings menu
(see \reference{ref:main_menu_config}).
To accomplish this using a text editor instead, load a \fname{.cfg} file
(as described in \reference{ref:manage_settings}) containing the following line:
\config{root~menu~order:items}, where ``items'' is a comma separated list
(no spaces around the commas!) of the following
words: \config{bookmarks}, \config{files}, \opt{tagcache}{\config{database}, }%
@ -32,10 +33,6 @@ for changing the settings (the latter will be added automatically).
To reset the menu items to the default, use \config{root~menu~order:-} (i.e.
use a hyphen instead of ``items'').
This configuration entry can only be created and edited with a text editor or
the Main Menu Config Plugin (see \reference{ref:main_menu_config}).
It is not possible to change this setting via the settings menu.
\subsection{\label{ref:CustomisingThePlayername}Customising The Playername}
Some themes show a customizable playername in the Whats Playing Screen.

View file

@ -141,6 +141,22 @@ to recording. The details of this menu are covered in detail in
\reference{ref:Recordingsettings}.
}
\subsection{Main Menu}
{\label{ref:main_menu_config}}
Allows you to hide or reorder items from the main menu.
Press \ActionStdOk{} to toggle an item's visibility.
Press \ActionStdContext{} to access the following options:
\begin{description}
\item[Move Item Up] Swap selected menu item with the previous one
\item[Move Item down] Swap selected menu item with the next one
\item[Load Default Configuration] Discard all customization
\end{description}
For an advanced description of the associated configuration entry,
see \reference{ref:CustomisingTheMainMenu}.
\subsection{Manage Settings}
The \setting{Manage Settings} option allows the saving and re-loading of user
configuration settings, browsing the hard drive for alternate firmwares, and finally

View file

@ -1,17 +1,2 @@
\subsection{Main Menu Configuration}
{\label{ref:main_menu_config}}
This plugin helps you customizing the main menu (i.e. reorder or hide menu
items). It changes the appropriate configuration file as described in
\reference{ref:CustomisingTheMainMenu}.
When you start the plugin, the available main menu items will be displayed.
By pressing \ActionStdOk{} you open a menu with the following options:
\begin{description}
\item[Toggle Item] Hide the selected menu item or make it visible again
\item[Move Item Up] Swap the selected menu item with the previous one
\item[Move Item down] Swap the selected menu item with the next one
\item[Load Default Configuration] Discards all customization
\item[Exit] Save your changes to the configuration file and exit the plugin
\end{description}
You can leave the plugin without saving by pressing \ActionStdCancel{}.
see \reference{ref:main_menu_config}