Separate online and airplane AI profiles.

This commit is contained in:
2026-07-20 11:52:00 +02:00
parent 3739da0984
commit 2d6fcafc7e
21 changed files with 1147 additions and 538 deletions

View File

@@ -201,6 +201,31 @@ pub fn labeled_input<'a, Message: Clone + 'a>(
.into()
}
/// A labeled password input field.
pub fn labeled_secure_input<'a, Message: Clone + 'a>(
label: &str,
placeholder: &str,
value: &str,
on_change: impl Fn(String) -> Message + 'a,
) -> Element<'a, Message> {
column![
text(label.to_string())
.size(12)
.color(LABEL_COLOR)
.shaping(Shaping::Advanced),
text_input(placeholder, value)
.on_input(on_change)
.secure(true)
.size(14)
.padding([8, 10])
.width(Length::Fill)
.style(field_style),
]
.spacing(6)
.width(Length::Fill)
.into()
}
/// A labeled select/dropdown field.
pub fn labeled_select<'a, T, Message>(
label: &str,