Include font and style changes

This commit is contained in:
2026-02-15 23:55:08 +03:00
parent 3c6eb152b4
commit 33781538f5
5 changed files with 10 additions and 19 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ use crate::lang::KanaSet;
use crate::Page::PreviousPage;
use crate::{NavigatedPage, Page};
use iced::widget::*;
use iced::{alignment, Element, Fill, Font};
use iced::{alignment, Element, Fill};
use rand::seq::SliceRandom;
#[derive(Clone, Debug)]
@@ -97,8 +97,7 @@ impl QuizState {
iced::widget::column![
row![
text!("{}", self.kana.to_uppercase())
.size(54)
.font(Font::with_name("AppleGothic")),
.size(54),
text!(
"{}",
if self.is_help {
@@ -129,6 +128,7 @@ impl QuizState {
.spacing(10)
.align_x(alignment::Horizontal::Center),
)
.center_y(Fill)
.center_x(Fill)
.into()
}