1
0
mirror of https://gitlab.cvh-server.de/skrause/flashcards.git synced 2025-12-12 09:01:37 +01:00

update ui, add metainfo

This commit is contained in:
2025-02-18 18:49:46 +01:00
parent 81d2e8d92e
commit f122102c3d
10 changed files with 208 additions and 69 deletions

View File

@@ -3,6 +3,8 @@ using Adw 1;
template $FlashcardsAppWindow : Adw.ApplicationWindow {
title: _("Flashcards");
default-width: 1200;
default-height: 600;
Adw.Breakpoint {
condition ( "max-width: 600sp" )
@@ -26,6 +28,11 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
icon-name: "list-add-symbolic";
clicked => $on_add_category();
}
[start]
Gtk.Button {
icon-name: "user-trash-symbolic";
clicked => $on_delete_category();
}
[end]
Gtk.MenuButton {
icon-name: "open-menu-symbolic";
@@ -66,27 +73,25 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
[title]
Adw.WindowTitle title {
title: _("Flashcards");
subtitle: _("Test");
subtitle: "Test";
}
}
content: Adw.Clamp {
Adw.Bin {
margin-top: 12;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
content: Adw.ViewStack main_view {
Adw.ViewStackPage {
child: Adw.StatusPage placeholder {
margin-top: 12;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
styles [
"card",
]
child: Label {
margin-top: 24;
margin-bottom: 24;
margin-start: 24;
margin-end: 24;
wrap: true;
label: "Wie viel Grad hat ein Kreis?";
title: _("Select a category");
icon-name: "edit-find-symbolic";
};
}
Adw.ViewStackPage {
child: Adw.Bin flashcard {
};
}
};