mirror of
https://gitlab.com/schmiddi-on-mobile/flare.git
synced 2026-10-25 13:07:46 -04:00
54 lines
1.1 KiB
Plaintext
54 lines
1.1 KiB
Plaintext
using Gtk 4.0;
|
|
|
|
template $FlTextEntry : Box {
|
|
Overlay overlay {
|
|
[overlay]
|
|
Inscription placeholder {
|
|
styles [
|
|
"dim-label",
|
|
]
|
|
visible: bind $is_empty(view.buffer.text as <string>) as <bool>;
|
|
can-target: false;
|
|
text: _("Message");
|
|
text-overflow: ellipsize_end;
|
|
}
|
|
|
|
Box {
|
|
css-name: "entry";
|
|
|
|
styles [
|
|
"small-pill",
|
|
]
|
|
|
|
ScrolledWindow {
|
|
max-content-height: 200;
|
|
hscrollbar-policy: never;
|
|
propagate-natural-height: true;
|
|
hexpand: true;
|
|
child: TextView view {
|
|
top-margin: 6;
|
|
bottom-margin: 6;
|
|
wrap-mode: word_char;
|
|
valign: center;
|
|
};
|
|
}
|
|
|
|
Button {
|
|
accessibility {
|
|
label: C_("accessibility", "Insert an emoji");
|
|
}
|
|
styles [
|
|
"circular",
|
|
"dim-label",
|
|
]
|
|
tooltip-text: C_("tooltip", "Insert emoji");
|
|
clicked => $insert_emoji() swapped;
|
|
icon-name: "emoji-people-symbolic";
|
|
valign: center;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|