summaryrefslogtreecommitdiffstats
path: root/examples/component/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/component/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/component/src/main.rs b/examples/component/src/main.rs
index 39335cf1..d863c58f 100644
--- a/examples/component/src/main.rs
+++ b/examples/component/src/main.rs
@@ -95,6 +95,8 @@ mod numeric_input {
for NumericInput<'a, Message>
where
Renderer: 'a + text::Renderer,
+ Renderer::Theme: button::StyleSheet,
+ <Renderer::Theme as button::StyleSheet>::Variant: Default + Copy,
{
type Event = Event;
@@ -172,6 +174,8 @@ mod numeric_input {
where
Message: 'a,
Renderer: text::Renderer + 'a,
+ Renderer::Theme: button::StyleSheet,
+ <Renderer::Theme as button::StyleSheet>::Variant: Default + Copy,
{
fn from(numeric_input: NumericInput<'a, Message>) -> Self {
component::view(numeric_input)