Sidebar, used AdwToolbarView and added Headerbar (#35)
* added adwtoolbarview in the sidebar * removed commented code
This commit is contained in:
		
							parent
							
								
									5b92186930
								
							
						
					
					
						commit
						471159417c
					
				@ -8,6 +8,7 @@
 | 
				
			|||||||
    <property name="height-request">700</property>
 | 
					    <property name="height-request">700</property>
 | 
				
			||||||
    <property name="default-width">1300</property>
 | 
					    <property name="default-width">1300</property>
 | 
				
			||||||
    <property name="default-height">800</property>
 | 
					    <property name="default-height">800</property>
 | 
				
			||||||
 | 
					    <property name="title">Alpaca</property>
 | 
				
			||||||
    <child>
 | 
					    <child>
 | 
				
			||||||
      <object class="AdwBreakpoint">
 | 
					      <object class="AdwBreakpoint">
 | 
				
			||||||
        <condition>max-width: 800sp</condition>
 | 
					        <condition>max-width: 800sp</condition>
 | 
				
			||||||
@ -31,67 +32,39 @@
 | 
				
			|||||||
          <object class="AdwOverlaySplitView" id="split_view_overlay">
 | 
					          <object class="AdwOverlaySplitView" id="split_view_overlay">
 | 
				
			||||||
            <property name="show-sidebar" bind-source="show_sidebar_button" bind-property="active" bind-flags="sync-create"/>
 | 
					            <property name="show-sidebar" bind-source="show_sidebar_button" bind-property="active" bind-flags="sync-create"/>
 | 
				
			||||||
            <property name="sidebar">
 | 
					            <property name="sidebar">
 | 
				
			||||||
              <object class="GtkBox">
 | 
					              <object class="AdwToolbarView">
 | 
				
			||||||
                <property name="spacing">12</property>
 | 
					                <child type="top">
 | 
				
			||||||
                <property name="orientation">1</property>
 | 
					                  <object class="AdwHeaderBar">
 | 
				
			||||||
                <child>
 | 
					                    <child type="start">
 | 
				
			||||||
                  <object class="GtkBox">
 | 
					 | 
				
			||||||
                    <property name="margin-top">12</property>
 | 
					 | 
				
			||||||
                    <property name="margin-start">12</property>
 | 
					 | 
				
			||||||
                    <property name="margin-end">12</property>
 | 
					 | 
				
			||||||
                    <property name="spacing">12</property>
 | 
					 | 
				
			||||||
                    <child>
 | 
					 | 
				
			||||||
                      <object class="GtkButton" id="add_chat_button">
 | 
					                      <object class="GtkButton" id="add_chat_button">
 | 
				
			||||||
                        <property name="tooltip-text" translatable="yes">New chat</property>
 | 
					                        <property name="tooltip-text" translatable="yes">New chat</property>
 | 
				
			||||||
 | 
					                        <property name="icon-name">tab-new-symbolic</property>
 | 
				
			||||||
                        <style>
 | 
					                        <style>
 | 
				
			||||||
                          <class name="flat"/>
 | 
					                          <class name="flat"/>
 | 
				
			||||||
                        </style>
 | 
					                        </style>
 | 
				
			||||||
                        <child>
 | 
					 | 
				
			||||||
                          <object class="AdwButtonContent">
 | 
					 | 
				
			||||||
                            <property name="icon-name">tab-new-symbolic</property>
 | 
					 | 
				
			||||||
                      </object>
 | 
					                      </object>
 | 
				
			||||||
                    </child>
 | 
					                    </child>
 | 
				
			||||||
                      </object>
 | 
					                    <child type="end">
 | 
				
			||||||
                    </child>
 | 
					 | 
				
			||||||
                    <child>
 | 
					 | 
				
			||||||
                      <object class="GtkLabel">
 | 
					 | 
				
			||||||
                        <property name="label" translatable="no">Alpaca</property>
 | 
					 | 
				
			||||||
                        <property name="hexpand">true</property>
 | 
					 | 
				
			||||||
                        <property name="halign">3</property>
 | 
					 | 
				
			||||||
                        <style>
 | 
					 | 
				
			||||||
                          <class name="title-4"/>
 | 
					 | 
				
			||||||
                        </style>
 | 
					 | 
				
			||||||
                      </object>
 | 
					 | 
				
			||||||
                    </child>
 | 
					 | 
				
			||||||
                    <child>
 | 
					 | 
				
			||||||
                      <object class="GtkButton" id="import_chat_button">
 | 
					                      <object class="GtkButton" id="import_chat_button">
 | 
				
			||||||
                        <property name="tooltip-text" translatable="yes">Import chat</property>
 | 
					                        <property name="tooltip-text" translatable="yes">Import chat</property>
 | 
				
			||||||
 | 
					                        <property name="icon-name">document-open-symbolic</property>
 | 
				
			||||||
                        <style>
 | 
					                        <style>
 | 
				
			||||||
                          <class name="flat"/>
 | 
					                          <class name="flat"/>
 | 
				
			||||||
                        </style>
 | 
					                        </style>
 | 
				
			||||||
                        <child>
 | 
					 | 
				
			||||||
                          <object class="AdwButtonContent">
 | 
					 | 
				
			||||||
                            <property name="icon-name">document-open-symbolic</property>
 | 
					 | 
				
			||||||
                      </object>
 | 
					                      </object>
 | 
				
			||||||
                    </child>
 | 
					                    </child>
 | 
				
			||||||
                      </object>
 | 
					                    <child type="end">
 | 
				
			||||||
                    </child>
 | 
					 | 
				
			||||||
                    <child>
 | 
					 | 
				
			||||||
                      <object class="GtkButton" id="export_chat_button">
 | 
					                      <object class="GtkButton" id="export_chat_button">
 | 
				
			||||||
                        <property name="tooltip-text" translatable="yes">Export chat</property>
 | 
					                        <property name="tooltip-text" translatable="yes">Export chat</property>
 | 
				
			||||||
 | 
					                        <property name="icon-name">folder-download-symbolic</property>
 | 
				
			||||||
                        <style>
 | 
					                        <style>
 | 
				
			||||||
                          <class name="flat"/>
 | 
					                          <class name="flat"/>
 | 
				
			||||||
                        </style>
 | 
					                        </style>
 | 
				
			||||||
                        <child>
 | 
					 | 
				
			||||||
                          <object class="AdwButtonContent">
 | 
					 | 
				
			||||||
                            <property name="icon-name">folder-download-symbolic</property>
 | 
					 | 
				
			||||||
                      </object>
 | 
					                      </object>
 | 
				
			||||||
                    </child>
 | 
					                    </child>
 | 
				
			||||||
                  </object>
 | 
					                  </object>
 | 
				
			||||||
                </child>
 | 
					                </child>
 | 
				
			||||||
                  </object>
 | 
					                <property name="content">
 | 
				
			||||||
                </child>
 | 
					 | 
				
			||||||
                <child>
 | 
					 | 
				
			||||||
                  <object class="GtkScrolledWindow">
 | 
					                  <object class="GtkScrolledWindow">
 | 
				
			||||||
                    <property name="vexpand">true</property>
 | 
					                    <property name="vexpand">true</property>
 | 
				
			||||||
                    <property name="hexpand">true</property>
 | 
					                    <property name="hexpand">true</property>
 | 
				
			||||||
@ -104,7 +77,7 @@
 | 
				
			|||||||
                      </object>
 | 
					                      </object>
 | 
				
			||||||
                    </child>
 | 
					                    </child>
 | 
				
			||||||
                  </object>
 | 
					                  </object>
 | 
				
			||||||
                </child>
 | 
					                </property>
 | 
				
			||||||
              </object>
 | 
					              </object>
 | 
				
			||||||
            </property>
 | 
					            </property>
 | 
				
			||||||
            <child>
 | 
					            <child>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user