Combine LabelColor
and IconColor
into TextColor
This commit is contained in:
parent
dc56a7b12b
commit
76c15229c1
25 changed files with 152 additions and 220 deletions
|
@ -1,7 +1,7 @@
|
|||
use chrono::NaiveDateTime;
|
||||
|
||||
use crate::prelude::*;
|
||||
use crate::{Icon, IconButton, Input, Label, LabelColor};
|
||||
use crate::{Icon, IconButton, Input, Label, TextColor};
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct ChatPanel {
|
||||
|
@ -95,7 +95,7 @@ impl ChatMessage {
|
|||
.child(Label::new(self.author.clone()))
|
||||
.child(
|
||||
Label::new(self.sent_at.format("%m/%d/%Y").to_string())
|
||||
.color(LabelColor::Muted),
|
||||
.color(TextColor::Muted),
|
||||
),
|
||||
)
|
||||
.child(div().child(Label::new(self.text.clone())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue