276 lines
No EOL
13 KiB
XML
276 lines
No EOL
13 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
DO NOT EDIT!
|
|
This file was @generated by blueprint-compiler. Instead, edit the
|
|
corresponding .blp file and regenerate this file with blueprint-compiler.
|
|
-->
|
|
<interface>
|
|
<requires lib="gtk" version="4.0"/>
|
|
<template class="FeedTheMonkeyWindow" parent="AdwApplicationWindow">
|
|
<property name="default-width">900</property>
|
|
<property name="default-height">600</property>
|
|
<child>
|
|
<object class="AdwToastOverlay" id="toast_overlay">
|
|
<child>
|
|
<object class="GtkPaned" id="paned">
|
|
<property name="focusable">false</property>
|
|
<property name="resize-start-child">false</property>
|
|
<property name="shrink-end-child">false</property>
|
|
<property name="start-child">
|
|
<object class="AdwToolbarView" id="sidebar_toolbar">
|
|
<property name="top-bar-style">1</property>
|
|
<child type="top">
|
|
<object class="AdwHeaderBar">
|
|
<property name="show-start-title-buttons">false</property>
|
|
<property name="show-end-title-buttons">false</property>
|
|
<property name="title-widget">
|
|
<object class="GtkBox"></object>
|
|
</property>
|
|
<child type="start">
|
|
<object class="GtkStack" id="refresh_stack">
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">button</property>
|
|
<property name="child">
|
|
<object class="GtkButton" id="refresh_button">
|
|
<property name="icon-name">view-refresh-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Refresh</property>
|
|
<property name="action-name">win.reload</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">spinner</property>
|
|
<property name="child">
|
|
<object class="GtkSpinner">
|
|
<property name="spinning">true</property>
|
|
<property name="width-request">16</property>
|
|
<property name="height-request">16</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkMenuButton" id="menu_button">
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
<property name="primary">true</property>
|
|
<property name="menu-model">primary_menu</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStack" id="sidebar_content">
|
|
<style>
|
|
<class name="sidebar-content"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">placeholder</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="icon-name">rss-symbolic</property>
|
|
<property name="title" translatable="yes">FeedTheMonkey</property>
|
|
<property name="description" translatable="yes">Log in to load your articles</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">loading</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="title" translatable="yes">Loading…</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">empty</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="icon-name">rss-symbolic</property>
|
|
<property name="title" translatable="yes">No Unread Articles</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">error</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage" id="error_status">
|
|
<property name="icon-name">network-error-symbolic</property>
|
|
<property name="title" translatable="yes">Could Not Load Articles</property>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">Try Again</property>
|
|
<property name="halign">3</property>
|
|
<property name="action-name">win.reload</property>
|
|
<style>
|
|
<class name="pill"/>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">list</property>
|
|
<property name="child">
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hscrollbar-policy">2</property>
|
|
<child>
|
|
<object class="GtkListView" id="article_list_view">
|
|
<property name="single-click-activate">false</property>
|
|
<property name="show-separators">true</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
<property name="end-child">
|
|
<object class="AdwToolbarView">
|
|
<property name="top-bar-style">1</property>
|
|
<property name="width-request">320</property>
|
|
<child type="top">
|
|
<object class="AdwHeaderBar">
|
|
<child type="start">
|
|
<object class="GtkButton" id="toggle_sidebar_button">
|
|
<property name="icon-name">sidebar-show-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Toggle Sidebar</property>
|
|
<property name="action-name">win.toggle-sidebar</property>
|
|
</object>
|
|
</child>
|
|
<child type="start">
|
|
<object class="GtkStack" id="content_refresh_stack">
|
|
<property name="visible">false</property>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">button</property>
|
|
<property name="child">
|
|
<object class="GtkButton">
|
|
<property name="icon-name">view-refresh-symbolic</property>
|
|
<property name="tooltip-text" translatable="yes">Refresh</property>
|
|
<property name="action-name">win.reload</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">spinner</property>
|
|
<property name="child">
|
|
<object class="GtkSpinner">
|
|
<property name="spinning">true</property>
|
|
<property name="width-request">16</property>
|
|
<property name="height-request">16</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<property name="title-widget">
|
|
<object class="AdwWindowTitle">
|
|
<property name="title" translatable="yes">FeedTheMonkey</property>
|
|
</object>
|
|
</property>
|
|
<child type="end">
|
|
<object class="GtkMenuButton" id="content_menu_button">
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
<property name="primary">true</property>
|
|
<property name="menu-model">primary_menu</property>
|
|
<property name="visible">false</property>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkMenuButton" id="article_menu_button">
|
|
<property name="icon-name">view-more-symbolic</property>
|
|
<property name="menu-model">article_menu</property>
|
|
<property name="visible">false</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStack" id="content_stack">
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">empty</property>
|
|
<property name="child">
|
|
<object class="AdwStatusPage">
|
|
<property name="icon-name">document-open-symbolic</property>
|
|
<property name="title" translatable="yes">No Article Selected</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">webview</property>
|
|
<property name="child">
|
|
<object class="WebKitWebView" id="web_view"></object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<menu id="primary_menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Log Out</attribute>
|
|
<attribute name="action">win.logout</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Preferences</attribute>
|
|
<attribute name="action">win.preferences</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">About FeedTheMonkey</attribute>
|
|
<attribute name="action">app.about</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
<menu id="article_menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Mark Unread</attribute>
|
|
<attribute name="action">win.mark-unread</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Open in Browser</attribute>
|
|
<attribute name="action">win.open-in-browser</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
</interface> |