Switch from QT to Slint
This commit is contained in:
parent
85be9fea57
commit
c7bb9f1f29
45 changed files with 10680 additions and 2815 deletions
35
ui/state.slint
Normal file
35
ui/state.slint
Normal file
|
@ -0,0 +1,35 @@
|
|||
export struct Anime {
|
||||
id: int,
|
||||
title: string,
|
||||
description: string,
|
||||
image-url: string,
|
||||
image: image
|
||||
}
|
||||
|
||||
export struct List {
|
||||
name: string,
|
||||
selected: bool,
|
||||
}
|
||||
|
||||
export struct CurrentList {
|
||||
name: string,
|
||||
animes: [Anime]
|
||||
}
|
||||
|
||||
export struct AddAnilistListParams {
|
||||
name: string,
|
||||
anilist-user-name: string,
|
||||
anilist-list-name: string
|
||||
}
|
||||
|
||||
export global State {
|
||||
|
||||
in-out property <[List]> lists;
|
||||
in-out property <CurrentList> current-list;
|
||||
|
||||
callback select-list(int);
|
||||
callback sync-list(string);
|
||||
callback add-anilist-list(AddAnilistListParams);
|
||||
|
||||
callback config-changed();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue