use crate::widgets::labled_switch::LabledSwitch; use crate::ui::guessing::game::GuessingScene; use crate::APP_ID; use gio::Settings; use glib::subclass::InitializingObject; use gtk::glib::closure_local; use gtk::subclass::prelude::*; use gtk::{gio, glib, prelude::*, Button, CompositeTemplate}; #[derive(CompositeTemplate, Default)] #[template(resource = "/org/foxarmy/learn-hieroglyph/guessing/setup/ui.xml")] pub struct GuessingSetupScene { #[template_child] pub hiragana_enable: TemplateChild, #[template_child] pub katakana_enable: TemplateChild, #[template_child] pub ktr_enable: TemplateChild, #[template_child] pub rtk_enable: TemplateChild, #[template_child] pub start_button: TemplateChild