Add switch to enable cards
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<interface>
 | 
			
		||||
    <template class="CardEntry" parent="GtkWidget">
 | 
			
		||||
        <!-- <property name="is_learning">false</property> -->
 | 
			
		||||
        <child>
 | 
			
		||||
            <object class="GtkImage" id="image">
 | 
			
		||||
                <property name="halign">GTK_ALIGN_START</property>
 | 
			
		||||
@@ -18,6 +19,13 @@
 | 
			
		||||
                <property name="margin-start">50</property>
 | 
			
		||||
            </object>
 | 
			
		||||
        </child>
 | 
			
		||||
        <child>
 | 
			
		||||
            <object class="GtkLabel" id="reading_label">
 | 
			
		||||
                <property name="halign">GTK_ALIGN_START</property>
 | 
			
		||||
                <property name="valign">GTK_ALIGN_CENTER</property>
 | 
			
		||||
                <property name="margin-start">50</property>
 | 
			
		||||
            </object>
 | 
			
		||||
        </child>
 | 
			
		||||
        <child>
 | 
			
		||||
            <object class="GtkLabel" id="translation_label">
 | 
			
		||||
                <property name="halign">GTK_ALIGN_START</property>
 | 
			
		||||
@@ -25,6 +33,14 @@
 | 
			
		||||
                <property name="margin-end">50</property>
 | 
			
		||||
                <property name="hexpand-set">true</property>
 | 
			
		||||
                <property name="hexpand">true</property>
 | 
			
		||||
                <property name="width-chars">16</property>
 | 
			
		||||
                <property name="max-width-chars">16</property>
 | 
			
		||||
                <property name="wrap">true</property>
 | 
			
		||||
            </object>
 | 
			
		||||
        </child>
 | 
			
		||||
        <child>
 | 
			
		||||
            <object class="GtkSwitch" id="is_learning_switch">
 | 
			
		||||
                <property name="valign">GTK_ALIGN_CENTER</property>
 | 
			
		||||
            </object>
 | 
			
		||||
        </child>
 | 
			
		||||
        <child>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user