Small changes

This commit is contained in:
2026-08-04 14:09:40 +03:00
parent 64fbfb5a32
commit a222233290
9 changed files with 89 additions and 46 deletions
+11 -6
View File
@@ -11,8 +11,10 @@ use crate::writing::WritingState;
use crate::{AppState, QuizState, RootMessage};
use iced::widget::button::{Status, Style};
use iced::widget::*;
use iced::{Element, Task, alignment};
use iced_core::{Background, Color};
use iced::{alignment, Element, Task};
use iced_core::Alignment::Center;
use iced_core::Background;
use iced_core::Color;
use std::sync::{Arc, Mutex};
pub struct SelectorState {
@@ -114,13 +116,13 @@ impl SelectorState {
.style(Self::nav_style)
]
.spacing(DEFAULT_SPACING),
self.rows_selector(),
scrollable(self.rows_selector()).horizontal(),
toggler(self.is_writing)
.label("Режим письма")
.on_toggle(ChangeMode),
button("К тесту")
.on_press(SelectorMessage::Goto)
.style(jl_button),
.style(cta_button),
]
.spacing(DEFAULT_SPACING),
)
@@ -140,8 +142,11 @@ impl SelectorState {
for v in &self.set.dictionary[i] {
chars_column = chars_column.push(
container(text!("{}", v.0.clone().to_uppercase()).size(36))
.padding(20)
container(text!("{}", v.0.clone().to_lowercase()).size(40))
.align_y(Center)
.align_x(Center)
.width(80)
.height(80)
.style(container::rounded_box),
);
}