Themes

A theme colours and dresses the screens: the head (the tabs and a title), the boxes (the list, the box beside it about the focus, the Status box: resource use, the disk and the working folder), the tips (what the focus is about or the screen's message) and the foot (the screen's keys). It applies to the menu screens and to the run, which is compiling until the runner prints its ScarletNX - <name> banner and loading from then on.

The screens are boxes side by side, nothing over another, the default framing them in thin lines and YoRHa filling them. At the top the tabs, Menu, Games and Settings (and Recompile while its queue holds a recompile), and the screen's title after them against the right, and at its right the user games play as (Settings > User, which lists them under Current user, Left/Right picking, and renames each: Enter types its nickname, the rule Usage gives checked, then written to users.ini): a box framed as the others are holding their nickname and their picture, users/<uid>.jpg or Wimsy without one (Usage), square or round ([head] picture; none for no box). A click on it opens the users over the screen, each with their picture; the one picked is Settings' user from then on, and ESC or a click off them leaves it as it was. The head is the same on every screen of one window: when the main screens' titles (the menu's, Games', the keys', SCARLETNX / SETTINGS and while its tab shows SCARLETNX / RECOMPILE) do not all fit beside the tabs, every one takes letters a size smaller, down to the text's, else leaves out the same first parts (SCARLETNX / first), else shows no title. The size is the one the English titles take, so the head is as big in every language, and a translation too long for it leaves out first parts too (its last part alone, big, where SCARLETNX / SETTINGS fits whole); a screen deeper in the Settings leaves out what more it must. Under them the list, each entry a box of its own, the focused one framed in the focus colour or inverted, with the theme's cursor in the margin; beside it a box with what the focus is about (a game's path whole, Games' folders, the keys in use, the last run's output), never what the tips already say (what the row does, a game's kind), and under that one the Status box. The tips have a row of their own under the head, their letters a half step under the text's (1.5x by a 2x text), as the Status box's and the note at the foot of a Settings box are; the setup's go to the foot beside its keys, where they take one row, a long one sliding, or wrap over its rows with [tips] wrap, the last sliding what does not fit. At the foot the screen's keys, the whole width (the setup's beside its tips), in letters a size under the rest's, each after its icon (the one F1's box gives it): ESC alone at the left of the row, the screen's own first three, More (F3; on a phone the word More) where it has others, which opens the picks box over the screen with those others, a row each with its icon and key, a click, a tap, Enter or a pad's A pressing it as the keyboard does (Games' Save states, AOT pack, Folders, View and Refresh past Play, Recompile and Mods; a pad's foot leaves them to F1's box, its buttons pressing them all the same), and F1 last, which opens a box over the screen, Shortcuts, with every key it has, those every screen has too (the arrows and the mouse, Enter, Space and a click, the pages, Tab and F2), as the other boxes over a screen are: the screen darkened under it, a row a key with its icon, the keys as the foot draws them, the screen's own first and those every screen has under the title Every screen (ESC among them; no title where all are those), OK under them; Up/Down, PgUp/PgDn and the wheel go over the rows a short window cannot show, any other key or a click closes it; on a phone, the words to tap, whole, in the text's letters, each row of them as tall as a list's row (48 pixels times the text's size) for a finger, and so are the tabs. The tips and the keys each in a box with a bar down its left ([tips] box, [footer] box) or on the page, each key with what it does a button as a tab is: a box as the theme's are (filled in the dim colour, framed in it, or on the foot's band framed in the soft one), its text a column inside, a column between two, as tall as a tab where it has a row of its own. Games lists the recent games and the games, as many as the list's box holds and the rest a scroll away, the focused one's path and kind beside them; the keys' screen, and a load's, is one box with where the keys go, the waiting line in its middle (a click in the box opens the picker). The Settings list their groups, and beside them the focused group's rows: Enter, or a click on a row, opens the group, its rows taking the focus, the group shown as the focused one; a click on another group opens that one. No screen has a Back row: ESC goes back, and so does a click or a tap on the foot's ESC. A failure of the system's (a file not written, a folder not made, a picker that did not open, the driver not found, the log not saved) shows whole in a box over the screen until OK, once in a session; the tips or the note go on saying it after. F5, or the foot's (Refresh on a phone), looks at the disk again at once rather than at the next look: Games lists its folders again, Folders says which of its folders are there, the menu counts the disk again, and the Old Files pages look again. The theme editor lists its keys, the preview beside them. The list's column is two fifths of every screen, 20 columns at the least, and a window under 45 columns shows the list alone, or with app.ini's side_box = on (F2) the side box under it; a run's output and the theme editor's keys take three fifths, the side box 24 columns at the least, under them on a window under 45 columns. The screens are laid out by src/gui/ui.txt's Screen and Wide (a theme's [head] place, [tips] place and [body] sizing are deprecated, said as it loads: Deprecations), and so is every list (a theme's [body] gap and [body] scroll are deprecated too): the menu's, Games', the Settings' two, the theme editor's, the choices of a question, of UI scale's dialog, of the Recompile box and of the setup's pages, the setup's Appearance rows, the box of users, that of a game's updates, DLCs and mods, and the OK of a box of files. Their rows are 2 pixels apart times the text's size (on Android and iOS 48 pixels high: a phone held wide gets 2x by default, so 96, about 37 dp at a density of 2.6, Android's 48 dp touch target at 3x; the desktop's are 17), the focused one kept in the middle (on a group's screen, the group open in the groups' list; Games' grid by its lines) as the keys, a pad or the wheel move it, and a list still when the mouse, a pen or a tap moves it, the cursor inside each row, which a click takes whole as a tap does. A row's text too long for it shows its start and ends in ..., but for the focused row's, which slides where the theme slides (scroll_ms): one name moves at a time. Every list whose rows do not all show, Games' grid too, has a scroll bar a letter wide at its right, the rows beside it: its thumb as tall as the share of the rows shown and where they are, which a click takes there and drags, and a finger too from two letters of the bar's right edge; the rows stay where the thumb or a finger put them, the focus where it was, until a key, a pad or the wheel moves the focus. Under a box over the screen, only the box's bars take a press. That is the Side panel's Auto, the default (side_box = auto in app.ini, Settings > App); On shows it on every screen, under the list where both do not fit, and Off never, the list taking the whole width without the Status box, a group's rows its column. F2 shows it where it is hidden and hides it where it shows, kept as On or Off. A text too long for its box wraps over its rows, its last sliding what is left, or takes one that slides with [body] text = slide. A run of the console layout shows the driver's output in a box sized to it, beside it what runs and how it ended over the status, the file in the tips and the ESC line where the keys go, which a tap aborts. The button map draws the pad in the box between the head and the foot. A question comes over the screen darkened, in a box in its middle, or with [body] options-dialog = yorha (YoRHa's) in a box at its foot, a tab with its label on the box's edge, the choices at its right above it, as the game's dialogs. What Clean Old Settings and Move Old Files did comes in a box over the screen darkened.

The built-ins are default, the look above, and yorha: paper and ink, a title twice the text's size where it fits whole, a faint grid on the page, square markers, the focused box inverted, the tips in a box under the head, the keys in one on a band of ink at the foot, and a run drawn as a dark loading screen in its own colours ([run]): the title, the game's name with turning dots and a turning ring; each step the driver and the runner report (unpack, extract, recompile with its blocks, built, launch, GPU) typed down the page, with turning dots while it runs and ...OK or ...FAILED once it ends, the cursor blinking on the current one, and the other lines it printed indented under it ([run] bar adds a progress bar with the running step's percentage). A step that counts, the extraction by what hactool has written, the recompile by its blocks, shows how far it is on its line as [run] progress says: amount (1.2 / 4.0 GB, 3 / 6), percent (30%, YoRHa's) or time, what is left at its pace so far (01:23 left). With layout = console the driver's own row says it, extracted 1229 of 4096 MB (30%), written over itself each second. The menu fades out to black as a run starts and the run fades in from it; ESC fades the run out and the menu back in.

sepia-dark, wimsy, wimsy-dark, fuddles and fuddles-dark are YoRHa's layout in the colours of the sites' themes (SWS, wimsy-dist's docs/SWS.md), each palette's light and dark: Sepia, YoRHa's own colours with its menus dark too; Wimsy's, from dist/wimsy.svg; and Fuddles', from dist/splash/wimsy-fuddles.svg. Their run screen is dark in both. wimsy-dist's themes/theme.py writes their theme.ini from the same colours as the sites', each held to 4.5:1 for text: a colour changes there, not in the files.

The runtime draws a loading screen of its own in the same look while it prepares the shaders before a game starts (prepare_shaders = 2, the default). It shows steps with their progress, the lines of the work scrolling under them, and a progress bar in every theme. A key that types, an arrow or the keypad, a gamepad button other than Home, or a tap starts the game at once, and the rest is prepared while it runs. Esc twice quits, or on Android back opens the menu, whose Exit quits. The screen appears only when the work takes longer than a quarter second, and its words are in English whatever language the launcher uses. It reads the theme the launcher picked from the launcher's app.ini, from the built-ins, the themes/ of the data folder (the one Folders picked, when it did) and the themes shipped beside the launcher, which it finds when the launcher started the game. It uses the theme's [run] colours, layout, texture and progress, and its loading title. A theme that is no longer there draws as YoRHa. So does a runtime built without the launcher, which on Android is every runtime: the launcher is the app's own library there, and the game's runtime can't ask it.

The same screen shows when a collection's program starts another (a game picked in the collection's menu; transition_screen = 1, the default), in the new program's window from a quarter second after it opens until the game draws. Its head says the game's name and (Program N) for a program other than the collection's menu; the game's cover sits in its top right corner; and what is known of the program shows as done steps: PROGRAM (its number of the application's), STARTED BY, USER (with the user's picture, and whether the program before kept that user for it), VERSION (and the update's), DLC, HANDED OVER (what the program before left for it), GPU, TITLE ID and BUILD, each ? when it is not known. The shaders' steps follow when there are some to prepare, and the bar shows their progress, full when there is none. While no window is open between the two programs, the launcher's run screen shows the same page in the run look, whatever the theme's layout, with what the launcher knows (not HANDED OVER, which only the program reads), and RECOMPILE: the recompile of a program not made, with its bar, or that none is needed.


Made from docs/user/gui.md at 69237645142c. GPL-3.0-or-later.