Configuration and Runtime¶
Configuration and runtime state services for project setup and UI behavior.
ConfigService¶
ConfigService
¶
Bases: ConfigServiceProtocol
Modular configuration service for EzQt_App.
Source code in src/ezqt_app/services/config/config_service.py
set_project_root
¶
Set the active project root directory.
Source code in src/ezqt_app/services/config/config_service.py
load_config
¶
Load a named configuration from the first matching path.
Parameters¶
config_name:
Configuration file name (without extension, e.g. "app").
force_reload:
Bypass cache and reload from disk.
Returns¶
dict[str, Any] Loaded configuration data, or empty dict on failure.
Source code in src/ezqt_app/services/config/config_service.py
get_config_value
¶
Read a specific value from a configuration using dot-notation key path.
Parameters¶
config_name:
Configuration file name.
key_path:
Dot-separated path (e.g. "app.name" or "palette.dark").
default:
Value returned when key is absent.
Source code in src/ezqt_app/services/config/config_service.py
save_config
¶
Persist a named configuration to the project directory.
Parameters¶
config_name: Configuration file name. config_data: Data to serialise as YAML.
Returns¶
bool
True if the write succeeded.
Source code in src/ezqt_app/services/config/config_service.py
get_config_paths
¶
Return candidate paths for config_name in priority order.
Parameters¶
config_name:
Logical configuration name (e.g. "app", "languages",
"theme"). Files are resolved as <name>.config.yaml.
Source code in src/ezqt_app/services/config/config_service.py
copy_package_configs_to_project
¶
Copy package configuration files into the child project.
Returns¶
bool
True if the operation succeeded.
Source code in src/ezqt_app/services/config/config_service.py
clear_cache
¶
Invalidate the in-memory configuration cache.
get_loaded_configs
¶
SettingsService¶
SettingsService
¶
Bases: SettingsServiceProtocol
Service managing mutable application settings state.
Initialize settings state container.
Source code in src/ezqt_app/services/settings/settings_service.py
set_app_name
¶
set_app_description
¶
set_custom_title_bar_enabled
¶
set_app_min_size
¶
set_app_min_size_qsize
¶
Set minimum window size from QSize (convenience, not part of the port).
set_app_dimensions
¶
set_debug_enabled
¶
set_theme
¶
Set active theme.
Accepts either a 'preset:variant' string (e.g. 'blue_gray:dark')
or a bare variant (e.g. 'dark', 'light') for backward compat.
A bare variant keeps the current THEME_PRESET unchanged.
Source code in src/ezqt_app/services/settings/settings_service.py
set_menu_widths
¶
set_settings_panel_width
¶
set_time_animation
¶
RuntimeStateService¶
RuntimeStateService
¶
Related Ports¶
ezqt_app.domain.ports.config_service.ConfigServiceProtocolezqt_app.domain.ports.settings_service.SettingsServiceProtocolezqt_app.domain.ports.runtime_state_service.RuntimeStateServiceProtocol