A theme is also a folder holding a theme.ini, the folder's name its id, in
themes/ in that same folder or in themes/ beside the GUI; the first one found
wins, and a folder named like a built-in replaces it. The built-ins are such files, and
nothing else: each folder of src/gui/themes/ is one, its theme.ini compiled into the GUI
(cmake/gui_themes.cmake) and read as any other, setting every key. The runtime's game menu
takes YoRHa's colours from the same file at build time, and so does its loading screen when it can't read the
launcher's theme. The files are copied beside the GUI
in the build and installed in share/scarletnx/themes: copy one under a new name to make a theme, or edit one
to change the built-in. [theme] base picks the built-in a file starts from, and a key it
leaves out, or that cannot be read, keeps the base's value. What a file has that the theme does not take as written
is said, the file named, in the menu's message as it opens and in Settings > App's note when the theme is picked: a
value it cannot read with the one it keeps ([body] focus = middle is not color or bar: it keeps color), a number
past its most with the most it takes, a base that is no built-in with the one it starts from, and a key no theme has
(an ErET file's own keys aside). A line with no = is no setting. The menu's Theme Editor
writes one with every key.
[theme]
; the theme file's format, 1; a newer file's keys this GUI knows still apply
format = 1
name = Night ink
author = me
; default | yorha
base = yorha
[colors]
; #RRGGBB. soft: hints, secondary text, rules. focus: the focused box, or its band.
; dim: the boxes' frames, a filled box, the grid and the title's shadow
page = #101418
ink = #D8D4C4
soft = #8A8676
focus = #D8D4C4
active = #C8A040
failure = #D05040
dim = #3E3E40
; a diff's added lines, as failure its removed ones; no screen uses it yet
added = #6A9A50
[head]
; plain | bar: the tabs and the title on a band of ink; rule: a line under the head
style = bar
rule = true
; the title's letters, times the text's (1 to 3), and a shadow under them in the dim colour
size = 2
shadow = true
; the user at the head's right, their nickname and picture in a box: none | square | round
picture = round
; the title per screen: menu, games, keys, compiling, loading
menu = NIGHT / MENU
[body]
; before each item; quotes keep spaces
marker = "> "
; the focused box: color | bar
focus = bar
; the boxes outline (framed) or fill (filled)
panels = fill
; a text too long for its box: wrap (over its rows) | slide (on one row)
text = wrap
; in the list's margin, beside the focused box
cursor = "> "
; a question and its choices: default (a box in the middle) | yorha (the question in a box at the foot, the
; choices at its right above it)
options-dialog = yorha
[backdrop]
; a faint grid on the page behind the boxes, in the dim colour
grid = true
[tips]
; in a box with a bar at its left, or on the page
box = false
; over the foot's rows, or on one row that slides
wrap = false
[footer]
; plain | bar: on a band of ink | none: no Status box; rule: a line over the foot
style = plain
rule = true
; the keys in a box with a bar at its left, or on the page
box = true
[run]
; console: the driver's output as it comes; steps: the loading screen above, in its own colours
layout = steps
page = #141416
ink = #E6E4DC
soft = #8E8C86
dim = #3E3E40
failure = #D2463A
warning = #D9B24A
; faint lines over the page, the progress bar and percentage, and the ring: none | left | right
texture = true
bar = true
ring = right
; a running step's progress: amount | percent | time
progress = percent
; detailed: each step's other lines under it, down the screen; collapse: a done step's
; folded away, a failed one's kept
detailed = true
collapse = false
[prompt]
; a line that waits on the user, when its key is true: framed, left | center | right on its
; row, blinking at blink_ms. keys: the keys screen's drop line; done, failed: the ESC line
; after a run; aborting: a run being aborted
align = center
open = "[ "
close = " ]"
blink = true
keys = true
failed = true
[transitions]
; milliseconds, 0 to 10000; 0 turns the thing off. fade_out_ms: the menu as a run starts,
; and a run ESC leaves; fade_in_ms: what comes after. A notification over a game comes in
; at fade_in_ms and goes at fade_out_ms
fade_in_ms = 250
fade_out_ms = 500
; how a step's line comes in: none | typing | slide | fade
line_in = typing
line_in_ms = 220
typing_ms = 5
; async: every line types from when it comes; sync: one at a time. A running step's newest line
; types a character each typing_ms, any other line whole in typing_ms
typing = async
blink_ms = 500
; a line too long for its row (big letters) slides left a column every scroll_ms and back; 0 cuts it
scroll_ms = 120
[splash]
; the boot's: one of Wimsy's drawings, at random, on page for ms milliseconds (0: none). chance: the
; boots in 100 that show this theme's, the default theme's the others
page = #DAD6BE
ms = 1000
chance = 25
Comments take a line of their own, starting with ; or #.
The format is rEden's ErET format 1, extended, so one file can serve both: each program reads the keys it knows and leaves the others. From ErET's, the GUI also reads:
| ErET key | here |
|---|---|
[theme] layout | the base when no base names one: menu and loading are yorha, plain, debug and skip are default |
[colors] | with layout = loading and no base, the run's colours, as [run]: ErET's loading screen is YoRHa's runs |
[colors] texture, warning | as [run] texture, and the colour of a run being aborted |
[header] ring_side | right, left or right-near-text (right after the name and its dots), as [run] ring |
[transitions] typing | async or sync, as above |
[loading] title | the loading screen's title |
ErET needs [theme] layout, so the built-in files carry one: debug and menu.
Made from docs/user/gui.md at 69237645142c. GPL-3.0-or-later.