summaryrefslogtreecommitdiff
path: root/app/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-13 17:40:58 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-13 17:40:58 +0200
commit992d7883ee42f5eb5083d27c5f095a8a4821d0dd (patch)
treefd09b3ca5b8605bc1ad786bde642b4f8cb3ebe27 /app/include
parentf8bfd268523ff5abd3cf5490d5b892ff49954f47 (diff)
downloadturns-992d7883ee42f5eb5083d27c5f095a8a4821d0dd.tar.xz
turns-992d7883ee42f5eb5083d27c5f095a8a4821d0dd.zip
app/ui: simplify participant rows
Diffstat (limited to 'app/include')
-rw-r--r--app/include/turns/app/widgets/participant_list_row.hpp19
1 files changed, 5 insertions, 14 deletions
diff --git a/app/include/turns/app/widgets/participant_list_row.hpp b/app/include/turns/app/widgets/participant_list_row.hpp
index 172e9ac..070d540 100644
--- a/app/include/turns/app/widgets/participant_list_row.hpp
+++ b/app/include/turns/app/widgets/participant_list_row.hpp
@@ -6,9 +6,8 @@
#include <array>
#include <glibmm/ustring.h>
-#include <gtkmm/box.h>
+#include <gtkmm/button.h>
#include <gtkmm/editablelabel.h>
-#include <gtkmm/image.h>
#include <gtkmm/label.h>
#include <gtkmm/listboxrow.h>
#include <gtkmm/togglebutton.h>
@@ -19,13 +18,9 @@ namespace turns::app::widgets
{
auto constexpr inline static children = std::array{
"edit",
- "header",
- "prefixes",
- "image",
- "title_box",
- "title",
"subtitle",
- "suffixes",
+ "title",
+ "toggle_defeated",
};
participant_list_row();
@@ -34,14 +29,10 @@ namespace turns::app::widgets
auto set_title(Glib::ustring const & value) -> void;
private:
- Gtk::ToggleButton * m_edit;
- Gtk::Box * m_header;
- Gtk::Image * m_image;
- Gtk::Box * m_prefixes;
+ Gtk::Button * m_edit;
Gtk::Label * m_subtitle;
- Gtk::Box * m_suffixes;
Gtk::EditableLabel * m_title;
- Gtk::Box * m_title_box;
+ Gtk::ToggleButton * m_toggle_defeated;
};
} // namespace turns::app::widgets