Merge pull request #189 from Ratfink/sidebar-scrolling

Wrap the sidebar in a ScrolledWindow
This commit is contained in:
kramo
2023-09-23 07:45:19 +02:00
committed by GitHub

View File

@@ -89,60 +89,62 @@ template $CartridgesWindow : Adw.ApplicationWindow {
} }
} }
ListBox sidebar { ScrolledWindow {
Box all_games_row_box { ListBox sidebar {
margin-top: 12; Box all_games_row_box {
margin-bottom: 12; margin-top: 12;
margin-start: 6; margin-bottom: 12;
margin-end: 6; margin-start: 6;
spacing: 12;
Image {
icon-name: "view-grid-symbolic";
}
Label {
halign: start;
label: _("All Games");
}
Label all_games_no_label {
hexpand: true;
halign: end;
styles ["dim-label"]
}
}
Box added_row_box {
margin-top: 12;
margin-bottom: 12;
margin-start: 6;
spacing: 12;
Image {
icon-name: "list-add-symbolic";
}
Label {
halign: start;
label: _("Added");
margin-end: 6;
}
Label added_games_no_label {
hexpand: true;
halign: end;
margin-end: 6; margin-end: 6;
spacing: 12;
styles ["dim-label"] Image {
icon-name: "view-grid-symbolic";
}
Label {
halign: start;
label: _("All Games");
}
Label all_games_no_label {
hexpand: true;
halign: end;
styles ["dim-label"]
}
} }
} Box added_row_box {
ListBoxRow { margin-top: 12;
selectable: false; margin-bottom: 12;
activatable: false; margin-start: 6;
Label { spacing: 12;
label: _("Imported");
styles ["heading"] Image {
halign: start; icon-name: "list-add-symbolic";
}
Label {
halign: start;
label: _("Added");
margin-end: 6;
}
Label added_games_no_label {
hexpand: true;
halign: end;
margin-end: 6;
styles ["dim-label"]
}
} }
ListBoxRow {
selectable: false;
activatable: false;
Label {
label: _("Imported");
styles ["heading"]
halign: start;
}
}
styles ["navigation-sidebar"]
} }
styles ["navigation-sidebar"]
} }
} }
} }