mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-27 12:17:24 +01:00 
			
		
		
		
	Move resources and data to UI crate
This commit is contained in:
		
							parent
							
								
									fdc5bc72a8
								
							
						
					
					
						commit
						3e130985c4
					
				
					 35 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										169
									
								
								crates/musicus/res/ui/medium_editor.ui
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								crates/musicus/res/ui/medium_editor.ui
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,169 @@ | |||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <interface> | ||||
|   <requires lib="gtk" version="4.0"/> | ||||
|   <requires lib="libadwaita" version="1.0"/> | ||||
|   <object class="GtkStack" id="widget"> | ||||
|     <property name="transition-type">crossfade</property> | ||||
|     <child> | ||||
|       <object class="GtkStackPage"> | ||||
|         <property name="name">content</property> | ||||
|         <property name="child"> | ||||
|           <object class="GtkBox"> | ||||
|             <property name="orientation">vertical</property> | ||||
|             <child> | ||||
|               <object class="AdwHeaderBar"> | ||||
|                 <property name="show-start-title-buttons">false</property> | ||||
|                 <property name="show-end-title-buttons">false</property> | ||||
|                 <property name="title-widget"> | ||||
|                   <object class="GtkLabel"> | ||||
|                     <property name="label" translatable="yes">Import music</property> | ||||
|                     <style> | ||||
|                       <class name="title"/> | ||||
|                     </style> | ||||
|                   </object> | ||||
|                 </property> | ||||
|                 <child> | ||||
|                   <object class="GtkButton" id="back_button"> | ||||
|                     <property name="icon-name">go-previous-symbolic</property> | ||||
|                   </object> | ||||
|                 </child> | ||||
|                 <child type="end"> | ||||
|                   <object class="GtkButton" id="done_button"> | ||||
|                     <property name="sensitive">False</property> | ||||
|                     <child> | ||||
|                       <object class="GtkStack" id="done_stack"> | ||||
|                         <property name="transition-type">crossfade</property> | ||||
|                         <child> | ||||
|                           <object class="GtkSpinner" id="spinner"> | ||||
|                             <property name="spinning">True</property> | ||||
|                           </object> | ||||
|                         </child> | ||||
|                         <child> | ||||
|                           <object class="GtkImage" id="done"> | ||||
|                             <property name="icon-name">object-select-symbolic</property> | ||||
|                           </object> | ||||
|                         </child> | ||||
|                       </object> | ||||
|                     </child> | ||||
|                     <style> | ||||
|                       <class name="suggested-action"/> | ||||
|                     </style> | ||||
|                   </object> | ||||
|                 </child> | ||||
|               </object> | ||||
|             </child> | ||||
|             <child> | ||||
|               <object class="GtkInfoBar" id="info_bar"> | ||||
|                 <property name="revealed">False</property> | ||||
|               </object> | ||||
|             </child> | ||||
|             <child> | ||||
|               <object class="GtkScrolledWindow"> | ||||
|                 <property name="vexpand">True</property> | ||||
|                 <child> | ||||
|                   <object class="AdwClamp"> | ||||
|                     <child> | ||||
|                       <object class="GtkBox"> | ||||
|                         <property name="margin-start">6</property> | ||||
|                         <property name="margin-end">6</property> | ||||
|                         <property name="margin-bottom">6</property> | ||||
|                         <property name="orientation">vertical</property> | ||||
|                         <child> | ||||
|                           <object class="GtkLabel"> | ||||
|                             <property name="halign">start</property> | ||||
|                             <property name="margin-top">12</property> | ||||
|                             <property name="margin-bottom">6</property> | ||||
|                             <property name="label" translatable="yes">Medium</property> | ||||
|                             <attributes> | ||||
|                               <attribute name="weight" value="bold"/> | ||||
|                             </attributes> | ||||
|                           </object> | ||||
|                         </child> | ||||
|                         <child> | ||||
|                           <object class="GtkFrame"> | ||||
|                             <child> | ||||
|                               <object class="GtkListBox"> | ||||
|                                 <property name="selection-mode">none</property> | ||||
|                                 <child> | ||||
|                                   <object class="AdwActionRow" id="name_row"> | ||||
|                                     <property name="activatable">True</property> | ||||
|                                     <property name="title" translatable="yes">Name of the medium</property> | ||||
|                                     <property name="activatable-widget">name_entry</property> | ||||
|                                     <child> | ||||
|                                       <object class="GtkEntry" id="name_entry"> | ||||
|                                         <property name="valign">center</property> | ||||
|                                         <property name="hexpand">True</property> | ||||
|                                       </object> | ||||
|                                     </child> | ||||
|                                   </object> | ||||
|                                 </child> | ||||
|                                 <child> | ||||
|                                   <object class="AdwActionRow"> | ||||
|                                     <property name="activatable">True</property> | ||||
|                                     <property name="title" translatable="yes">Publish to the server</property> | ||||
|                                     <property name="activatable-widget">publish_switch</property> | ||||
|                                     <child> | ||||
|                                       <object class="GtkSwitch" id="publish_switch"> | ||||
|                                         <property name="valign">center</property> | ||||
|                                         <property name="active">True</property> | ||||
|                                       </object> | ||||
|                                     </child> | ||||
|                                   </object> | ||||
|                                 </child> | ||||
|                               </object> | ||||
|                             </child> | ||||
|                           </object> | ||||
|                         </child> | ||||
|                         <child> | ||||
|                           <object class="GtkBox"> | ||||
|                             <property name="orientation">horizontal</property> | ||||
|                             <property name="margin-top">12</property> | ||||
|                             <property name="margin-bottom">6</property> | ||||
|                             <child> | ||||
|                               <object class="GtkLabel"> | ||||
|                                 <property name="halign">start</property> | ||||
|                                 <property name="valign">end</property> | ||||
|                                 <property name="hexpand">True</property> | ||||
|                                 <property name="label" translatable="yes">Recordings</property> | ||||
|                                 <attributes> | ||||
|                                   <attribute name="weight" value="bold"/> | ||||
|                                 </attributes> | ||||
|                               </object> | ||||
|                             </child> | ||||
|                             <child> | ||||
|                               <object class="GtkButton" id="add_button"> | ||||
|                                 <property name="has-frame">false</property> | ||||
|                                 <property name="icon-name">list-add-symbolic</property> | ||||
|                               </object> | ||||
|                             </child> | ||||
|                           </object> | ||||
|                         </child> | ||||
|                         <child> | ||||
|                           <object class="GtkFrame" id="frame"/> | ||||
|                         </child> | ||||
|                       </object> | ||||
|                     </child> | ||||
|                   </object> | ||||
|                 </child> | ||||
|               </object> | ||||
|             </child> | ||||
|           </object> | ||||
|         </property> | ||||
|       </object> | ||||
|     </child> | ||||
|     <child> | ||||
|       <object class="GtkStackPage"> | ||||
|         <property name="name">loading</property> | ||||
|         <property name="child"> | ||||
|           <object class="GtkSpinner"> | ||||
|             <property name="spinning">true</property> | ||||
|             <property name="hexpand">true</property> | ||||
|             <property name="vexpand">true</property> | ||||
|             <property name="halign">center</property> | ||||
|             <property name="valign">center</property> | ||||
|           </object> | ||||
|         </property> | ||||
|       </object> | ||||
|     </child> | ||||
|   </object> | ||||
| </interface> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Elias Projahn
						Elias Projahn