diff options
author | 2019-12-05 01:57:35 +0100 | |
---|---|---|
committer | 2019-12-05 01:57:35 +0100 | |
commit | e92ea48e8814b42fc566017db085ca9bdaf3c272 (patch) | |
tree | 48413064237f8b00b4b4c8668a96fc5ca79d995a /examples/pokedex.rs | |
parent | f87ddf1056327551b4a2bba9e98cbb7816b6666c (diff) | |
download | iced-e92ea48e8814b42fc566017db085ca9bdaf3c272.tar.gz iced-e92ea48e8814b42fc566017db085ca9bdaf3c272.tar.bz2 iced-e92ea48e8814b42fc566017db085ca9bdaf3c272.zip |
Make `Button::background` generic
Diffstat (limited to 'examples/pokedex.rs')
-rw-r--r-- | examples/pokedex.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pokedex.rs b/examples/pokedex.rs index 6893bb73..b9daeabd 100644 --- a/examples/pokedex.rs +++ b/examples/pokedex.rs @@ -1,6 +1,6 @@ use iced::{ - button, image, Align, Application, Button, Color, Column, - Command, Container, Element, Image, Length, Row, Settings, Text, + button, image, Align, Application, Button, Color, Column, Command, + Container, Element, Image, Length, Row, Settings, Text, }; pub fn main() { @@ -225,7 +225,7 @@ impl From<reqwest::Error> for Error { fn button<'a>(state: &'a mut button::State, text: &str) -> Button<'a, Message> { Button::new(state, Text::new(text).color(Color::WHITE)) - .background(Color::from_rgb(0.11, 0.42, 0.87).into()) + .background(Color::from_rgb(0.11, 0.42, 0.87)) .border_radius(10) .padding(10) } |