1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Frame resolver — content-taking container helper.
//!
//! `theme.frame(content, &[classes])` wraps content in an `iced::Container`
//! with both the **style** (background, border, radius, shadow) from
//! [`Theme::container`] AND the **padding** pulled from the merged class set.
//!
//! ```rust,ignore
//! // Section card: bg + radius + padding + gap inside
//! theme.frame(
//! theme.column(&["subsection"])
//! .push(theme.text("Buttons", &["title-small"]))
//! .push(buttons_content),
//! &["section", "section-body"],
//! )
//!
//! // Sidebar with scrollable content
//! theme.frame(
//! scrollable(sidebar_content).height(Length::Fill),
//! &["sidebar", "section-body"],
//! )
//! .width(280)
//! .height(Length::Fill)
//! ```
//!
//! This is the ergonomic counterpart to [`Theme::container`] (which returns
//! a style closure for use with `iced::widget::container(c).style(...)`).
//! Use `frame` when you want padding baked in; use `container` when you only
//! need the style closure.
use ;
use ;
use crateTheme;