aboutsummaryrefslogtreecommitdiff
path: root/res/widgets/participant_list_row.ui
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 /res/widgets/participant_list_row.ui
parentf8bfd268523ff5abd3cf5490d5b892ff49954f47 (diff)
downloadturns-992d7883ee42f5eb5083d27c5f095a8a4821d0dd.tar.xz
turns-992d7883ee42f5eb5083d27c5f095a8a4821d0dd.zip
app/ui: simplify participant rows
Diffstat (limited to 'res/widgets/participant_list_row.ui')
-rw-r--r--res/widgets/participant_list_row.ui51
1 files changed, 24 insertions, 27 deletions
diff --git a/res/widgets/participant_list_row.ui b/res/widgets/participant_list_row.ui
index c0e3895..fca9f22 100644
--- a/res/widgets/participant_list_row.ui
+++ b/res/widgets/participant_list_row.ui
@@ -6,40 +6,38 @@
<requires lib="gtk" version="4.14"/>
<template class="gtkmm__CustomObject_participant_list_row" parent="GtkListBoxRow">
<property name="child">
- <object class="GtkBox" id="header">
+ <object class="GtkBox">
<property name="css-classes">header</property>
<child>
- <object class="GtkBox" id="prefixes">
- <property name="visible">False</property>
+ <object class="GtkBox">
+ <child>
+ <object class="GtkToggleButton" id="toggle_defeated">
+ <property name="halign">center</property>
+ <property name="icon-name">face-smile-symbolic</property>
+ <property name="valign">center</property>
+ <style>
+ <class name="circular"/>
+ </style>
+ </object>
+ </child>
<style>
<class name="prefixes"/>
</style>
</object>
</child>
<child>
- <object class="GtkImage" id="image">
- <property name="icon-name">face-smile</property>
- <property name="valign">center</property>
- <property name="visible">False</property>
- <style>
- <class name="icon"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkBox" id="title_box">
+ <object class="GtkBox">
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
<property name="valign">center</property>
<child>
<object class="GtkEditableLabel" id="title">
- <property name="editable">False</property>
<property name="visible">False</property>
<style>
<class name="title"/>
</style>
<!-- Custom object fragments -->
- <property name="editable" bind-source="edit" bind-property="active" bind-flags="sync-create"/>
+ <property name="sensitive" bind-source="toggle_defeated" bind-property="active" bind-flags="sync-create|invert-boolean"/>
</object>
</child>
<child>
@@ -52,6 +50,8 @@
<style>
<class name="subtitle"/>
</style>
+ <!-- Custom object fragments -->
+ <property name="sensitive" bind-source="toggle_defeated" bind-property="active" bind-flags="sync-create|invert-boolean"/>
</object>
</child>
<style>
@@ -60,18 +60,17 @@
</object>
</child>
<child>
- <object class="GtkBox" id="suffixes">
+ <object class="GtkBox">
<property name="valign">center</property>
<child>
- <object class="GtkToggleButton" id="edit">
+ <object class="GtkButton" id="edit">
<property name="icon-name">document-edit-symbolic</property>
+ <style>
+ <class name="circular"/>
+ <class name="suggested-action"/>
+ </style>
<!-- Custom object fragments -->
- <property name="active" bind-source="title" bind-property="editing" bind-flags="sync-create"/>
- </object>
- </child>
- <child>
- <object class="GtkSwitch">
- <property name="valign">center</property>
+ <property name="sensitive" bind-source="toggle_defeated" bind-property="active" bind-flags="sync-create|invert-boolean"/>
</object>
</child>
<style>
@@ -82,8 +81,6 @@
</object>
</property>
<property name="valign">center</property>
- <style>
- <class name="view"/>
- </style>
+ <style/>
</template>
</interface>