using Gtk 4.0; using Adw 1; template $PreferencesDialog : Adw.Dialog { title: _("Preferences"); content-width: 500; content-height: 400; Adw.ToolbarView { [top] Adw.HeaderBar {} Adw.PreferencesPage { Adw.PreferencesGroup { title: _("Images"); Adw.SwitchRow cache_images_row { title: _("Cache Images"); subtitle: _("Download images for offline reading (skipped on metered connections)"); } } Adw.PreferencesGroup { title: _("Content Filters"); description: _("One rule per line: domain find replace [find replace …]\n\nExample:\n www.imycomic.com -150x150.jpg .jpg"); TextView filters_text_view { monospace: true; wrap-mode: word; top-margin: 8; bottom-margin: 8; left-margin: 8; right-margin: 8; } } } } }