From fa260bb8f59ecff543286ba6c4a1dccdc0056e28 Mon Sep 17 00:00:00 2001 From: leca Date: Sat, 6 Apr 2024 02:06:25 +0300 Subject: [PATCH] cards preview are now displaying, some improvements and renaming --- cards.drawio | 18 ++-- resources/cards/edit/ui.xml | 9 +- resources/cards/new/ui.xml | 3 +- resources/widgets/card_entry/template.ui.xml | 6 +- src/db.rs | 55 +++++++---- src/ui/cards/edit/imp.rs | 97 +++++++++++++++----- src/ui/cards/new/imp.rs | 2 +- src/ui/cards/new/mod.rs | 4 +- src/widgets/card_entry/imp.rs | 20 ++-- src/widgets/card_entry/mod.rs | 14 ++- 10 files changed, 158 insertions(+), 70 deletions(-) diff --git a/cards.drawio b/cards.drawio index f4482f3..6568a72 100644 --- a/cards.drawio +++ b/cards.drawio @@ -1,6 +1,6 @@ - + - + @@ -28,33 +28,33 @@ - + - + - + - + - + - + - + diff --git a/resources/cards/edit/ui.xml b/resources/cards/edit/ui.xml index 20c05b4..06143de 100644 --- a/resources/cards/edit/ui.xml +++ b/resources/cards/edit/ui.xml @@ -32,14 +32,15 @@ - + GTK_ALIGN_FILL GTK_ALIGN_FILL true - - ka - tr + + vertical + GTK_ALIGN_FILL + GTK_ALIGN_FILL diff --git a/resources/cards/new/ui.xml b/resources/cards/new/ui.xml index b9e0f4f..71de52a 100644 --- a/resources/cards/new/ui.xml +++ b/resources/cards/new/ui.xml @@ -10,10 +10,9 @@ GTK_ALIGN_CENTER GTK_ALIGN_CENTER - + GTK_ALIGN_CENTER GTK_ALIGN_CENTER - /home/leca/Downloads/2648 - SoyBooru.png diff --git a/resources/widgets/card_entry/template.ui.xml b/resources/widgets/card_entry/template.ui.xml index f2299e7..f4676b7 100644 --- a/resources/widgets/card_entry/template.ui.xml +++ b/resources/widgets/card_entry/template.ui.xml @@ -1,9 +1,9 @@