cards preview are now displaying, some improvements and renaming

This commit is contained in:
2024-04-06 02:06:25 +03:00
parent 8d17e4e474
commit fa260bb8f5
10 changed files with 158 additions and 70 deletions

View File

@@ -32,14 +32,15 @@
</object>
</child>
<child>
<object class="GtkScrolledWindow" id="cards">
<object class="GtkScrolledWindow" id="cards_scrolled_window">
<property name="halign">GTK_ALIGN_FILL</property>
<property name="valign">GTK_ALIGN_FILL</property>
<property name="vexpand">true</property>
<child>
<object class="CardEntry" id="first">
<property name="hieroglyph">ka</property>
<property name="translation">tr</property>
<object class="GtkBox" id="cards">
<property name="orientation">vertical</property>
<property name="halign">GTK_ALIGN_FILL</property>
<property name="valign">GTK_ALIGN_FILL</property>
</object>
</child>
</object>

View File

@@ -10,10 +10,9 @@
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_CENTER</property>
<child>
<object class="GtkPicture" id="image">
<object class="GtkPicture" id="picture">
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="file">/home/leca/Downloads/2648 - SoyBooru.png</property>
</object>
</child>
<child>

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CardEntry" parent="GtkWidget">
<property name="image_hash"></property>
<property name="imagepath"></property>
<property name="hieroglyph"></property>
<property name="translation"></property>
<property name="reading"></property>
<child>
<object class="GtkPicture" id="picture">
<property name="halign">GTK_ALIGN_CENTER</property>
@@ -17,7 +17,7 @@
</object>
</child>
<child>
<object class="GtkLabel" id="translation_label">
<object class="GtkLabel" id="reading_label">
<property name="halign">GTK_ALIGN_START</property>
<property name="valign">GTK_ALIGN_START</property>
</object>