Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manuals: Optimize loading docs #573

Merged
merged 5 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/DocumentationViewer.blp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ Adw.Window documentation_viewer {

ListView search_list_view {
enable-rubberband: true;
model: SingleSelection search_model {
model: SortListModel {
sorter: StringSorter search_sorter {};
model: FilterListModel filter_model {
filter: StringFilter filter {
match-mode: substring;
};
};
};
};

factory: BuilderListItemFactory {
template ListItem {
child: Inscription {
Expand All @@ -87,13 +98,14 @@ Adw.Window documentation_viewer {
child: Adw.ToolbarView {
[top]
Adw.HeaderBar {
//show-title: false;
show-title: false;
[start]
Button button_back {
icon-name: "go-previous-symbolic";
tooltip-text: _("Back");
styles ["flat"]
}

[start]
Button button_forward {
icon-name: "go-next-symbolic";
Expand Down
Loading