lumos/src/window.ui

139 lines
5.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="Adw" version="1.0"/>
<template class="LumosWindow" parent="AdwApplicationWindow">
<property name="default-width">360</property>
<property name="default-height">640</property>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar" id="header_bar">
<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>
</child>
<property name="content">
<object class="GtkBox">
<property name="orientation">1</property>
<!-- Pages Stack -->
<child>
<object class="AdwViewStack" id="stack">
<property name="vexpand">true</property>
<child>
<!-- Aperture priority page -->
<object class="AdwViewStackPage" id="aperture-priority-page">
<property name="name">aperture-priority-page</property>
<property name="title" translatable="true">Aperture priority</property>
<property name="icon-name">camera-shutter-symbolic</property>
<property name="use-underline">true</property>
<property name="child">
<object class="AperturePriorityPage" id="aperture-priority-page-widget">
</object>
</property>
</object>
</child>
<!-- Time priority page -->
<child>
<object class="AdwViewStackPage" id="time-priority-page">
<property name="name">time-priority-page</property>help
<property name="title" translatable="true">Time priority</property>
<property name="icon-name">camera-timer-symbolic</property>
<property name="use-underline">true</property>
<property name="child">
<object class="TimePriorityPage" id="time-priority-page-widget">
</object>
</property>
</object>
</child>
<!-- Manual mode page -->
<child>
<object class="AdwViewStackPage" id="manual-mode-page">
<property name="name">manual-mode-page</property>
<property name="title" translatable="true">Manual</property>
<property name="icon-name">encoder-knob-symbolic</property>
<property name="use-underline">true</property>
<property name="child">
<object class="ManualExposurePage" id="manual-page">
</object>
</property>
</object>
</child>
<!-- Light page -->
<child>
<object class="AdwViewStackPage" id="light-measure-page">
<property name="name">light-measure-page</property>
<property name="title" translatable="true">Light</property>
<property name="icon-name">lightbulb-symbolic</property>
<property name="use-underline">true</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">1</property>
<property name="valign">3</property>
<property name="halign">3</property>
<child>
<object class="GtkImage" id="lux-icon">
<property name="icon-name">lightbulb-symbolic</property>
<property name="pixel-size">128</property>
<property name="margin-bottom">30</property>
</object>
</child>
<child>
<object class="GtkLabel" id="lux_label">
<property name="label" translatable="no">XXX Lux</property>
<style>
<class name="title-1"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
<!-- Bottom tab bar -->
<child>
<object class="AdwViewSwitcher" id="switcher_title">
<property name="stack">stack</property>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
<menu id="primary_menu">
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
<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 Lumos</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
</interface>