style and macros for text input

This commit is contained in:
micialware committed 2026-09-15 21:54:24 +03:00
1 parent 5d12f3b02a
commit b1902b35cb
3 files changed
+21 -2

No files matched your search

+2 -2
View File
@@ -270,13 +270,13 @@ impl RepetitionState {
fn draw_context(&self, word: &WordData) -> Element<'_, RepetitionMessage> {
match word.additional.get(&Id(3)) {
None => space().into(),
Some(context) => text!("{}", context).size(24).into(),
Some(context) => text!("{}", context).center().size(24).into(),
}
}
fn draw_description(&self, word: &WordData) -> Element<'_, RepetitionMessage> {
match word.additional.get(&Id(2)) {
None => space().into(),
Some(context) => text!("{}", context).size(24).into(),
Some(context) => text!("{}", context).center().size(24).into(),
}
}
}