diff --git a/src/Library/demos/Boxed Lists/main.blp b/src/Library/demos/Boxed Lists/main.blp new file mode 100644 index 000000000..474bb44e7 --- /dev/null +++ b/src/Library/demos/Boxed Lists/main.blp @@ -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"; + } + } + } +} diff --git a/src/Library/demos/Boxed Lists/main.json b/src/Library/demos/Boxed Lists/main.json new file mode 100644 index 000000000..cd9a19b2a --- /dev/null +++ b/src/Library/demos/Boxed Lists/main.json @@ -0,0 +1,10 @@ +{ + "name": "Boxed Lists", + "category": "user_interface", + "description": "List to present both controls and information", + "panels": [ + "preview", + "ui" + ], + "autorun": true +} diff --git a/src/about.js b/src/about.js index ddcbfd5ae..ce8ed3d88 100644 --- a/src/about.js +++ b/src/about.js @@ -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",