| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | using Gtk 4.0; | 
					
						
							|  |  |  | using Adw 1; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | template $MusicusAlbumEditor: Adw.NavigationPage { | 
					
						
							|  |  |  |   title: _("Album"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Adw.ToolbarView { | 
					
						
							|  |  |  |     [top] | 
					
						
							|  |  |  |     Adw.HeaderBar header_bar {} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |     Gtk.ScrolledWindow { | 
					
						
							|  |  |  |       Adw.Clamp { | 
					
						
							|  |  |  |         Gtk.Box { | 
					
						
							|  |  |  |           orientation: vertical; | 
					
						
							|  |  |  |           margin-bottom: 24; | 
					
						
							|  |  |  |           margin-start: 12; | 
					
						
							|  |  |  |           margin-end: 12; | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Name"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |             styles [ | 
					
						
							|  |  |  |               "heading", | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |           $MusicusTranslationEditor name_editor { | 
					
						
							|  |  |  |             margin-top: 12; | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |           Gtk.Label { | 
					
						
							|  |  |  |             label: _("Recordings"); | 
					
						
							|  |  |  |             xalign: 0; | 
					
						
							|  |  |  |             margin-top: 24; | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |             styles [ | 
					
						
							|  |  |  |               "heading", | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |           Gtk.Box recordings_box { | 
					
						
							|  |  |  |             Gtk.ListBox recordings_list { | 
					
						
							|  |  |  |               selection-mode: none; | 
					
						
							|  |  |  |               margin-top: 12; | 
					
						
							|  |  |  |               margin-bottom: 24; | 
					
						
							|  |  |  |               hexpand: true; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "boxed-list", | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |               Adw.ButtonRow { | 
					
						
							|  |  |  |                 title: _("Add _recording"); | 
					
						
							|  |  |  |                 start-icon-name: "list-add-symbolic"; | 
					
						
							|  |  |  |                 use-underline: true; | 
					
						
							|  |  |  |                 activated => $select_recording() swapped; | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           Gtk.ListBox { | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |             selection-mode: none; | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |             margin-top: 24; | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |             styles [ | 
					
						
							|  |  |  |               "boxed-list", | 
					
						
							|  |  |  |             ] | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |             Adw.ButtonRow save_row { | 
					
						
							|  |  |  |               title: _("_Create album"); | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |               use-underline: true; | 
					
						
							| 
									
										
										
										
											2025-03-01 11:18:15 +01:00
										 |  |  |               activated => $save() swapped; | 
					
						
							| 
									
										
										
										
											2025-03-29 17:53:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |               styles [ | 
					
						
							|  |  |  |                 "suggested-action", | 
					
						
							|  |  |  |               ] | 
					
						
							| 
									
										
										
										
											2025-03-01 11:13:29 +01:00
										 |  |  |             } | 
					
						
							| 
									
										
										
										
											2025-02-22 16:07:30 +01:00
										 |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |