implemented labled switch

This commit is contained in:
2024-04-02 02:35:52 +03:00
parent d6b6c220b8
commit b01e248971
4 changed files with 33 additions and 7 deletions

View File

@@ -10,7 +10,13 @@ use gtk::{glib, CompositeTemplate};
#[template(resource = "/org/foxarmy/learn-hieroglyph/guessing/setup/ui.xml")]
pub struct GuessingSetupScene {
#[template_child]
pub question_label: TemplateChild<LabledSwitch>,
pub hiragana_enable: TemplateChild<LabledSwitch>,
#[template_child]
pub katakana_enable: TemplateChild<LabledSwitch>,
#[template_child]
pub ktr_enable: TemplateChild<LabledSwitch>,
#[template_child]
pub rtk_enable: TemplateChild<LabledSwitch>,
}
#[glib::object_subclass]
@@ -31,6 +37,8 @@ impl ObjectSubclass for GuessingSetupScene {
impl ObjectImpl for GuessingSetupScene {
fn constructed(&self) {
self.parent_constructed();
//TODO: tie switches to settings and make "start" button
}
}