mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 10:01:37 +01:00
update ui, add metainfo
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
<gresource prefix="/li/sopht/flashcards">
|
||||
<file preprocess="xml-stripblanks">window.ui</file>
|
||||
<file preprocess="xml-stripblanks">create-category.ui</file>
|
||||
<file alias="appdata" compressed="true" preprocess="xml-stripblanks">../li.sopht.Flashcards.metainfo.xml</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
@@ -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 {
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user