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

more stuff!

This commit is contained in:
2025-04-05 08:55:56 +02:00
parent 9f5f951a9f
commit 48918ba4bf
13 changed files with 275 additions and 97 deletions

View File

@@ -10,17 +10,22 @@ template $FlashcardsCreateCardDialog : Adw.AlertDialog {
]
response => $on_response();
Adw.EntryRow titleEntry {
title: _("Title");
styles [
"card",
]
}
Box {
orientation: vertical;
spacing: 12;
Adw.EntryRow answerEntry {
title: _("Answer");
styles [
"card",
]
Adw.EntryRow titleEntry {
title: _("Title");
styles [
"card",
]
}
Adw.EntryRow answerEntry {
title: _("Answer");
styles [
"card",
]
}
}
}

View File

@@ -29,10 +29,11 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
tooltip-text: _("Create category");
}
[start]
Gtk.Button {
Gtk.Button delete_category_button {
icon-name: "user-trash-symbolic";
clicked => $on_delete_category();
tooltip-text: _("Delete category");
visible: false;
}
[end]
Gtk.MenuButton {
@@ -62,16 +63,18 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
[top]
Adw.HeaderBar {
[start]
Gtk.Button {
Gtk.Button add_card_button {
icon-name: "list-add-symbolic";
clicked => $on_add_card();
tooltip-text: _("Add flashcard");
visible: false;
}
[start]
Gtk.Button {
Gtk.Button delete_card_button {
icon-name: "user-trash-symbolic";
clicked => $on_delete_card();
tooltip-text: _("Delete flashcard");
visible: false;
}
[title]
Adw.WindowTitle title {
@@ -107,10 +110,11 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
margin-start: 12;
margin-end: 12;
Box {
Button {
styles ["card", "activatable"]
halign: center;
Label {
clicked => $on_flip_card();
Label card_title {
styles ["title-4"]
margin-top: 24;
margin-bottom: 24;
@@ -130,9 +134,9 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
styles ["linked"]
Button {
styles ["pill"]
label: _("Easy");
label: _("Hard");
hexpand: true;
clicked => $on_answer_easy();
clicked => $on_answer_hard();
}
Button {
styles ["pill"]
@@ -142,9 +146,9 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
}
Button {
styles ["pill"]
label: _("Hard");
label: _("Easy");
hexpand: true;
clicked => $on_answer_hard();
clicked => $on_answer_easy();
}
}
}