1
0
Fork 0

Flat Tag Serializing

This commit is contained in:
Neshura 2023-09-29 00:21:42 +02:00
parent 4c5276738a
commit 9807b378cb
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 73 additions and 35 deletions

View file

@ -281,8 +281,19 @@ impl eframe::App for Generator<'_> {
tags: Vec<String>,
characters: Vec<String>,
*/
text_input(ui, &mut self.metadata[0].genre, "Genre", false);
// TODO tag list (List of bordered labels with plus that opens a new text edit)
ui.horizontal(|row| {
row.label("Tags:");
for mut tag in &mut self.metadata[0].tags {
text_input(row, &mut tag, "", false);
}
if row.button("+").clicked() {
&self.metadata[0].tags.push("".to_string());
};
});
text_input(ui, &mut self.metadata[0].genre, "Genre", false);
ui.horizontal(|row| {
row.label("Page Count:");
if row.button("-").clicked() {