From 696541e5b35093182e82a76beade51057704a683 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Mon, 1 Jun 2026 16:06:50 +0200 Subject: [PATCH] fix(studio): narrow default window to 1280x900 The 1440x900 default felt too wide for first-run: the Welcome page's 960 px content column left visible slack on either side even after the centring fix, and the editor's sidebar plus canvas plus properties panel still didn't need that much horizontal room on a fresh open. 1280x900 matches the most common laptop effective resolution, keeps every Studio surface comfortable, and the operator can resize larger any time. Same value across all three host platforms (macOS NSWindow setContentSize, Linux gtk_window_set_default_size, Windows Win32Window::Size). Version 0.52.3 -> 0.52.4. Signed-off-by: flemming-it --- lib/main.dart | 2 +- linux/runner/my_application.cc | 2 +- macos/Runner/MainFlutterWindow.swift | 2 +- pubspec.yaml | 2 +- windows/runner/main.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index dcad45e..394dfe3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -26,7 +26,7 @@ import 'widgets/widgets.dart'; /// Studio's own build version. Bump on every UI commit so the /// running app self-identifies — visible in the sidebar header /// and quick-glance proof that you're seeing the current build. -const String kStudioVersion = '0.52.3'; +const String kStudioVersion = '0.52.4'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); diff --git a/linux/runner/my_application.cc b/linux/runner/my_application.cc index 1ce191f..12ee6f6 100644 --- a/linux/runner/my_application.cc +++ b/linux/runner/my_application.cc @@ -52,7 +52,7 @@ static void my_application_activate(GApplication* application) { gtk_window_set_title(window, "F\u2206I Studio"); } - gtk_window_set_default_size(window, 1440, 900); + gtk_window_set_default_size(window, 1280, 900); g_autoptr(FlDartProject) project = fl_dart_project_new(); fl_dart_project_set_dart_entrypoint_arguments( diff --git a/macos/Runner/MainFlutterWindow.swift b/macos/Runner/MainFlutterWindow.swift index d479ec9..1ab6ff6 100644 --- a/macos/Runner/MainFlutterWindow.swift +++ b/macos/Runner/MainFlutterWindow.swift @@ -20,7 +20,7 @@ class MainFlutterWindow: NSWindow { // important for external monitors at non-Retina scales. if let screen = NSScreen.main { let visible = screen.visibleFrame - let targetWidth = min(CGFloat(1440), visible.width) + let targetWidth = min(CGFloat(1280), visible.width) let targetHeight = min(CGFloat(900), visible.height) self.setContentSize(NSSize(width: targetWidth, height: targetHeight)) self.center() diff --git a/pubspec.yaml b/pubspec.yaml index 5711767..fcc10fc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: fai_studio description: "F∆I Studio — desktop GUI for the F∆I hub" publish_to: 'none' -version: 0.52.3 +version: 0.52.4 environment: sdk: ^3.11.0-200.1.beta diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index a24729f..265a71c 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -26,7 +26,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); - Win32Window::Size size(1440, 900); + Win32Window::Size size(1280, 900); if (!window.Create(L"F\u2206I Studio", origin, size)) { return EXIT_FAILURE; }