mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-10-31 21:20:24 +00:00
130 lines
4.6 KiB
XML
Executable file
130 lines
4.6 KiB
XML
Executable file
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="TootleViewsSidebar" parent="GtkBox">
|
|
<property name="width_request">300</property>
|
|
<property name="orientation">vertical</property>
|
|
|
|
<child>
|
|
<object class="AdwHeaderBar">
|
|
<property name="show-start-title-buttons">0</property>
|
|
<property name="show-end-title-buttons">0</property>
|
|
<child type="start">
|
|
<object class="GtkButton" id="compose_button">
|
|
<property name="icon-name">document-edit-symbolic</property>
|
|
<property name="action-name">app.compose</property>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkToggleButton" id="accounts_button">
|
|
<property name="icon-name">system-switch-user-symbolic</property>
|
|
<signal name="toggled" handler="on_mode_changed"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkScrolledWindow">
|
|
<property name="vexpand">1</property>
|
|
<property name="child">
|
|
<object class="GtkViewport">
|
|
<child>
|
|
<object class="GtkStack" id="mode">
|
|
<property name="transition_type">crossfade</property>
|
|
|
|
<!-- Account actions -->
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">items</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
|
|
<!-- Header -->
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="margin-top">12</property>
|
|
<property name="margin-bottom">12</property>
|
|
<property name="spacing">6</property>
|
|
|
|
<child>
|
|
<object class="TootleWidgetsAvatar" id="avatar">
|
|
<property name="size">64</property>
|
|
<property name="halign">start</property>
|
|
<property name="margin-bottom">6</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkLabel" id="title">
|
|
<property name="label">Account Name</property>
|
|
<property name="xalign">0</property>
|
|
<style>
|
|
<class name="title-2"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkLabel" id="subtitle">
|
|
<property name="label">Handle</property>
|
|
<property name="xalign">0</property>
|
|
<style>
|
|
<class name="body"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkSeparator">
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkListBox" id="items">
|
|
<property name="selection_mode">none</property>
|
|
<signal name="row_activated" handler="on_item_activated"/>
|
|
<style>
|
|
<class name="navigation-sidebar"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Active account menu -->
|
|
<child><object class="GtkStackPage"><property name="name">saved_accounts</property><property name="child">
|
|
<object class="GtkListBox" id="saved_accounts">
|
|
<property name="selection_mode">single</property>
|
|
<signal name="row_activated" handler="on_account_activated"/>
|
|
<style>
|
|
<class name="navigation-sidebar"/>
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object></child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
|
|
<style>
|
|
<class name="sidebar"/>
|
|
</style>
|
|
|
|
</template>
|
|
</interface>
|
|
|