some renaming, creating GuessingSetup scene and LabledSwitch

This commit is contained in:
2024-04-02 01:32:41 +03:00
parent e0ef46d0b8
commit 1da36b93d1
18 changed files with 146 additions and 70 deletions

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GuessingSetupScene" parent="GtkApplicationWindow">
<property name="title">Guessing settings</property>
<child>
<object class="GtkBox" id="content">
<property name="orientation">vertical</property>
<child>
<object class="LabledSwitch" id="hiragana-enable">
<!-- <property name="label_text">Enable hiragana?</property> -->
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/foxarmy/learn-hieroglyph/">
<file compressed="true" preprocess="xml-stripblanks">org.foxarmy.settings.gschema.xml</file>
<file compressed="true" preprocess="xml-stripblanks">menu/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">guessing/game/ui.xml</file>
<!-- <file compressed="true" preprocess="xml-stripblanks">guessing/settings/ui.xml</file> -->
<file compressed="true" preprocess="xml-stripblanks">cards/settings/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">guessing/setup/ui.xml</file>
<!-- <file compressed="true" preprocess="xml-stripblanks">cards/game/ui.xml</file> -->
<file compressed="true" preprocess="xml-stripblanks">cards/setup/ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">widgets/labled_switch/template.ui.xml</file>
</gresource>
</gresources>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="LabledSwitch" parent="GtkWidget">
<!-- <property name="layout-managet">GtkBoxLayout</property> -->
<property name="label_text">Practice vocabulary with memory cards</property>
<child>
<object class="GtkSwitch" id="switch_obj">
</object>
</child>
<child>
<object class="GtkLabel" id="label_obj">
<property name="label">There's a question:</property>
</object>
</child>
</template>
</interface>