added search bar and dropdown to XML

This commit is contained in:
Chr1Z93 2024-10-07 23:49:27 +02:00
parent f2279c55bd
commit 2704465cc0

View File

@ -71,6 +71,29 @@
<HorizontalLayout> <HorizontalLayout>
<VerticalLayout preferredWidth="600"> <VerticalLayout preferredWidth="600">
<!-- search bar and filter dropdown -->
<HorizontalLayout preferredHeight="40"
padding="5 5 10 0"
spacing="5">
<InputField id="searchField"
preferredWidth="290"
fontSize="22"
placeholder="Search by name..."
color="white"
textColor="Black"
textOffset="5 5 5 5"
font="font_teutonic-arkham"
onValueChanged="onSearchValueChanged"/>
<Dropdown id="authorDropdown"
preferredWidth="290"
fontSize="22"
font="font_teutonic-arkham"
onValueChanged="onAuthorFilterChanged">
<Option>All Authors</Option>
<!-- this will be filled via scripting -->
</Dropdown>
</HorizontalLayout>
<!-- tab selection --> <!-- tab selection -->
<HorizontalLayout preferredHeight="60" <HorizontalLayout preferredHeight="60"
padding="5" padding="5"
@ -136,7 +159,7 @@
resizeTextMaxSize="18">PreviewDescription</Text> resizeTextMaxSize="18">PreviewDescription</Text>
</Panel> </Panel>
<!-- download button / progress bar (visibility handled by lua code)--> <!-- download button / progress bar (visibility handled by lua code) -->
<Panel preferredHeight="60"> <Panel preferredHeight="60">
<!-- download button --> <!-- download button -->
<Button id="download_button" <Button id="download_button"