Implement watched toggle for films in details modal

- Watched status is stored in the local database
- Gave details modals a set size
- Added a for now useless play button to film details modal
This commit is contained in:
Reinout Meliesie 2026-01-24 18:25:59 +01:00
commit 629f2ba9d0
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
5 changed files with 135 additions and 19 deletions

View file

@ -1,5 +1,5 @@
use gtk4::prelude::{BoxExt, OrientableExt, WidgetExt};
use gtk4::{Label, Orientation};
use gtk4::{Justification, Label, Orientation};
use relm4::{ComponentParts, ComponentSender, RelmWidgetExt, SimpleComponent, component};
use crate::views::overview::SeriesOverview;
@ -23,6 +23,12 @@ impl SimpleComponent for SeriesDetails {
set_margin_all: 100,
Label {
set_wrap: true,
// Not the actual limit, used instead to avoid the text width propagating to the
// requested widget width, behaving similarly to hexpand: false.
set_max_width_chars: 1,
// Keeps wrapped text centered.
set_justify: Justification::Center,
set_css_classes: &["title-1"],
set_label: model.series_overview.name.as_str(),
}