mirror of
				https://github.com/johrpan/musicus.git
				synced 2025-10-26 19:57:25 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			811 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			811 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| using Gtk 4.0;
 | |
| using Adw 1;
 | |
| 
 | |
| template $MusicusPlaylistPage : Adw.Bin {
 | |
|   styles ["background"]
 | |
| 
 | |
|   Adw.ToolbarView {
 | |
|     [top]
 | |
|     Adw.HeaderBar {
 | |
|       title-widget: Adw.WindowTitle {
 | |
|         title: _("Playlist");
 | |
|       };
 | |
| 
 | |
|       [start]
 | |
|       Gtk.Button close_button {
 | |
|         icon-name: "go-down-symbolic";
 | |
|         clicked => $close() swapped;
 | |
|       }
 | |
|     }
 | |
| 
 | |
|     Gtk.ScrolledWindow {
 | |
|       hscrollbar-policy: never;
 | |
| 
 | |
|       Adw.ClampScrollable {
 | |
|         maximum-size: 1000;
 | |
|         tightening-threshold: 600;
 | |
| 
 | |
|         Gtk.ListView playlist {
 | |
|           styles ["playlist", "background"]
 | |
|           margin-top: 12;
 | |
|           margin-bottom: 12;
 | |
|           margin-start: 12;
 | |
|           margin-end: 12;
 | |
|           single-click-activate: true;
 | |
|           activate => $select_item() swapped;
 | |
|         }
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| }
 |