revert Font update
This commit is contained in:
2026-08-01 01:22:26 +03:00
parent cf0c371a19
commit 12e4589a61
12 changed files with 65 additions and 72 deletions
+6 -6
View File
@@ -1,9 +1,9 @@
use crate::data_provider::words::{delete_word, update_word};
use crate::lang::WordData;
use crate::Page::PreviousPage;
use crate::{jl_text_input, AppState, NavigatedPage, Page, RootMessage, DEFAULT_SPACING};
use crate::{AppState, NavigatedPage, Page, RootMessage, DEFAULT_SPACING};
use iced::widget::button::danger;
use iced::widget::{button, column, container, row, rule, scrollable, space, text};
use iced::widget::{button, column, container, row, rule, scrollable, space, text, text_input};
use iced::{Element, Fill, Task};
use std::sync::{Arc, Mutex};
@@ -93,11 +93,11 @@ impl WordState {
let mut col = iced::widget::column![
button("Назад").on_press(WordMessage::Back),
text!("Ключ"),
jl_text_input("key", &self.word.key).on_input(WordMessage::SetKey),
text_input("key", &self.word.key).on_input(WordMessage::SetKey),
text!("Значение"),
jl_text_input("value", &self.word.value).on_input(WordMessage::SetValue),
text_input("value", &self.word.value).on_input(WordMessage::SetValue),
text!("Теги"),
jl_text_input("tags", &self.word.tags).on_input(WordMessage::SetTags),
text_input("tags", &self.word.tags).on_input(WordMessage::SetTags),
rule::horizontal(2),
scrollable(fast_add),
];
@@ -146,7 +146,7 @@ impl WordState {
fn additional_field(&self, value: (&String, &String), name: String, id: String) -> Element<'_, WordMessage> {
column![
text!("{}", name),
jl_text_input(id.clone().as_str(), &value.1)
text_input(id.clone().as_str(), &value.1)
.on_input(move |string| WordMessage::SetAdditional(id.clone(), string))
]
.spacing(DEFAULT_SPACING)