simvx.editor.preferences

Editor preferences and theme system.

Persistent settings via the unified AppConfig system (~/.config/simvx/config.json). EditorPreferences delegates to AppConfig.general and AppConfig.editor sections while keeping full backward-compatible field access.

Module Contents

Classes

EditorPreferences

Persistent editor settings delegating to the unified AppConfig.

Data

API

simvx.editor.preferences.EditorTheme

None

class simvx.editor.preferences.EditorPreferences[source]

Persistent editor settings delegating to the unified AppConfig.

All field access (prefs.font_size, prefs.show_grid, etc.) is fully backward-compatible with the previous @dataclass version.

Initialization

property theme_name: str
property font_size: float
property window_width: int
property window_height: int
property recent_files: list[str]
property custom_shortcuts: dict[str, str]
property dock_layout: dict
property show_grid: bool
property grid_size: float
property grid_subdivisions: int
property snap_enabled: bool
property snap_size: float
property auto_save_interval: int
load() None[source]

Load preferences from disk via the unified config.

save() None[source]

Write current preferences to disk via the unified config.

get_theme() simvx.core.ui.theme.AppTheme[source]

Return an AppTheme instance matching theme_name and update the singleton.

reset_to_defaults() None[source]

Reset every field to its default value.