From 33ad332ce99fff5de8e50a5b5c98f3ce181c311a Mon Sep 17 00:00:00 2001 From: Malte Veerman Date: Wed, 4 Dec 2019 22:02:07 +0100 Subject: Implemented `From( state: &'a mut button::State, label: &str, ) -> Button<'a, Message> { - button(state, label).background(Background::Color(Color { - r: 0.11, - g: 0.42, - b: 0.87, - a: 1.0, - })) + button(state, label) + .background(Color::from_rgb(0.11, 0.42, 0.87).into()) } fn secondary_button<'a, Message>( state: &'a mut button::State, label: &str, ) -> Button<'a, Message> { - button(state, label).background(Background::Color(Color { - r: 0.4, - g: 0.4, - b: 0.4, - a: 1.0, - })) + button(state, label) + .background(Color::from_rgb(0.4, 0.4, 0.4).into()) + } #[derive(Debug, Clone, Copy, PartialEq, Eq)] -- cgit