Calculating size

This commit is contained in:
Frank 2023-06-08 00:44:10 +02:00
parent af4070b74a
commit 309b447ba0

View file

@ -31,7 +31,7 @@ public class WelcomeScreen extends BCLibLayoutScreen {
protected LayoutComponent<?, ?> initContent() { protected LayoutComponent<?, ?> initContent() {
VerticalStack content = new VerticalStack(fill(), fit()).setDebugName("content"); VerticalStack content = new VerticalStack(fill(), fit()).setDebugName("content");
content.addImage(fill(), fit(), BACKGROUND, new Size(427, 100)); content.addImage(fill(), fit(), BACKGROUND, new Size(854 / 2, 200 / 2));
content.addHorizontalLine(1).setColor(ColorHelper.BLACK); content.addHorizontalLine(1).setColor(ColorHelper.BLACK);
content.addSpacer(16); content.addSpacer(16);
HorizontalStack headerRow = content.addRow(fit(), fit()).setDebugName("title bar").centerHorizontal(); HorizontalStack headerRow = content.addRow(fit(), fit()).setDebugName("title bar").centerHorizontal();