"""
Entry point for running acycle.plot as a module.
Usage: python -m acycle.plot
"""

import sys
from PySide6.QtWidgets import QApplication
from qt_material import apply_stylesheet
from acycle.plot.PlotPro import PlotPro


def main():
    """Main entry point for the PlotPro application."""
    app = QApplication(sys.argv)

    # Apply theme
    theme = 'default.xml'
    apply_stylesheet(
        app,
        theme,
        invert_secondary=('light' in theme and 'dark' not in theme),
    )

    # Create window manager
    manager = PlotPro(
        spacing=30,
        theme='default.xml',
        file_path=''
    )

    # Set up 3-pane layout (right side split 60/40)
    manager.setup_3_pane_layout()

    sys.exit(app.exec())


if __name__ == "__main__":
    main()
