diff options
author | 2020-01-09 18:46:06 +0100 | |
---|---|---|
committer | 2020-01-09 18:46:06 +0100 | |
commit | 0a8302450557877cb667b51fc84383aaf0a11b02 (patch) | |
tree | fe3a8a6b0ae82f7fd1fa0c0de34b4b09d0b9edda /native/src/widget/row.rs | |
parent | 6699329d3f91c5b9d8e8e55ad88de24bd3894955 (diff) | |
parent | 7b278755fc7929633b5771824beac4d39b16e82e (diff) | |
download | iced-0a8302450557877cb667b51fc84383aaf0a11b02.tar.gz iced-0a8302450557877cb667b51fc84383aaf0a11b02.tar.bz2 iced-0a8302450557877cb667b51fc84383aaf0a11b02.zip |
Merge pull request #146 from hecrj/feature/custom-styling
Custom styling
Diffstat (limited to 'native/src/widget/row.rs')
-rw-r--r-- | native/src/widget/row.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/native/src/widget/row.rs b/native/src/widget/row.rs index 7d951968..b3dc90ba 100644 --- a/native/src/widget/row.rs +++ b/native/src/widget/row.rs @@ -174,10 +174,11 @@ where fn draw( &self, renderer: &mut Renderer, + defaults: &Renderer::Defaults, layout: Layout<'_>, cursor_position: Point, ) -> Renderer::Output { - renderer.draw(&self.children, layout, cursor_position) + renderer.draw(defaults, &self.children, layout, cursor_position) } fn hash_layout(&self, state: &mut Hasher) { @@ -215,6 +216,7 @@ pub trait Renderer: crate::Renderer + Sized { /// [`Layout`]: ../layout/struct.Layout.html fn draw<Message>( &mut self, + defaults: &Self::Defaults, children: &[Element<'_, Message, Self>], layout: Layout<'_>, cursor_position: Point, |