<ui:FancyWindow xmlns="https://spacestation14.io"
                xmlns:ui="clr-namespace:Content.Client.UserInterface"
                Title="{Loc 'gravity-generator-window-title'}"
                MinSize="270 130"
                SetSize="360 180">
    <BoxContainer Margin="4 0" Orientation="Horizontal">
        <BoxContainer Orientation="Vertical" HorizontalExpand="True">
            <GridContainer Margin="2 0 0 0" Columns="2">
                <!-- Power -->
                <Label Text="{Loc 'gravity-generator-window-power'}" HorizontalExpand="True" StyleClasses="StatusFieldTitle" />
                <BoxContainer Orientation="Horizontal" MinWidth="120">
                    <Button Name="OnButton" Text="{Loc 'gravity-generator-window-power-on'}" StyleClasses="OpenRight" />
                    <Button Name="OffButton" Text="{Loc 'gravity-generator-window-power-off'}" StyleClasses="OpenLeft" />
                </BoxContainer>
                <Control /> <!-- Empty control to act as a spacer in the grid. -->
                <Label Name="PowerLabel" Text="0 / 0 W" />
                <!-- Status -->
                <Label Text="{Loc 'gravity-generator-window-status'}"  StyleClasses="StatusFieldTitle" />
                <Label Name="StatusLabel" Text="{Loc 'gravity-generator-window-status-fully-charged'}" />
                <!-- ETA -->
                <Label Text="{Loc 'gravity-generator-window-eta'}" StyleClasses="StatusFieldTitle" />
                <Label Name="EtaLabel" Text="N/A" />
                <!-- Charge -->
                <Label Text="{Loc 'gravity-generator-window-charge'}" StyleClasses="StatusFieldTitle" />
                <ProgressBar Name="ChargeBar" MaxValue="255">
                    <Label Name="ChargeText" Margin="4 0" Text="0 %" />
                </ProgressBar>
            </GridContainer>
        </BoxContainer>
        <PanelContainer Margin="12 0 0 0" StyleClasses="Inset" VerticalAlignment="Center">
            <SpriteView Name="EntityView" SetSize="96 96" OverrideDirection="South" />
        </PanelContainer>
    </BoxContainer>

</ui:FancyWindow>
