single line textedit
This commit is contained in:
2
iris
2
iris
Submodule iris updated: 14a9da0553...ee0616885f
@@ -7,7 +7,7 @@ pub fn login_screen(client: &mut Client) -> WidgetId {
|
|||||||
|
|
||||||
let mut field = |name, hint_| {
|
let mut field = |name, hint_| {
|
||||||
text(name)
|
text(name)
|
||||||
.editable()
|
.editable(true)
|
||||||
.size(20)
|
.size(20)
|
||||||
.hint(hint(hint_))
|
.hint(hint(hint_))
|
||||||
.add(ui)
|
.add(ui)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pub fn main_view(client: &mut Client, network: NetSender) -> WidgetId {
|
|||||||
|
|
||||||
pub fn msg_widget(msg: Msg) -> impl WidgetLike<FnTag> {
|
pub fn msg_widget(msg: Msg) -> impl WidgetLike<FnTag> {
|
||||||
let content = text(msg.content)
|
let content = text(msg.content)
|
||||||
.editable()
|
.editable(false)
|
||||||
.size(SIZE)
|
.size(SIZE)
|
||||||
.wrap(true)
|
.wrap(true)
|
||||||
.attr::<Selectable>(());
|
.attr::<Selectable>(());
|
||||||
@@ -45,7 +45,7 @@ pub fn msg_panel(client: &mut Client, network: NetSender) -> impl WidgetFn<Sized
|
|||||||
*channel = Some(msg_area.clone());
|
*channel = Some(msg_area.clone());
|
||||||
|
|
||||||
let send_text = text("")
|
let send_text = text("")
|
||||||
.editable()
|
.editable(false)
|
||||||
.size(SIZE)
|
.size(SIZE)
|
||||||
.wrap(true)
|
.wrap(true)
|
||||||
.hint(hint("send message"))
|
.hint(hint("send message"))
|
||||||
|
|||||||
Reference in New Issue
Block a user