1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-31 18:31:04 +00:00

Formspec: Introduce default element styling/theming

This introduces a new setting to customize the default appearance
of formspecs. Server-sent 'formspec prepends' will internally
overwrite this setting.
This commit is contained in:
SmallJoker 2025-05-20 21:49:41 +02:00
parent ebef65e905
commit 810bbc5472
10 changed files with 134 additions and 51 deletions

View file

@ -3632,9 +3632,9 @@ Some types may inherit styles from parent types.
* bgimg - standard background image. Defaults to none.
* bgimg_hovered - background image when hovered. Defaults to bgimg when not provided.
* This is deprecated, use states instead.
* bgimg_middle - Makes the bgimg textures render in 9-sliced mode and defines the middle rect.
* bgimg_middle - Replaces the default border. Defines the middle rect for 9-sliced mode.
See background9[] documentation for more details. This property also pads the
button's content when set.
button's content when set. When `border` is set to false
* bgimg_pressed - background image when pressed. Defaults to bgimg when not provided.
* This is deprecated, use states instead.
* font - Sets font type. This is a comma separated list of options. Valid options: