yasmin_editor.editor_gui.ui.layout_contract module

Stable splitter defaults for the original editor layout.

The editor only has one main left/right splitter that strongly influences how “normal” the window feels. This module keeps those defaults declarative so UI refactors do not quietly drift away from the original proportions.

class yasmin_editor.editor_gui.ui.layout_contract.SplitterLayoutSpec(initial_sizes: tuple[int, int], stretch_factors: tuple[int, int], children_collapsible: bool = True)

Bases: object

Layout defaults applied to a two-column QSplitter.

children_collapsible: bool
initial_sizes: tuple[int, int]
stretch_factors: tuple[int, int]
yasmin_editor.editor_gui.ui.layout_contract.apply_splitter_layout(splitter, spec: SplitterLayoutSpec = SplitterLayoutSpec(initial_sizes=(260, 1040), stretch_factors=(0, 1), children_collapsible=True)) None

Apply the canonical editor splitter defaults to a QSplitter-like object.