update ui

This commit is contained in:
2024-04-01 15:42:50 +03:00
parent a4444a9fb1
commit deaa814423
19 changed files with 566 additions and 274 deletions

26
resources/guessing.ui.xml Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GuessingScene" parent="GtkApplicationWindow">
<property name="title">Guessing</property>
<child>
<object class="GtkBox" id="content">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="question_label">
<property name="label">There's a question:</property>
</object>
</child>
<child>
<object class="GtkEntry" id="answer_entry">
<property name="placeholder_text">Answer</property>
</object>
</child>
<child>
<object class="GtkLabel" id="stats_label">
<property name="label">Correct|Incorrect: 0|0</property>
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="MemoryCardsSetupScene" parent="GtkApplicationWindow">
<property name="title">Memory cards setup</property>
<child>
<object class="GtkBox" id="content">
<property name="orientation">horizontal</property>
<child>
<object class="GtkButton" id="edit_button">
<property name="label">test</property>
</object>
</child>
<child>
<object class="GtkButton" id="start_button">
<property name="label">test2</property>
</object>
</child>
</object>
</child>
</template>
</interface>

21
resources/menu.ui.xml Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="MenuScene" parent="GtkApplicationWindow">
<property name="title">Menu</property>
<child>
<object class="GtkBox" id="content">
<property name="orientation">horizontal</property>
<child>
<object class="GtkButton" id="hiragana_and_katakana">
<property name="label">Practice hiragana and katakana</property>
</object>
</child>
<child>
<object class="GtkButton" id="memory_cards">
<property name="label">Practice vocabulary with memory cards</property>
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/foxarmy/learn-hieroglyph/">
<file compressed="true" preprocess="xml-stripblanks">menu.ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">guessing.ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">settings.gschema.xml</file>
<file compressed="true" preprocess="xml-stripblanks">memory_cards_settings.ui.xml</file>
</gresource>
</gresources>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<schemalist>
<schema id="org.foxarmy.learn-hieroglyph" path="/org/foxarmy/learn-hieroglyph/">
<key name="is-rtk-enabled" type="b">
<default>false</default>
<summary>Enable romaji to kana</summary>
</key>
<key name="is-ktr-enabled" type="b">
<default>true</default>
<summary>Enable kana to romaji</summary>
</key>
<key name="is-hiragana-enabled" type="b">
<default>true</default>
<summary>Enable hiragana</summary>
</key>
<key name="is-katakana-enabled" type="b">
<default>false</default>
<summary>Enable katakana</summary>
</key>
</schema>
</schemalist>