diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/avi.png | bin | 0 -> 997 bytes | |||
-rw-r--r-- | data/login_window.ui | 178 | ||||
-rw-r--r-- | data/post.ui | 245 |
3 files changed, 318 insertions, 105 deletions
diff --git a/data/avi.png b/data/avi.png Binary files differnew file mode 100644 index 0000000..3fc699c --- /dev/null +++ b/data/avi.png diff --git a/data/login_window.ui b/data/login_window.ui new file mode 100644 index 0000000..9f409ff --- /dev/null +++ b/data/login_window.ui @@ -0,0 +1,178 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.20.4 --> +<interface> + <requires lib="gtk+" version="3.20"/> + <object class="GtkDialog" id="login_dialog"> + <property name="width_request">500</property> + <property name="height_request">400</property> + <property name="can_focus">False</property> + <property name="type_hint">dialog</property> + <child internal-child="vbox"> + <object class="GtkBox"> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child internal-child="action_area"> + <object class="GtkButtonBox"> + <property name="can_focus">False</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="login_button"> + <property name="label" translatable="yes">Login</property> + <property name="visible">True</property> + <property name="sensitive">False</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <signal name="clicked" handler="login_button_click" swapped="no"/> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="cancel_button"> + <property name="label" translatable="yes">Cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="width_request">250</property> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="valign">center</property> + <property name="margin_left">4</property> + <property name="margin_right">4</property> + <property name="margin_top">4</property> + <property name="margin_bottom">4</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="orientation">vertical</property> + <property name="spacing">4</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="label" translatable="yes">Instance Domain</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="instance_name"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="primary_icon_name">applications-internet</property> + <property name="secondary_icon_tooltip_text" translatable="yes">Instance Domain</property> + <property name="placeholder_text" translatable="yes">example.com</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="label" translatable="yes">Email</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="email"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="primary_icon_name">mail-mark-read</property> + <property name="placeholder_text" translatable="yes">username@example.com</property> + <property name="input_purpose">email</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">3</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="label" translatable="yes">Password</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">4</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="password"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">●</property> + <property name="primary_icon_name">help-about</property> + <property name="placeholder_text" translatable="yes">1234</property> + <property name="input_purpose">password</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">5</property> + </packing> + </child> + <child> + <object class="GtkSpinner" id="spinner"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="padding">4</property> + <property name="position">6</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + <child> + <placeholder/> + </child> + </object> +</interface> diff --git a/data/post.ui b/data/post.ui index da222d8..47f23ae 100644 --- a/data/post.ui +++ b/data/post.ui @@ -25,100 +25,49 @@ along with . If not, see <http://www.gnu.org/licenses/>. <object class="GtkBox" id="post_box"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_left">4</property> - <property name="margin_right">4</property> - <property name="margin_top">4</property> - <property name="margin_bottom">4</property> - <property name="spacing">8</property> - <property name="baseline_position">top</property> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="valign">start</property> - <property name="stock">gtk-select-color</property> - <property name="icon_size">6</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> + <property name="orientation">vertical</property> + <property name="spacing">10</property> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="valign">start</property> - <property name="orientation">vertical</property> + <property name="margin_top">4</property> + <property name="margin_bottom">4</property> <property name="spacing">8</property> + <property name="baseline_position">top</property> <child> - <object class="GtkBox"> + <object class="GtkImage" id="avatar"> <property name="visible">True</property> <property name="can_focus">False</property> - <child> - <object class="GtkLabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Display Name</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkLabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">@username</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> + <property name="valign">start</property> + <property name="pixbuf">avi.png</property> + <property name="icon_size">6</property> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> + <property name="fill">False</property> <property name="position">0</property> </packing> </child> <child> - <object class="GtkLabel" id="content_text"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">A widget’s index in the overlay children list determines which order the children are drawn if they overlap. The first child is drawn at the bottom. It also affects the default focus chain order.</property> - <property name="use_markup">True</property> - <property name="wrap">True</property> - <property name="wrap_mode">char</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - <child> <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">20</property> + <property name="valign">start</property> + <property name="orientation">vertical</property> + <property name="spacing">8</property> <child> <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="halign">start</property> - <property name="margin_right">10</property> - <property name="spacing">5</property> <child> - <object class="GtkImage"> + <object class="GtkLabel" id="display_name"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="icon_name">mail-reply-sender</property> + <property name="label" translatable="yes">Display Name</property> + <attributes> + <attribute name="size" value="12000"/> + </attributes> </object> <packing> <property name="expand">False</property> @@ -130,7 +79,8 @@ along with . If not, see <http://www.gnu.org/licenses/>. <object class="GtkLabel"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">4</property> + <property name="margin_left">4</property> + <property name="label" translatable="yes">@</property> </object> <packing> <property name="expand">False</property> @@ -138,6 +88,18 @@ along with . If not, see <http://www.gnu.org/licenses/>. <property name="position">1</property> </packing> </child> + <child> + <object class="GtkLabel" id="username"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">username</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> @@ -146,36 +108,13 @@ along with . If not, see <http://www.gnu.org/licenses/>. </packing> </child> <child> - <object class="GtkBox"> + <object class="GtkLabel" id="content_text"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="halign">start</property> - <property name="margin_right">10</property> - <property name="spacing">5</property> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="icon_name">media-playlist-repeat</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkLabel"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">4</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> + <property name="label" translatable="yes">A widget’s index in the overlay children list determines which order the children are drawn if they overlap. The first child is drawn at the bottom. It also affects the default focus chain order.</property> + <property name="use_markup">True</property> + <property name="wrap">True</property> + <property name="wrap_mode">char</property> </object> <packing> <property name="expand">False</property> @@ -187,13 +126,37 @@ along with . If not, see <http://www.gnu.org/licenses/>. <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_right">10</property> - <property name="spacing">5</property> + <property name="spacing">20</property> <child> - <object class="GtkImage"> + <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="icon_name">emblem-favorite</property> + <property name="halign">start</property> + <property name="spacing">5</property> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">mail-reply-sender</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="replies_count"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> @@ -202,10 +165,35 @@ along with . If not, see <http://www.gnu.org/licenses/>. </packing> </child> <child> - <object class="GtkLabel"> + <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">4</property> + <property name="halign">start</property> + <property name="spacing">5</property> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">media-playlist-repeat</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="reblogs_count"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> @@ -213,6 +201,42 @@ along with . If not, see <http://www.gnu.org/licenses/>. <property name="position">1</property> </packing> </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">5</property> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">help-about</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="favourites_count"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> @@ -224,13 +248,24 @@ along with . If not, see <http://www.gnu.org/licenses/>. <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">2</property> + <property name="position">1</property> </packing> </child> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkSeparator"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> <property name="position">1</property> </packing> </child> |