Tooth/data/ui/widgets/votebox.ui
Juan Campos 8f30b48b88
feat: polls (#25)
* poll support

* feat: let spoiler button handle poll's spoiler status

* fix: change the design to match both mastodon and hig

* feat: voted indicator

* feat: treat voted as expired

Co-authored-by: Evangelos Paterakis <evan@geopjr.dev>
2022-12-06 04:54:18 +02:00

37 lines
1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="ToothWidgetsVoteBox" parent="GtkBox">
<property name="margin_top">12</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkListBox" id="pollBox">
<child>
<placeholder/>
</child>
<style>
<class name="boxed-list"/>
</style>
</object>
</child>
<child>
<object class="GtkBox" id="pollActionBox">
<property name="margin_top">10</property>
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="button_vote">
<property name="visible">0</property>
</object>
</child>
<child>
<object class="GtkLabel" id="people_label">
</object>
</child>
<child>
<object class="GtkLabel" id="expires_label">
</object>
</child>
</object>
</child>
</template>
</interface>