MainWindow.glade (Código)

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
    <requires lib="gtk+" version="3.24"/>
    <object class="GtkApplicationWindow" id="MainWindow">
        <property name="can-focus">False</property>
        <property name="title" translatable="yes">Utilizando modo escuro (dark mode)</property>
        <property name="default-width">683</property>
        <property name="default-height">384</property>
        <property name="icon">../../../assets/icons/icon.png</property>
        <child>
            <!-- n-columns=2 n-rows=1 -->
            <object class="GtkGrid">
                <property name="visible">True</property>
                <property name="can-focus">False</property>
                <property name="border-width">12</property>
                <property name="column-spacing">12</property>
                <child>
                    <object class="GtkLabel">
                        <property name="visible">True</property>
                        <property name="can-focus">False</property>
                        <property name="label" translatable="yes">Clique no switch para ativar ou desativar o modo
                            escuro (dark mode)
                        </property>
                    </object>
                    <packing>
                        <property name="left-attach">0</property>
                        <property name="top-attach">0</property>
                    </packing>
                </child>
                <child>
                    <object class="GtkSwitch" id="switch">
                        <property name="visible">True</property>
                        <property name="can-focus">True</property>
                        <signal name="activate" handler="on_switch_clicked" swapped="no"/>
                    </object>
                    <packing>
                        <property name="left-attach">1</property>
                        <property name="top-attach">0</property>
                    </packing>
                </child>
            </object>
        </child>
    </object>
</interface>