settings module

settings.add_recent_project_creation_path(project_creation_path: str) None[source]

Add a recent project creation path to the settings file

settings.add_recent_project_path(project_path: str) None[source]

Add a recent project path to the settings file with last modification date and size

settings.apply_stylesheet(main_window, ui, settings, current_theme) None[source]

Apply the stylesheet to the main window and update the image based on the theme

settings.get_recent_project_creation_paths() List[str][source]

Get the recent project creation paths

settings.get_recent_project_paths() List[Dict[str, Any]][source]

Get the recent project paths with their last modification date and size

settings.get_settings_path() Path[source]

Get the settings path based on the platform

settings.get_themes_path() Path[source]

Get the themes path

settings.load_current_theme() Dict[str, Any][source]

Load the current theme

settings.load_settings() Dict[str, Any][source]

Load the settings from the settings.json file

settings.load_themes()[source]

Load the themes from the themes.json file

settings.load_ui(main_window, ui, settings, current_theme, themes)[source]

Load the UI from the .ui file

settings.open_settings_dialog(main_window, settings, themes, current_theme) None[source]

Open the settings dialog

settings.themes_path: Path = PosixPath('/home/runner/work/ManimStudio/ManimStudio/src/themes/themes.json')

Settings

settings.update_image(ui, current_theme) None[source]

Update the image based on the theme and resize event.

settings.update_settings(new_settings: Dict[str, Any]) bool[source]

Overwrite the settings file with the new settings

settings.update_settings_from_dialog(main_window, uiSettings, settings, themes, current_theme) None[source]

Update the settings from the dialog, and update the UI