AboutSystem: Open with golden ration window size
* This looks more pleasing than the too flat window before.
Change-Id: I0e97c094abf6f7d71d86cfe28aaf9c2d6960f79c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10065
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Diff
src/apps/aboutsystem/AboutSystem.cpp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
@@ -1,5 +1,5 @@
/*
* Copyright 2005-2022 Haiku, Inc. All rights reserved.
* Copyright 2005-2025 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT license.
*
* Authors:
@@ -400,6 +400,13 @@
fAboutView = new AboutView();
AddChild(fAboutView);
UpdateSizeLimits();
float width = Bounds().IntegerWidth();
if (width * 0.618 > Bounds().Height())
ResizeTo(width, width * 0.618);
CenterOnScreen();
}