about summary refs log tree commit diff
path: root/src/gtk/window.ui
blob: d6c5311c99bc35347f30de1f3e33e7e774669552 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="FurtheranceWindow" parent="AdwApplicationWindow">
    <property name="title">Furtherance</property>
    <property name="content">
      <object class="AdwToastOverlay" id="toast_overlay">
        <property name="child">
          <object class="GtkBox" id="main_box">
            <property name="orientation">vertical</property>
            <child>
              <object class="AdwHeaderBar" id="header_bar">
                <property name="title-widget">
                  <object class="AdwWindowTitle" id="window_title">
                    <property name="title">Furtherance</property>
                  </object>
                </property>
                <child type="end">
                  <object class="GtkMenuButton" id="app_menu_button">
                    <property name="tooltip_text" translatable="yes">Main Menu</property>
                    <property name="icon_name">open-menu-symbolic</property>
                    <property name="menu_model">primary_menu</property>
                  </object>
                </child>
                <style>
                  <class name="titlebar"/>
                </style>
              </object>
            </child>
            <child>
            <object class="GtkBox" id="win_box">
              <property name="orientation">vertical</property>
              <property name="spacing">10</property>
              <property name="margin_bottom">18</property>
              <property name="halign">center</property>
              <property name="width_request">400</property>
              <property name="vexpand">True</property>
              <child>
                <object class="GtkLabel" id="watch">
                  <property name="label">00:00:00</property>
                  <attributes>
                    <attribute name="weight" value="bold"/>
                    <attribute name="scale" value="5"/>
                  </attributes>
                  <style>
                    <class name="numeric"/>
                  </style>
                </object>
              </child>
              <child>
                <object class="GtkBox">
                  <property name="spacing">5</property>
                  <property name="margin_start">12</property>
                  <property name="margin_end">8</property>
                  <child>
                    <object class="GtkEntry" id="task_input">
                      <property name="placeholder-text" translatable="yes">Task Name</property>
                      <property name="hexpand">True</property>
                      <property name="hexpand-set">True</property>
                    </object>
                  </child>
                  <child>
                    <object class="GtkButton" id="start_button">
                      <property name="icon-name">media-playback-start-symbolic</property>
                    </object>
                  </child>
                </object>
              </child>
              <child>
                <object class="FurHistoryBox" id="history_box" />
              </child>
            </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">_About Furtherance</attribute>
        <attribute name="action">app.about</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Delete history</attribute>
        <attribute name="action">app.delete-history</attribute>
      </item>
    </section>
  </menu>
</interface>