From 33e61b16363a67a989acce1d3ca375637316b1df Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 17 Aug 2024 21:01:51 +0200 Subject: app: add skip-defeated preference --- ui/include/turns/ui/widgets/preferences.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/include') diff --git a/ui/include/turns/ui/widgets/preferences.hpp b/ui/include/turns/ui/widgets/preferences.hpp index 749d4fd..449957d 100644 --- a/ui/include/turns/ui/widgets/preferences.hpp +++ b/ui/include/turns/ui/widgets/preferences.hpp @@ -2,6 +2,7 @@ #define TURNS_UI_WIDGETS_PREFERENCES_HPP #include "turns/adw/preferencespage.hpp" +#include "turns/adw/switchrow.hpp" #include "turns/ui/widgets/template_widget.hpp" #include @@ -26,6 +27,7 @@ namespace turns::ui::widgets "friendly_color_button", "hostile_color_button", "secret_color_button", + "skip_defeated", }; explicit preferences(Glib::RefPtr settings = {}); @@ -43,6 +45,7 @@ namespace turns::ui::widgets Gtk::ColorDialogButton * m_friendly_color_button{}; Gtk::ColorDialogButton * m_hostile_color_button{}; Gtk::ColorDialogButton * m_secret_color_button{}; + adw::SwitchRow * m_skip_defeated{}; }; } // namespace turns::ui::widgets -- cgit v1.2.3