chore: restructure and refine the ui (#199)
* update deps * clean up * add account crate * add person crate * add chat and chat ui crates * . * clean up the ui crate * . * .
This commit is contained in:
@@ -541,9 +541,15 @@ impl Element for TextElement {
|
||||
let mut bounds = bounds;
|
||||
|
||||
let (display_text, text_color) = if is_empty {
|
||||
(Rope::from(placeholder.as_str()), cx.theme().text_muted)
|
||||
(
|
||||
Rope::from_str_small(placeholder.as_str()),
|
||||
cx.theme().text_muted,
|
||||
)
|
||||
} else if state.masked {
|
||||
(Rope::from("*".repeat(text.chars_count())), cx.theme().text)
|
||||
(
|
||||
Rope::from_str_small("*".repeat(text.chars_count()).as_str()),
|
||||
cx.theme().text,
|
||||
)
|
||||
} else {
|
||||
(text.clone(), cx.theme().text)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user