mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 19:57:25 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			711 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			711 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| using Gtk 4.0;
 | |
| using Adw 1;
 | |
| 
 | |
| template $MusicusPersonEditor: Adw.NavigationPage {
 | |
|   title: _("Person");
 | |
| 
 | |
|   Adw.ToolbarView {
 | |
|     [top]
 | |
|     Adw.HeaderBar header_bar {}
 | |
| 
 | |
|     Adw.Clamp {
 | |
|       Gtk.Box {
 | |
|         orientation: vertical;
 | |
| 
 | |
|         Gtk.Label {
 | |
|           label: _("Name");
 | |
|           xalign: 0;
 | |
|           margin-top: 24;
 | |
| 
 | |
|           styles [
 | |
|             "heading"
 | |
|           ]
 | |
|         }
 | |
| 
 | |
|         $MusicusTranslationEditor name_editor {
 | |
|           margin-top: 12;
 | |
|         }
 | |
| 
 | |
|         Gtk.Button save_button {
 | |
|           margin-top: 24;
 | |
|           label: _("Create person");
 | |
|           clicked => $save() swapped;
 | |
| 
 | |
|           styles [
 | |
|             "card",
 | |
|             "save"
 | |
|           ]
 | |
|         }
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| }
 |