Small changes
This commit is contained in:
+9
-5
@@ -293,8 +293,7 @@ impl DictionaryState {
|
||||
row![
|
||||
iced::widget::column![
|
||||
self.groups_panel(),
|
||||
row![horizontal().width(8),
|
||||
self.words_list(),],
|
||||
row![horizontal().width(8), self.words_list(),],
|
||||
button("Добавить слово").style(jl_button).on_press(NewWord),
|
||||
]
|
||||
.spacing(5),
|
||||
@@ -337,8 +336,12 @@ impl DictionaryState {
|
||||
}
|
||||
|
||||
let mut line = Row::new().width(Length::Fill).align_y(Center);
|
||||
line = line
|
||||
.push(checkbox(self.include_map[i]).label("").spacing(15).on_toggle(move |b| Include(i, b)));
|
||||
line = line.push(
|
||||
checkbox(self.include_map[i])
|
||||
.label("")
|
||||
.spacing(15)
|
||||
.on_toggle(move |b| Include(i, b)),
|
||||
);
|
||||
|
||||
line = line.push(
|
||||
text_input("Слово", &word.key)
|
||||
@@ -364,6 +367,7 @@ impl DictionaryState {
|
||||
default_style
|
||||
}),
|
||||
);
|
||||
|
||||
line = line.push(
|
||||
text_input("Теги", &word.tags)
|
||||
.size(ACCENT_FONT_SIZE)
|
||||
@@ -422,7 +426,7 @@ impl DictionaryState {
|
||||
.label("Обратный тест")
|
||||
.on_toggle(SetReverse),
|
||||
button(text!("Тест").center().width(Length::Fill))
|
||||
.style(jl_button)
|
||||
.style(cta_button)
|
||||
.on_press(Test)
|
||||
.width(Length::Fill),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user