style and macros for text input
This commit is contained in:
1 parent
5d12f3b02a
commit
b1902b35cb
3 files changed
+21
-2
No files matched your search
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user