clean usage of color outside of theme palette
This commit is contained in:
parent
6e5fcb4463
commit
47093a3eaf
@ -36,12 +36,12 @@ pub fn custom_template_description(progress: (usize, usize)) -> Element<'static,
|
||||
.max_width(800.0)
|
||||
.push(Container::new(
|
||||
p1_regular("For this setup you will need to define your primary and recovery spending policies. For security reasons, we suggest you use a separate Hardware Wallet for each key belonging to them.")
|
||||
.color(color::GREY_2)
|
||||
.style(theme::text::secondary)
|
||||
.align_x(alignment::Horizontal::Left)
|
||||
).align_x(alignment::Horizontal::Left).width(Length::Fill))
|
||||
.push(Container::new(
|
||||
p1_regular("The keys belonging to your primary policy can always spend. Those belonging to the recovery policies will be able to spend only after a defined time of wallet inactivity, allowing for secure recovery and advanced spending policies.")
|
||||
.color(color::GREY_2)
|
||||
.style(theme::text::secondary)
|
||||
.align_x(alignment::Horizontal::Left)
|
||||
).align_x(alignment::Horizontal::Left).width(Length::Fill))
|
||||
.push(image::custom_template_description().width(Length::Fill))
|
||||
|
||||
@ -1,16 +1,16 @@
|
||||
use crate::{color, theme, widget::*};
|
||||
use crate::{theme, widget::*};
|
||||
use iced::alignment::{Horizontal, Vertical};
|
||||
use iced::widget::{button, container, row};
|
||||
|
||||
use super::text::text;
|
||||
|
||||
pub fn menu<'a, T: 'a>(icon: Option<Text<'a>>, t: &'static str) -> Button<'a, T> {
|
||||
button::Button::new(content_menu(icon.map(|i| i.color(color::GREY_3)), t).padding(10))
|
||||
button::Button::new(content_menu(icon.map(|i| i.style(theme::text::secondary)), t).padding(10))
|
||||
.style(theme::button::menu)
|
||||
}
|
||||
|
||||
pub fn menu_active<'a, T: 'a>(icon: Option<Text<'a>>, t: &'static str) -> Button<'a, T> {
|
||||
button::Button::new(content_menu(icon.map(|i| i.color(color::GREY_3)), t).padding(10))
|
||||
button::Button::new(content_menu(icon.map(|i| i.style(theme::text::secondary)), t).padding(10))
|
||||
.style(theme::button::menu_pressed)
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
use crate::{
|
||||
color,
|
||||
component::{amount, badge, text},
|
||||
theme,
|
||||
widget::*,
|
||||
@ -56,7 +55,7 @@ pub fn confirmed_outgoing_event<T: Clone + 'static>(
|
||||
.format("%b. %d, %Y - %T")
|
||||
.to_string()
|
||||
)
|
||||
.color(color::GREY_3)
|
||||
.style(theme::text::secondary)
|
||||
)
|
||||
)
|
||||
.spacing(10)
|
||||
@ -120,7 +119,7 @@ pub fn confirmed_incoming_event<T: Clone + 'static>(
|
||||
.format("%b. %d, %Y - %T")
|
||||
.to_string()
|
||||
)
|
||||
.color(color::GREY_3)
|
||||
.style(theme::text::secondary)
|
||||
)
|
||||
)
|
||||
.spacing(10)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user