Skip to content

Commit ae3f79b

Browse files
committed
windows, linux, macos: change default window width to 360
1 parent 60d5a6a commit ae3f79b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

linux/my_application.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void my_application_activate(GApplication* application) {
4747
gtk_window_set_title(window, "nodebase");
4848
}
4949

50-
gtk_window_set_default_size(window, 1280, 720);
50+
gtk_window_set_default_size(window, 360, 720);
5151
gtk_widget_show(GTK_WIDGET(window));
5252

5353
g_autoptr(FlDartProject) project = fl_dart_project_new();

macos/Runner/Base.lproj/MainMenu.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
</menu>
333333
<window title="APP_NAME" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="MainFlutterWindow" customModule="Runner" customModuleProvider="target">
334334
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
335-
<rect key="contentRect" x="335" y="390" width="800" height="600"/>
335+
<rect key="contentRect" x="335" y="390" width="360" height="600"/>
336336
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1577"/>
337337
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
338338
<rect key="frame" x="0.0" y="0.0" width="800" height="600"/>

windows/runner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
2626

2727
FlutterWindow window(project);
2828
Win32Window::Point origin(10, 10);
29-
Win32Window::Size size(1280, 720);
29+
Win32Window::Size size(360, 720);
3030
if (!window.Create(L"nodebase", origin, size)) {
3131
return EXIT_FAILURE;
3232
}

0 commit comments

Comments
 (0)