Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
74 changes: 74 additions & 0 deletions src/Library/demos/Boxed Lists/main.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
using Gtk 4.0;
using Adw 1;

Adw.StatusPage {
title: _("Boxed Lists");
description: _("List to present both controls and information");

Adw.Clamp {
maximum-size: 500;

Box {
orientation: vertical;

ListBox {
selection-mode: none;
styles ["boxed-list"]

Adw.ActionRow {
title: _("ActionRow can have a prefix child");

[prefix]
CheckButton checkbox {
active: true;
}
}

Adw.ActionRow {
title: _("ActionRow can have a suffix child");
subtitle: _("The checkbox above controls the spinner");

[suffix]
Spinner {
spinning: bind checkbox.active;
}
}

Adw.EntryRow {
title: _("A row can be an entry");
}

Adw.ComboRow {
title: _("Choose an item");
subtitle: _("ComboRow can have a drop down list");
model: StringList list {
strings ["this", "is", "a", "string", "list"]
};
}

Adw.ExpanderRow {
title: _("Rows can be expandable");
show-enable-switch: true;

Adw.ActionRow {
title: _("First row");
}
Adw.ActionRow {
title: _("Second row");
}
}
}

LinkButton {
margin-top: 24;
label: "API Reference";
uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/boxed-lists.html";
}

LinkButton {
label: "Human Interface Guidelines";
uri: "https://developer.gnome.org/hig/patterns/containers/boxed-lists.html";
}
}
}
}
10 changes: 10 additions & 0 deletions src/Library/demos/Boxed Lists/main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "Boxed Lists",
"category": "user_interface",
"description": "List to present both controls and information",
"panels": [
"preview",
"ui"
],
"autorun": true
}
1 change: 1 addition & 0 deletions src/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ ${getBlueprintVersion()}
"Angelo Verlain https://www.vixalien.com",
"bazylevnik0 https://github.com/bazylevnik0",
"Felipe Kinoshita https://mastodon.social/@fkinoshita",
"Karol Lademan https://github.com/karl0d",
"Nasah Kuma https://www.mantohnasah.com/",
// Add yourself as
// "John Doe",
Expand Down