pub fn reload_theme() -> Result<(), String>Expand description
What: Reload the theme configuration on demand.
Inputs:
- None (uses the unified resolution logic).
Output:
Ok(())when the theme is reloaded successfully.Err(String)with a human-readable reason when reloading fails.
ยงErrors
- Returns
Errif the theme store lock cannot be acquired
Details:
- Re-runs the full resolution logic (reads settings, theme.conf, queries terminal).
- Keeps the in-memory cache up to date so the UI can refresh without restarting Pacsea.
- With the new resolution logic, this never fails due to missing/invalid theme.conf as it falls back to terminal theme or codebase default.