MenuStyle struct
#include <Jazz2/UI/Menu/MenuStyle.h>
Centralized look-and-feel of the menu.
Single source of truth for the menu's layout metrics, colors, text styling, and default transition. Editing this restyles the whole menu without touching individual sections. Shared by both menu containers and all sections through the painter helpers on the container.
Layout metrics
-
std::
int32_t ItemHeight - Height reserved for a single list item.
-
std::
int32_t TopLine - Distance of the top divider line from the content top.
-
std::
int32_t BottomLine - Distance of the bottom divider line from the content bottom.
- float FrameWidth
- Width of the dimmed background frame.
Colors
- nCine::Colorf TitleColor
- Color of a section title.
- nCine::Colorf DisabledColor
- Color of a dimmed/disabled item.
- nCine::Colorf FrameColor
- Tint of the dimmed background frame.
Text styling
- float TextAngleOffset
- Per-character wave angle offset of styled (selected/title) text.
- float TextVarianceX
- Per-character horizontal wave variance of styled text.
- float TextVarianceY
- Per-character vertical wave variance of styled text.
- float TextWaveSpeed
- Wave speed of styled text.
- float TextCharSpacing
- Character spacing of styled text.
- float ItemScale
- Scale of an unselected list item.
- float SelectedItemBaseScale
- Base scale of a selected list item (before the elastic pop).
- float SelectedItemPopScale
- Additional scale added by the elastic pop of a selected item.
Animation
- float SelectionAnimationSpeed
- Speed of the per-item selection animation (per
timeMult). - TransitionInfo DefaultTransition
- Default transition used when a section doesn't override it.