2023-12-21 11:30:30 +00:00
|
|
|
using Gtk 4.0;
|
|
|
|
using Adw 1;
|
|
|
|
|
|
|
|
template $GamesAndMods: Adw.Bin {
|
|
|
|
Adw.NavigationSplitView {
|
|
|
|
sidebar: Adw.NavigationPage {
|
|
|
|
title: "Games";
|
|
|
|
tag: "sidebar";
|
|
|
|
|
|
|
|
Adw.ToolbarView {
|
|
|
|
[top]
|
|
|
|
Adw.HeaderBar {
|
2023-12-21 18:24:38 +00:00
|
|
|
[end]
|
|
|
|
Button add_new_game {
|
2023-12-21 22:25:08 +00:00
|
|
|
icon-name: "list-add-symbolic";
|
|
|
|
}
|
|
|
|
|
|
|
|
Button remove_all_games {
|
|
|
|
icon-name: "list-remove-symbolic";
|
2023-12-21 18:24:38 +00:00
|
|
|
}
|
2023-12-21 11:30:30 +00:00
|
|
|
}
|
|
|
|
|
2023-12-21 18:24:38 +00:00
|
|
|
content: ListBox games_list {
|
|
|
|
styles ["navigation-sidebar"]
|
2023-12-21 11:30:30 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
content: Adw.NavigationPage{
|
|
|
|
title: "Mods";
|
|
|
|
tag: "content";
|
2024-01-07 21:35:39 +00:00
|
|
|
|
2023-12-21 11:30:30 +00:00
|
|
|
Adw.ToolbarView {
|
|
|
|
[top]
|
|
|
|
Adw.HeaderBar {
|
2023-12-21 18:24:38 +00:00
|
|
|
[title]
|
|
|
|
SearchEntry search {
|
|
|
|
}
|
2023-12-21 11:30:30 +00:00
|
|
|
}
|
2024-01-07 21:35:39 +00:00
|
|
|
|
2024-01-11 20:36:44 +00:00
|
|
|
content: Box {
|
2023-12-21 22:25:08 +00:00
|
|
|
orientation: vertical;
|
|
|
|
|
|
|
|
Label title {
|
2024-01-11 20:36:44 +00:00
|
|
|
label: "List of Mods";
|
|
|
|
styles ["title-1"]
|
2023-12-21 11:30:30 +00:00
|
|
|
}
|
2023-12-21 22:25:08 +00:00
|
|
|
|
2024-01-11 20:36:44 +00:00
|
|
|
Label {
|
|
|
|
halign: start;
|
|
|
|
margin-bottom: 12;
|
|
|
|
label: "Latest mods";
|
|
|
|
styles ["title-2"]
|
2023-12-21 22:25:08 +00:00
|
|
|
}
|
|
|
|
ScrolledWindow {
|
2024-01-11 20:36:44 +00:00
|
|
|
vexpand: true;
|
|
|
|
hexpand: true;
|
|
|
|
FlowBox mods_list {
|
|
|
|
row-spacing: 12;
|
|
|
|
column-spacing: 12;
|
|
|
|
homogeneous: true;
|
|
|
|
}
|
2023-12-21 18:24:38 +00:00
|
|
|
}
|
2023-12-21 11:30:30 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
2024-01-07 21:35:39 +00:00
|
|
|
}
|