<?xml version="1.0" encoding="UTF-8"?>
<interface>
    <requires lib="gtk" version="4.0"/>
    <requires lib="adw" version="1.0"/>
    <object class="AdwPreferencesDialog" id="preferences">
        <property name="title" translatable="yes">Preferences</property>
        <child>
            <object class="AdwPreferencesPage" id="appearance_page">
                <property name="title" translatable="yes">Appearance</property>
                <property name="icon-name">applications-graphics-symbolic</property>
                <child>
                    <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Colors</property>
                        <child>
                            <object class="AdwComboRow" id="style_variant">
                                <property name="title">Force Dark or Light Color Scheme</property>
                                <property name="model">
                                    <object class="GtkStringList">
                                        <items>
                                            <item translatable="yes">System</item>
                                            <item translatable="yes">Dark</item>
                                            <item translatable="yes">Light</item>
                                        </items>
                                    </object>
                                </property>
                            </object>
                        </child>
                    </object>
                </child>
                <child>
                    <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Language</property>
                        <child>
                            <object class="AdwSwitchRow" id="use_english">
                                <property name="title" translatable="yes">Change from System Language to English</property>
                            </object>
                        </child>
                    </object>
                </child>
                <child>
                    <object class="AdwPreferencesGroup">
                        <property name="title" translatable="yes">Editing</property>
                        <child>
                            <object class="AdwSwitchRow" id="reset_tool_after_create">
                                <property name="title" translatable="yes">Reset Tool Automatically</property>
                                <property name="subtitle" translatable="yes">After an element is created, switch back to the pointer tool.</property>
                            </object>
                        </child>
                        <child>
                            <object class="AdwSwitchRow" id="remove_unused_elements">
                                <property name="title" translatable="yes">Remove Unused Elements</property>
                                <property name="subtitle" translatable="yes">Automatically remove elements no longer in use in any diagram.</property>
                            </object>
                        </child>
                    </object>
                </child>
            </object>
        </child>
    </object>
</interface>
