Switch from QT to Slint

This commit is contained in:
Vyn 2024-11-19 16:57:32 +01:00
parent 85be9fea57
commit c7bb9f1f29
45 changed files with 10680 additions and 2815 deletions

35
ui/state.slint Normal file
View 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();
}