45 lines
730 B
Text
45 lines
730 B
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $ArticleRow : Gtk.Box {
|
|
orientation: vertical;
|
|
margin-top: 12;
|
|
margin-bottom: 12;
|
|
margin-start: 12;
|
|
margin-end: 12;
|
|
spacing: 4;
|
|
|
|
Box {
|
|
orientation: horizontal;
|
|
spacing: 4;
|
|
|
|
Label feed_title_label {
|
|
hexpand: true;
|
|
xalign: 0;
|
|
ellipsize: end;
|
|
styles ["dim-label", "caption"]
|
|
}
|
|
|
|
Label date_label {
|
|
xalign: 1;
|
|
styles ["dim-label", "caption"]
|
|
}
|
|
}
|
|
|
|
Label title_label {
|
|
hexpand: true;
|
|
xalign: 0;
|
|
wrap: true;
|
|
lines: 2;
|
|
ellipsize: end;
|
|
styles ["article-title"]
|
|
}
|
|
|
|
Label excerpt_label {
|
|
hexpand: true;
|
|
xalign: 0;
|
|
ellipsize: end;
|
|
lines: 1;
|
|
styles ["dim-label", "caption"]
|
|
}
|
|
}
|