- Changed mainWindowDefaultSize from static properties to a getter that retrieves the primary display's work area size, ensuring the main window adapts to different screen resolutions. - Adjusted logic for determining window dimensions to improve handling of window state and maximum size constraints.