Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::ThemeSelectorOptions Struct Reference

Owning selector captions, established dialog settings and optional application delivery. More...

#include <theme_selector.hpp>

Public Member Functions

 ~ThemeSelectorOptions ()=default
 Keep owning option/callback transfers fallible.

Public Attributes

DialogOptions dialog {}
 Existing modal geometry defaults; eager Escape is disabled by this composition.
TextValue title {"Themes"}
 Owning dialog title, resolved during mounting.
TextValue apply {"Apply"}
 Owning Apply caption.
TextValue cancel {"Cancel"}
 Owning checked-restoration caption.
TextValue closeKeepingPreview {"Close (keep preview)"}
 Explicit hide-only recovery action.
TextValue emptyStatus {"Choose a theme to preview"}
 No currently selected active choice.
TextValue errorStatus {"Theme action failed; retry or close keeping preview"}
 Bounded recoverable status.
TextValue conflictStatus {"Theme changed elsewhere; preview again or close keeping preview"}
 Superseded status.
TextLimits textLimits {4096, 4096, 4096, 8192}
 Positive validation limits for each caption/status.
std::function< std::expected< std::string, TextResourceError >(std::string_view)> textResolver
 Local mount resolver.
std::optional< std::string > openingShortcut
 Canonical text; absent disables binding.
std::function< std::expected< void, ManagedError >(std::string_view)> onCommitted
 Optional synchronous UI callback, invoked once after a successful guarded commit. The ID borrow expires on return; copy it for later use. No file I/O is supplied by the library. Failure does not skip close or repeat delivery. It must not block.

Detailed Description

Owning selector captions, established dialog settings and optional application delivery.

Member Data Documentation

◆ openingShortcut

std::optional<std::string> portals::ui::ThemeSelectorOptions::openingShortcut
Initial value:
{std::in_place,
"Ctrl+K, Ctrl+T"}

Canonical text; absent disables binding.


The documentation for this struct was generated from the following file: