diff options
author | 2021-02-24 00:59:29 +0100 | |
---|---|---|
committer | 2021-02-24 00:59:29 +0100 | |
commit | 2736e4ca35f17a92768f0be682acf6da3b574cb6 (patch) | |
tree | c2525b87ea5d50d1241caa5c3d9e59f396418b3f /examples/tooltip | |
parent | 5e2743361bf0a2e10c0e14638a9b2818c9e5e364 (diff) | |
download | iced-2736e4ca35f17a92768f0be682acf6da3b574cb6.tar.gz iced-2736e4ca35f17a92768f0be682acf6da3b574cb6.tar.bz2 iced-2736e4ca35f17a92768f0be682acf6da3b574cb6.zip |
Hide `Text` as an implementation detail of `Tooltip`
Diffstat (limited to 'examples/tooltip')
-rw-r--r-- | examples/tooltip/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tooltip/src/main.rs b/examples/tooltip/src/main.rs index b10b8b50..d6c8b8e1 100644 --- a/examples/tooltip/src/main.rs +++ b/examples/tooltip/src/main.rs @@ -110,11 +110,11 @@ fn tooltip<'a>( .on_press(Message) .width(Length::Fill) .height(Length::Fill), - Text::new("Tooltip"), + "Tooltip", position, ) - .gap(10) - .padding(20) + .gap(5) + .padding(10) .style(style::Tooltip) .into() } |