chore: add scale factor
This commit is contained in:
parent
9a9f2efecd
commit
878c2dcd5d
1 changed files with 7 additions and 1 deletions
|
|
@ -364,6 +364,7 @@ where
|
||||||
layout: Layout<'_>,
|
layout: Layout<'_>,
|
||||||
cursor_position: mouse::Cursor,
|
cursor_position: mouse::Cursor,
|
||||||
value: Option<&Value>,
|
value: Option<&Value>,
|
||||||
|
style: &renderer::Style,
|
||||||
) {
|
) {
|
||||||
draw(
|
draw(
|
||||||
renderer,
|
renderer,
|
||||||
|
|
@ -388,6 +389,7 @@ where
|
||||||
self.helper_size,
|
self.helper_size,
|
||||||
self.helper_line_height,
|
self.helper_line_height,
|
||||||
&layout.bounds(),
|
&layout.bounds(),
|
||||||
|
style,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -615,7 +617,7 @@ where
|
||||||
tree: &Tree,
|
tree: &Tree,
|
||||||
renderer: &mut crate::Renderer,
|
renderer: &mut crate::Renderer,
|
||||||
theme: &<crate::Renderer as iced_core::Renderer>::Theme,
|
theme: &<crate::Renderer as iced_core::Renderer>::Theme,
|
||||||
_style: &renderer::Style,
|
style: &renderer::Style,
|
||||||
layout: Layout<'_>,
|
layout: Layout<'_>,
|
||||||
cursor_position: mouse::Cursor,
|
cursor_position: mouse::Cursor,
|
||||||
viewport: &Rectangle,
|
viewport: &Rectangle,
|
||||||
|
|
@ -643,6 +645,7 @@ where
|
||||||
self.helper_size,
|
self.helper_size,
|
||||||
self.helper_line_height,
|
self.helper_line_height,
|
||||||
viewport,
|
viewport,
|
||||||
|
style,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1688,6 +1691,7 @@ pub fn draw<'a, Message>(
|
||||||
helper_text_size: f32,
|
helper_text_size: f32,
|
||||||
helper_line_height: text::LineHeight,
|
helper_line_height: text::LineHeight,
|
||||||
viewport: &Rectangle,
|
viewport: &Rectangle,
|
||||||
|
renderer_style: &renderer::Style,
|
||||||
) {
|
) {
|
||||||
// all children should be icon images
|
// all children should be icon images
|
||||||
let children = &tree.children;
|
let children = &tree.children;
|
||||||
|
|
@ -1799,6 +1803,7 @@ pub fn draw<'a, Message>(
|
||||||
theme,
|
theme,
|
||||||
&renderer::Style {
|
&renderer::Style {
|
||||||
text_color: appearance.text_color,
|
text_color: appearance.text_color,
|
||||||
|
scale_factor: renderer_style.scale_factor,
|
||||||
},
|
},
|
||||||
icon_layout,
|
icon_layout,
|
||||||
cursor_position,
|
cursor_position,
|
||||||
|
|
@ -1965,6 +1970,7 @@ pub fn draw<'a, Message>(
|
||||||
theme,
|
theme,
|
||||||
&renderer::Style {
|
&renderer::Style {
|
||||||
text_color: appearance.text_color,
|
text_color: appearance.text_color,
|
||||||
|
scale_factor: renderer_style.scale_factor,
|
||||||
},
|
},
|
||||||
icon_layout,
|
icon_layout,
|
||||||
cursor_position,
|
cursor_position,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue