breezy-desktop/ui/src/gtk/window.ui

105 lines
4.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="BreezydesktopWindow" parent="GtkApplicationWindow">
<property name="default-width">800</property>
<property name="titlebar">
<object class="GtkHeaderBar" id="header_bar">
<property name="title-widget">
<object class="GtkLabel">
<property name="label" translatable="yes">Breezy Desktop</property>
<property name="single-line-mode">1</property>
<property name="ellipsize">end</property>
<property name="width-chars">5</property>
<style>
<class name="title"/>
</style>
</object>
</property>
<child type="end">
<object class="GtkMenuButton">
<property name="primary">True</property>
<property name="icon-name">open-menu-symbolic</property>
<property name="tooltip-text" translatable="yes">Menu</property>
<property name="menu-model">primary_menu</property>
</object>
</child>
</object>
</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkInfoBar" id="license_action_needed_banner">
<property name="revealed">0</property>
<property name="show-close-button">False</property>
<property name="message-type">warning</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Some features expire soon</property>
<property name="hexpand">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton" id="license_action_needed_button">
<property name="label" translatable="yes">View details</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkInfoBar" id="missing_breezy_features_banner">
<property name="revealed">0</property>
<property name="show-close-button">False</property>
<property name="message-type">error</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Productivity features are disabled</property>
<property name="hexpand">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton" id="missing_breezy_features_button">
<property name="label" translatable="yes">View details</property>
<property name="visible">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="main_content" />
</child>
</object>
</property>
</template>
<menu id="primary_menu">
<section>
<item>
<attribute name="label" translatable="yes">License Details</attribute>
<attribute name="action">app.license</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Force Reset</attribute>
<attribute name="action">app.reset_driver</attribute>
</item>
<item>
<attribute name="label" translatable="yes">About BreezyDesktop</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
</interface>