fractal/data/resources/ui/content-member-row.ui
2022-01-19 13:10:37 +01:00

94 lines
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="ContentMemberRow" parent="AdwBin">
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="child">
<object class="GtkBox" id="header">
<property name="spacing">12</property>
<style>
<class name="header"/>
</style>
<child>
<object class="ComponentsAvatar">
<property name="size">32</property>
<binding name="item">
<lookup name="avatar" type="Member">
<lookup name="member">ContentMemberRow</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<style>
<class name="title"/>
</style>
<child>
<object class="GtkBox">
<child>
<object class="GtkLabel" id="title">
<property name="halign">start</property>
<property name="ellipsize">end</property>
<binding name="label">
<lookup name="display-name" type="Member">
<lookup name="member">ContentMemberRow</lookup>
</lookup>
</binding>
<style>
<class name="title"/>
</style>
</object>
</child>
<child>
<object class="GtkImage" id="verified_icon">
<property name="icon-name">verified-symbolic</property>
<binding name="visible">
<lookup name="verified" type="User">
<lookup name="member">ContentMemberRow</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="Badge">
<binding name="power-level">
<lookup name="power-level" type="Member">
<lookup name="member">ContentMemberRow</lookup>
</lookup>
</binding>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="subtitle">
<property name="hexpand">True</property>
<property name="halign">start</property>
<property name="ellipsize">end</property>
<binding name="label">
<lookup name="user-id" type="Member">
<lookup name="member">ContentMemberRow</lookup>
</lookup>
</binding>
<style>
<class name="subtitle"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkToggleButton" id="menu_btn">
<property name="has-frame">False</property>
<property name="icon-name">view-more-symbolic</property>
</object>
</child>
</object>
</property>
</template>
</interface>