Cleanup
This commit is contained in:
+1
-1
@@ -6,10 +6,10 @@ mod writing;
|
||||
|
||||
use crate::quiz::*;
|
||||
use crate::selector::*;
|
||||
use crate::writing::{WritingMessage, WritingState};
|
||||
use crate::Page::{Quiz, Selector, Writing};
|
||||
use iced::widget::text;
|
||||
use iced::Element;
|
||||
use crate::writing::{WritingMessage, WritingState};
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::application("A kana learn app", ScreenState::update, ScreenState::view).run()
|
||||
|
||||
+4
-1
@@ -87,7 +87,10 @@ impl WritingState {
|
||||
|
||||
fn answers(&self) -> Element<'_, WritingMessage> {
|
||||
if self.set.is_empty() {
|
||||
text!("{}", self.kana_total).font(Font::with_name("AppleGothic")).size(36).into()
|
||||
text!("{}", self.kana_total)
|
||||
.font(Font::with_name("AppleGothic"))
|
||||
.size(36)
|
||||
.into()
|
||||
} else {
|
||||
vertical_space().height(36).into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user