<?xml version="1.0" encoding="UTF-8"?>

<?import com.marvinelsen.willow.ui.cells.DictionaryEntryCellFactory?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.ProgressIndicator?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.layout.*?>
<BorderPane xmlns="http://javafx.com/javafx/22" xmlns:fx="http://javafx.com/fxml/1"
            fx:controller="com.marvinelsen.willow.ui.controllers.MainController"
            stylesheets="/css/main.css">
    <top>
        <fx:include source="/fxml/menu.fxml"/>
    </top>
    <center>
        <VBox spacing="8.0" BorderPane.alignment="CENTER">
            <BorderPane.margin>
                <Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
            </BorderPane.margin>
            <fx:include source="/fxml/search.fxml"/>
            <SplitPane dividerPositions="0.33" VBox.vgrow="ALWAYS">
                <StackPane>
                    <ListView fx:id="listViewSearchResults" disable="true">
                        <cellFactory>
                            <DictionaryEntryCellFactory/>
                        </cellFactory>
                    </ListView>
                    <Label fx:id="labelNoEntriesFound" text="%list.no_entries_found" textAlignment="CENTER"
                           visible="false" wrapText="true">
                        <padding>
                            <Insets bottom="8.0" left="8.0" right="8.0" top="8.0"/>
                        </padding>
                    </Label>
                    <ProgressIndicator fx:id="progressIndicatorEntries" visible="false"/>
                </StackPane>
                <fx:include source="/fxml/details.fxml"/>
            </SplitPane>
        </VBox>
    </center>
</BorderPane>
