pub fn ensure_theme_keys_present()Expand description
What: Ensure theme.conf (or legacy theme file) defines every required theme key, appending skeleton defaults for any gaps.
Inputs:
- None.
Output:
- None.
Details:
- Resolves the same path as theme loading (
resolve_theme_config_pathorconfig_dir()/theme.conf). - Writes the full theme skeleton when the file is missing or empty.
- Otherwise appends
key = valuelines fromTHEME_SKELETON_CONTENTfor each missing canonical color. - Must run before the first
theme()load so incomplete files are repaired on disk first.