Add Window to edit/delete list
This commit is contained in:
parent
fa5fb4edad
commit
c41e0ee641
7 changed files with 95 additions and 4 deletions
|
@ -120,17 +120,24 @@ export component AppWindow inherits Window {
|
|||
|
||||
HorizontalLayout {
|
||||
alignment: start;
|
||||
spacing: 8px;
|
||||
if State.current-list.source == ListSource.Local : VButton {
|
||||
icon-svg: Svg.plus;
|
||||
text: "Add";
|
||||
clicked => { State.open-add-anime-window() }
|
||||
}
|
||||
if State.current-list.source == ListSource.Anilist : VButton {
|
||||
icon-svg: Svg.refresh;
|
||||
text: "Sync";
|
||||
clicked => { State.sync-list() }
|
||||
}
|
||||
VButton {
|
||||
text: "Settings";
|
||||
icon-svg: Svg.cog;
|
||||
clicked => { State.open-edit-list-window(State.current-list.index) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
animes-grid-background := Rectangle {
|
||||
//background: #111111;
|
||||
|
@ -172,7 +179,7 @@ export component AppWindow inherits Window {
|
|||
popup := VPopupIconMenu {
|
||||
VActionButton {
|
||||
icon-svg: Svg.trash;
|
||||
icon-colorize: Colors.red;
|
||||
icon-colorize: Palette.red;
|
||||
icon-size: 1.5rem;
|
||||
border-radius: 0;
|
||||
clicked => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue