diff options
author | 2021-12-13 15:36:15 +0700 | |
---|---|---|
committer | 2021-12-13 15:36:15 +0700 | |
commit | e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1 (patch) | |
tree | c94edd5f2ffbabfe8dcd56ab3933f5aabc2ecd83 /native/src/widget/checkbox.rs | |
parent | bc15bfdb67394eb6eaaacec96d919f0f6cfe4efb (diff) | |
parent | d06e6bfb5111c1f2d2fd43c10a0c69870539742f (diff) | |
download | iced-e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1.tar.gz iced-e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1.tar.bz2 iced-e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1.zip |
Merge pull request #1155 from AlisCode/refactor/decouple_image
Decouple `image::Handle` from `iced_native` and lower trait bound on `text::Renderer::Font`
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r-- | native/src/widget/checkbox.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index 2af2d60c..5a8dbc83 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -157,7 +157,7 @@ where ) .push( Text::new(&self.label) - .font(self.font) + .font(self.font.clone()) .width(self.width) .size(self.text_size.unwrap_or(renderer.default_size())), ) @@ -261,7 +261,7 @@ where style, label_layout, &self.label, - self.font, + self.font.clone(), self.text_size, self.text_color.or(Some(custom_style.text_color)), alignment::Horizontal::Left, |