| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  | using Gtk 4.0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  | template $MusicusProgramTile: Gtk.FlowBoxChild { | 
					
						
							|  |  |  |   styles [ | 
					
						
							|  |  |  |     "program-tile", | 
					
						
							|  |  |  |     "card", | 
					
						
							|  |  |  |     "activatable", | 
					
						
							|  |  |  |   ] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  |   Gtk.Box { | 
					
						
							|  |  |  |     orientation: vertical; | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  |     Gtk.Button edit_button { | 
					
						
							|  |  |  |       halign: end; | 
					
						
							|  |  |  |       icon-name: "document-edit-symbolic"; | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  |       clicked => $edit_button_clicked() swapped; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       styles [ | 
					
						
							|  |  |  |         "flat", | 
					
						
							|  |  |  |         "circular", | 
					
						
							|  |  |  |       ] | 
					
						
							| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     Gtk.Label title_label { | 
					
						
							|  |  |  |       halign: start; | 
					
						
							|  |  |  |       margin-top: 24; | 
					
						
							|  |  |  |       wrap: true; | 
					
						
							|  |  |  |       max-width-chars: 0; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  |       styles [ | 
					
						
							|  |  |  |         "title", | 
					
						
							|  |  |  |       ] | 
					
						
							| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  |     Gtk.Label description_label { | 
					
						
							|  |  |  |       margin-top: 6; | 
					
						
							|  |  |  |       halign: start; | 
					
						
							|  |  |  |       wrap: true; | 
					
						
							|  |  |  |       max-width-chars: 0; | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |       styles [ | 
					
						
							|  |  |  |         "description", | 
					
						
							|  |  |  |       ] | 
					
						
							| 
									
										
										
										
											2024-04-01 18:43:00 +02:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2025-03-22 18:55:29 +01:00
										 |  |  | } |