fractal/data/resources/ui/room-creation.ui
2021-09-29 12:48:22 +02:00

182 lines
7.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="RoomCreation" parent="AdwWindow">
<property name="title" translatable="yes">Create new Room</property>
<property name="default-widget">create_button</property>
<property name="modal">True</property>
<property name="default-width">380</property>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkHeaderBar">
<property name="show-title-buttons">False</property>
<child type="start">
<object class="GtkButton" id="cancel_button">
<property name="label" translatable="yes">_Cancel</property>
<property name="use_underline">True</property>
</object>
</child>
<child type="end">
<object class="SpinnerButton" id="create_button">
<property name="label" translatable="yes">C_reate</property>
<property name="use_underline">True</property>
<property name="sensitive">False</property>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkRevealer" id="error_label_revealer">
<property name="child">
<object class="GtkLabel" id="error_label">
<property name="wrap">True</property>
<property name="wrap-mode">word-char</property>
<property name="margin-top">24</property>
<style>
<class name="error"/>
</style>
</object>
</property>
</object>
</child>
<child>
<object class="GtkListBox" id="content">
<property name="selection-mode">none</property>
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="margin-start">24</property>
<property name="margin-end">24</property>
<style>
<class name="content"/>
</style>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Room Name</property>
<property name="selectable">False</property>
<property name="use_underline">True</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<child>
<object class="GtkEntry" id="room_name">
<property name="valign">center</property>
<property name="vexpand">True</property>
</object>
</child>
<child>
<object class="GtkRevealer" id="room_name_error_revealer">
<property name="child">
<object class="GtkLabel" id="room_name_error">
<property name="valign">start</property>
<property name="xalign">0.0</property>
<property name="margin-top">6</property>
<style>
<class name="error"/>
<class name="caption"/>
</style>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Visibility</property>
<property name="selectable">False</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkToggleButton" id="private_button">
<property name="label" translatable="yes">_Private</property>
<property name="use_underline">True</property>
<property name="active">True</property>
</object>
</child>
<child>
<object class="GtkToggleButton" id="public_button">
<property name="label" translatable="yes">P_ublic</property>
<property name="use_underline">True</property>
<property name="group">private_button</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow">
<property name="visible" bind-source="public_button" bind-property="active" bind-flags="sync-create"/>
<property name="title" translatable="yes">Room Address</property>
<property name="selectable">False</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<child>
<object class="GtkBox">
<property name="valign">center</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel">
<property name="label">#</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkEntry" id="room_address">
<property name="valign">center</property>
<property name="max-width-chars">10</property>
</object>
</child>
<child>
<object class="GtkLabel" id="server_name">
<property name="label">:gnome.org</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkRevealer" id="room_address_error_revealer">
<property name="child">
<object class="GtkLabel" id="room_address_error">
<property name="valign">start</property>
<property name="xalign">0.0</property>
<property name="margin-top">6</property>
<style>
<class name="error"/>
<class name="caption"/>
</style>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</template>
</interface>