mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 09:01:37 +01:00
more stuff!
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user