Screen prefs: force weight of the two boxes
Depending on the locale and string length the layout could leave only a small part of the window for the rightmost part, which is the important thing. Force the weight of each side so we have a more balanced window.
This commit is contained in:
@@ -525,11 +525,11 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
|||||||
|
|
||||||
BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING)
|
BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_HORIZONTAL)
|
||||||
.AddGroup(B_VERTICAL, 0)
|
.AddGroup(B_VERTICAL, 0, 1)
|
||||||
.AddStrut(floorf(controlsBox->TopBorderOffset()) - 1)
|
.AddStrut(floorf(controlsBox->TopBorderOffset()) - 1)
|
||||||
.Add(screenBox)
|
.Add(screenBox)
|
||||||
.End()
|
.End()
|
||||||
.Add(controlsBox)
|
.Add(controlsBox, 2)
|
||||||
.End()
|
.End()
|
||||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||||
.Add(fRevertButton)
|
.Add(fRevertButton)
|
||||||
|
|||||||
Reference in New Issue
Block a user