189 lines
7.1 KiB
XML
189 lines
7.1 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!-- Created with Cambalache 0.16.0 -->
|
|
<interface>
|
|
<!-- interface-name main-window.ui -->
|
|
<requires lib="gtk" version="4.12"/>
|
|
<template class="SLMainPanel" parent="GtkBox">
|
|
<child>
|
|
<object class="GtkOverlay" id="overlay">
|
|
<child>
|
|
<object class="GtkBox" id="content_wrapper">
|
|
<property name="orientation">vertical</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkSearchEntry" id="search_box">
|
|
<property name="hexpand">True</property>
|
|
<property name="placeholder-text">Filter by email, description, etc.</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkDropDown" id="view_dropdown">
|
|
<property name="hexpand">True</property>
|
|
<!-- <property name="model"> -->
|
|
<!-- <object class="GtkStringList"> -->
|
|
<!-- <items> -->
|
|
<!-- <item>All aliases</item> -->
|
|
<!-- <item>Pinned only</item> -->
|
|
<!-- <item>Enabled only</item> -->
|
|
<!-- <item>Disabled only</item> -->
|
|
<!-- </items> -->
|
|
<!-- </object> -->
|
|
<!-- </property> -->
|
|
<property name="selected">0</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="search_button">
|
|
<property name="label">Search</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<child>
|
|
<object class="GtkButton" id="new_button">
|
|
<property name="label">New</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="edit_button">
|
|
<property name="label">Edit</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="delete_button">
|
|
<property name="label">Delete</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="prev_page_button">
|
|
<property name="halign">end</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="page_label">
|
|
<property name="has-frame">False</property>
|
|
<property name="input-hints">no-emoji | no-spellcheck</property>
|
|
<property name="input-purpose">digits</property>
|
|
<property name="max-width-chars">0</property>
|
|
<property name="text">1</property>
|
|
<property name="truncate-multiline">True</property>
|
|
<property name="width-chars">5</property>
|
|
<property name="xalign">0.5</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="next_page_button">
|
|
<property name="icon-name">go-next-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkOverlay" id="scroll_overlay">
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkListView" id="alias_list_view">
|
|
<property name="factory">
|
|
<object class="GtkSignalListItemFactory" id="alias_item_factory"/>
|
|
</property>
|
|
<property name="model">
|
|
<object class="GtkMultiSelection" id="alias_selection_model"/>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkBox" id="loading_overlay">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkSpinner">
|
|
<property name="spinning">True</property>
|
|
<property name="valign">end</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label">Loading...</property>
|
|
<property name="valign">start</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
<object class="GtkLabel" id="no_content_label">
|
|
<property name="hexpand">True</property>
|
|
<property name="label">No more results</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
<object class="GtkBox" id="error_overlay">
|
|
<property name="hexpand">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="halign">center</property>
|
|
<property name="valign">end</property>
|
|
<child>
|
|
<object class="GtkButton" id="error_refresh_button">
|
|
<property name="halign">center</property>
|
|
<property name="icon-name">view-refresh-symbolic</property>
|
|
<property name="valign">end</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="error_close_button">
|
|
<property name="halign">center</property>
|
|
<property name="icon-name">window-close-symbolic</property>
|
|
<property name="valign">end</property>
|
|
<style>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="error_label">
|
|
<property name="label">ERROR</property>
|
|
<property name="valign">start</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="error-message-label"/>
|
|
<class name="loading-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<!-- Custom fragments -->
|
|
</interface>
|