Flat Tag Serializing
This commit is contained in:
parent
4c5276738a
commit
9807b378cb
2 changed files with 73 additions and 35 deletions
src
13
src/main.rs
13
src/main.rs
|
@ -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() {
|
||||
|
|
Reference in a new issue