Display colon-delimited emoji in nicks
This commit is contained in:
parent
9f7c1fb9c0
commit
16011a267d
6 changed files with 25 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use crossterm::style::ContentStyle;
|
||||
use euphoxide::conn::Joined;
|
||||
use toss::styled::Styled;
|
||||
use toss::terminal::Terminal;
|
||||
|
||||
use crate::euph::{self, Room};
|
||||
|
|
@ -17,7 +17,7 @@ pub fn new(joined: Joined) -> EditorState {
|
|||
pub fn widget(editor: &EditorState) -> BoxedWidget {
|
||||
let editor = editor
|
||||
.widget()
|
||||
.highlight(|s| Styled::new(s, euph::nick_style(s)));
|
||||
.highlight(|s| euph::style_nick_exact(s, ContentStyle::default()));
|
||||
Popup::new(Padding::new(editor).left(1))
|
||||
.title("Choose nick")
|
||||
.inner_padding(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue