about summary refs log tree commit diff
path: root/src/gtk
diff options
context:
space:
mode:
authorGabriel Brand <gabr.brand@gmail.com>2024-05-14 12:45:25 +0200
committerVika <vika@fireburn.ru>2025-01-02 02:41:43 +0300
commitfbf38c69c68b92a73d1f833f32957a074a5a8cb5 (patch)
treed5144b56cf7ac367cc5402ef4d7150d0bb5b3978 /src/gtk
parente1c0f968272d89191ffcdf1f591f8471ac4d8adb (diff)
downloadFurtherance-fbf38c69c68b92a73d1f833f32957a074a5a8cb5.tar.zst
application window: Use AdwToolbarView
Diffstat (limited to 'src/gtk')
-rw-r--r--src/gtk/window.ui31
1 files changed, 11 insertions, 20 deletions
diff --git a/src/gtk/window.ui b/src/gtk/window.ui
index aab2cbc..678fcff 100644
--- a/src/gtk/window.ui
+++ b/src/gtk/window.ui
@@ -1,21 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <requires lib="gtk" version="4.0"/>
+  <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>
+          <object class="AdwToolbarView">
+            <child type="top">
+              <object class="AdwHeaderBar">
+                <child type="start">
                   <object class="GtkButton" id="add_task">
                     <property name="tooltip_text" translatable="yes">Add Task</property>
                     <property name="icon_name">list-add-symbolic</property>
@@ -28,12 +22,9 @@
                     <property name="menu_model">primary_menu</property>
                   </object>
                 </child>
-                <style>
-                  <class name="titlebar"/>
-                </style>
               </object>
             </child>
-            <child>
+            <property name="content">
               <object class="GtkBox" id="win_box">
                 <property name="orientation">vertical</property>
                 <property name="spacing">10</property>
@@ -48,11 +39,11 @@
                     <property name="margin_start">12</property>
                     <property name="margin_end">12</property>
                     <attributes>
-                      <attribute name="weight" value="bold"/>
-                      <attribute name="scale" value="5"/>
+                      <attribute name="weight" value="bold" />
+                      <attribute name="scale" value="5" />
                     </attributes>
                     <style>
-                      <class name="numeric"/>
+                      <class name="numeric" />
                     </style>
                   </object>
                 </child>
@@ -72,7 +63,7 @@
                       <object class="GtkButton" id="start_button">
                         <property name="icon-name">media-playback-start-symbolic</property>
                         <style>
-                          <class name="circular"/>
+                          <class name="circular" />
                         </style>
                       </object>
                     </child>
@@ -82,7 +73,7 @@
                   <object class="FurHistoryBox" id="history_box" />
                 </child>
               </object>
-            </child>
+            </property>
           </object>
         </property>
       </object>