Update libcosmic

This commit is contained in:
Jeremy Soller 2024-01-17 09:37:15 -07:00
parent 8d91f3c4ea
commit d4d2773715
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 682 additions and 580 deletions

View file

@ -584,20 +584,24 @@ impl cosmic::Application for App {
match &self.prompt_opt {
Some((prompt, secret, value_opt)) => match value_opt {
Some(value) => {
let mut text_input = widget::text_input(&prompt, &value)
.id(self.text_input_id.clone())
.leading_icon(
widget::icon::from_name("system-lock-screen-symbolic")
.into(),
)
.trailing_icon(
widget::icon::from_name("document-properties-symbolic")
.into(),
)
.on_input(|value| {
Message::Prompt(prompt.clone(), *secret, Some(value))
})
.on_submit(Message::Auth(socket.clone(), Some(value.clone())));
let mut text_input =
widget::text_input(prompt.clone(), value.clone())
.id(self.text_input_id.clone())
.leading_icon(
widget::icon::from_name("system-lock-screen-symbolic")
.into(),
)
.trailing_icon(
widget::icon::from_name("document-properties-symbolic")
.into(),
)
.on_input(|value| {
Message::Prompt(prompt.clone(), *secret, Some(value))
})
.on_submit(Message::Auth(
socket.clone(),
Some(value.clone()),
));
if *secret {
text_input = text_input.password()