refactor(theme): create Container::ContextDrawer style variant

This commit is contained in:
Michael Aaron Murphy 2024-03-05 15:01:32 +01:00
parent d9228d78c6
commit 5cd1d6d63b
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
4 changed files with 82 additions and 59 deletions

View file

@ -9,7 +9,6 @@ use crate::{
};
use derive_setters::Setters;
use iced_core::Length;
use iced_widget::container;
/// A settings item aligned in a row
#[must_use]
@ -80,7 +79,7 @@ impl<'a, Message: 'static> Item<'a, Message> {
contents.push(text(self.title).width(Length::Fill).into());
}
contents.push(widget.into().into());
contents.push(widget.into());
item_row(contents)
}