Visual changes
This commit is contained in:
+6
-16
@@ -293,13 +293,14 @@ impl DictionaryState {
|
||||
row![
|
||||
iced::widget::column![
|
||||
self.groups_panel(),
|
||||
self.words_list(),
|
||||
row![horizontal().width(8),
|
||||
self.words_list(),],
|
||||
button("Добавить слово").style(jl_button).on_press(NewWord),
|
||||
]
|
||||
.spacing(5),
|
||||
self.filters(),
|
||||
]
|
||||
.spacing(5)
|
||||
.spacing(DEFAULT_SPACING)
|
||||
.into(),
|
||||
Back,
|
||||
)
|
||||
@@ -337,8 +338,7 @@ impl DictionaryState {
|
||||
|
||||
let mut line = Row::new().width(Length::Fill).align_y(Center);
|
||||
line = line
|
||||
.push(checkbox(self.include_map[i]).on_toggle(move |b| Include(i, b)))
|
||||
.push(space().width(10));
|
||||
.push(checkbox(self.include_map[i]).label("").spacing(15).on_toggle(move |b| Include(i, b)));
|
||||
|
||||
line = line.push(
|
||||
text_input("Слово", &word.key)
|
||||
@@ -536,7 +536,7 @@ impl DictionaryState {
|
||||
iced::widget::column![
|
||||
scrollable(row).width(Length::Fill).horizontal(),
|
||||
row![
|
||||
button("⇳").on_press(ChangeDirection),
|
||||
button("⇳").on_press(ChangeDirection).style(jl_button),
|
||||
text_input("Название группы слов", &group.name)
|
||||
.on_input(EditGroup)
|
||||
.width(250)
|
||||
@@ -544,7 +544,7 @@ impl DictionaryState {
|
||||
horizontal(),
|
||||
button("Удалить").style(danger).on_press(DeleteGroup),
|
||||
]
|
||||
.spacing(DEFAULT_SPACING)
|
||||
.spacing(DEFAULT_SPACING / 2.0)
|
||||
]
|
||||
.into()
|
||||
}
|
||||
@@ -566,13 +566,3 @@ pub fn app_data_dir() -> PathBuf {
|
||||
|
||||
dir
|
||||
}
|
||||
|
||||
// pub fn app_cache_dir() -> PathBuf {
|
||||
// let mut dir = dirs::cache_dir().unwrap();
|
||||
// dir.push("jap_learn");
|
||||
// if !dir.exists() {
|
||||
// fs::create_dir(dir.clone()).unwrap();
|
||||
// }
|
||||
//
|
||||
// dir
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user