using Gtk 4.0;
using Adw 1;

template $ResultRow : Adw.ActionRow {
    activatable: true;
    title: "No title set";
    subtitle: "No subtitle set";
    tooltip-text: _("Add Package to Queue");

    Box {
        orientation: vertical;
        valign: center;
        spacing: 4;
        margin-end: 4;
        Label version_label {
            styles ["subtitle"]
            label: "";
            justify: right;
            halign: end;
            hexpand: true;
            wrap: true;
        }
        Label branch_label {
            styles ["subtitle"]
            label: "";
            justify: right;
            halign: end;
            hexpand: true;
            wrap: true;
        }
    }
    [suffix]
    Image add_image {
        icon-name: "plus-large-symbolic";
    }
    [suffix]
    Image selected_image {
        icon-name: "check-plain-symbolic";
    }
    [suffix]
    Image sub_image {
        icon-name: "minus-large-symbolic";
    }
    [suffix]
    Image installed_image {
        icon-name: "selection-mode-symbolic";
        styles ["success"]
    }
}
