|
@@ -157,32 +157,41 @@ namespace components {
|
|
|
|
|
|
// Контейнер деталей видео
|
|
|
auto details = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL);
|
|
|
+ details->set_margin(8);
|
|
|
|
|
|
// Название
|
|
|
- auto title = Gtk::make_managed<Gtk::Label>("", Gtk::Align::START);
|
|
|
+ auto title = Gtk::make_managed<Gtk::Label>();
|
|
|
+ title->set_halign(Gtk::Align::START);
|
|
|
|
|
|
// Контейнер для времени, канала и кол-ва просмотров
|
|
|
- auto info = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL);
|
|
|
+ auto info = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::HORIZONTAL);
|
|
|
+ info->set_homogeneous();
|
|
|
+ info->set_hexpand();
|
|
|
|
|
|
// Надпись: время публикации
|
|
|
auto published_at_label = Gtk::make_managed<Gtk::Label>();
|
|
|
+ published_at_label->set_halign(Gtk::Align::START);
|
|
|
|
|
|
// Надпись: название канала
|
|
|
auto channel_label = Gtk::make_managed<Gtk::Label>();
|
|
|
+ channel_label->set_halign(Gtk::Align::START);
|
|
|
|
|
|
// Надпись: количество просмотров
|
|
|
auto views_count_label = Gtk::make_managed<Gtk::Label>();
|
|
|
+ views_count_label->set_halign(Gtk::Align::START);
|
|
|
|
|
|
// Контейнер для кнопок
|
|
|
- auto buttons = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL);
|
|
|
+ auto buttons = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::HORIZONTAL);
|
|
|
+ buttons->set_spacing(4);
|
|
|
+ buttons->set_margin(8);
|
|
|
|
|
|
// Кнопка "Воспроизвести"
|
|
|
auto play_button = Gtk::make_managed<Gtk::Button>();
|
|
|
- play_button->set_icon_name("media-playlist-play");
|
|
|
+ play_button->set_icon_name("media-playback-start");
|
|
|
|
|
|
// Кнопка "Добавить в очередь"
|
|
|
auto queue_button = Gtk::make_managed<Gtk::Button>();
|
|
|
- queue_button->set_icon_name("playlist-queue");
|
|
|
+ queue_button->set_icon_name("list-add");
|
|
|
|
|
|
info->append(*published_at_label);
|
|
|
info->append(*channel_label);
|