def do_activate(self): self._settings = Gtk.Settings.get_default() self._settings.set_property('gtk-application-prefer-dark-theme', True)