summaryrefslogtreecommitdiffstats
path: root/examples/pokedex/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-18 16:02:30 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-18 16:02:30 +0700
commit3140cdc4babcefc444f1c1d30eb0f5f4ed1df054 (patch)
treeb3ea963a73118d5f0bfd7d875ba776ee51466f9b /examples/pokedex/src/main.rs
parent95acc1deb89c4e75b513edb0f4d53b83c7f75b30 (diff)
downloadiced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.tar.gz
iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.tar.bz2
iced-3140cdc4babcefc444f1c1d30eb0f5f4ed1df054.zip
Wire up styling to `Button` in `iced_native`
Diffstat (limited to '')
-rw-r--r--examples/pokedex/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs
index c99240a1..c9930158 100644
--- a/examples/pokedex/src/main.rs
+++ b/examples/pokedex/src/main.rs
@@ -243,7 +243,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))
.padding(10)
- .style(style::Button::Primary)
+ .style(&style::Button::Primary)
}
mod style {