Cargo fmt

This commit is contained in:
Piotr Siuszko 2022-09-25 21:13:07 +02:00
parent 5cbfa301c4
commit 7c506fb1cb
1 changed files with 19 additions and 11 deletions

View File

@ -1,6 +1,6 @@
use crate::{ use crate::{
consts::HOMEPAGE, consts::HOMEPAGE,
consts::{VERSION, VERTICAL_SPACING, APP_NAME}, consts::{APP_NAME, VERSION, VERTICAL_SPACING},
window_tab::WindowTab, window_tab::WindowTab,
}; };
use eframe::{ use eframe::{
@ -69,11 +69,14 @@ impl HubClient {
} }
}); });
}); });
row.col(|ui| {ui.with_layout( row.col(|ui| {
Layout::top_down_justified(eframe::emath::Align::Max),|ui| { ui.with_layout(
ui.add_space(VERTICAL_SPACING); Layout::top_down_justified(eframe::emath::Align::Max),
ui.label(&paths[row_index]); |ui| {
}); ui.add_space(VERTICAL_SPACING);
ui.label(&paths[row_index]);
},
);
}); });
}); });
}); });
@ -276,16 +279,21 @@ impl HubClient {
row.col(|ui| { row.col(|ui| {
ui.vertical_centered_justified(|ui| { ui.vertical_centered_justified(|ui| {
ui.add_space(VERTICAL_SPACING); ui.add_space(VERTICAL_SPACING);
if ui.button("Import").on_hover_text("Not implemented yet").clicked() { if ui
} .button("Import")
.on_hover_text("Not implemented yet")
.clicked()
{}
}); });
}); });
row.col(|ui| { row.col(|ui| {
ui.vertical_centered_justified(|ui| { ui.vertical_centered_justified(|ui| {
ui.add_space(VERTICAL_SPACING); ui.add_space(VERTICAL_SPACING);
if ui.button("Create new").on_hover_text("Not implemented yet").clicked() { if ui
.button("Create new")
} .on_hover_text("Not implemented yet")
.clicked()
{}
}); });
}); });
}); });