Update deps
This commit is contained in:
parent
1821a17eb6
commit
d5b91a50c9
File diff suppressed because it is too large
Load Diff
|
|
@ -17,8 +17,8 @@ opt-level = 2
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
confy = "^0.5.0"
|
confy = "^0.5.0"
|
||||||
eframe = "0.19.0"
|
eframe = "0.21.2"
|
||||||
egui_extras = "0.19.0"
|
egui_extras = "0.21.0"
|
||||||
unity_hub_lib = { path="../unity_hub_lib" }
|
unity_hub_lib = { path="../unity_hub_lib" }
|
||||||
image = { version = "0.24.0", default-features = false, features = ["png"] }
|
image = { version = "0.24.0", default-features = false, features = ["png"] }
|
||||||
rfd = "0.11.1"
|
rfd = "0.11.1"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ use eframe::{
|
||||||
egui::{self, Layout, Ui},
|
egui::{self, Layout, Ui},
|
||||||
epaint::Color32,
|
epaint::Color32,
|
||||||
};
|
};
|
||||||
use egui_extras::{Size, TableBuilder};
|
use egui_extras::{TableBuilder, Column};
|
||||||
use rfd::FileDialog;
|
use rfd::FileDialog;
|
||||||
use unity_hub_lib::{consts::FILE_MANAGER, hub::Hub};
|
use unity_hub_lib::{consts::FILE_MANAGER, hub::Hub};
|
||||||
|
|
||||||
|
|
@ -62,10 +62,10 @@ impl HubClient {
|
||||||
ui.scope(|ui| {
|
ui.scope(|ui| {
|
||||||
let table = TableBuilder::new(ui)
|
let table = TableBuilder::new(ui)
|
||||||
.striped(false)
|
.striped(false)
|
||||||
.scroll(false)
|
.vscroll(false)
|
||||||
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
||||||
.column(Size::initial(150.0).at_least(150.0))
|
.column(Column::initial(150.0).at_least(150.0))
|
||||||
.column(Size::remainder().at_least(260.0))
|
.column(Column::remainder().at_least(260.0))
|
||||||
.resizable(false);
|
.resizable(false);
|
||||||
|
|
||||||
let paths = self.hub.config.unity_search_paths.clone();
|
let paths = self.hub.config.unity_search_paths.clone();
|
||||||
|
|
@ -100,11 +100,11 @@ impl HubClient {
|
||||||
|
|
||||||
let table2 = TableBuilder::new(ui)
|
let table2 = TableBuilder::new(ui)
|
||||||
.striped(true)
|
.striped(true)
|
||||||
.scroll(false)
|
.vscroll(false)
|
||||||
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
||||||
.column(Size::initial(100.0).at_least(100.0).at_most(120.0))
|
.column(Column::initial(100.0).at_least(100.0).at_most(120.0))
|
||||||
.column(Size::initial(150.0).at_least(150.0).at_most(400.0))
|
.column(Column::initial(150.0).at_least(150.0).at_most(400.0))
|
||||||
.column(Size::remainder().at_least(260.0))
|
.column(Column::remainder().at_least(260.0))
|
||||||
.resizable(false);
|
.resizable(false);
|
||||||
|
|
||||||
table2.body(|body| {
|
table2.body(|body| {
|
||||||
|
|
@ -158,10 +158,10 @@ impl HubClient {
|
||||||
let table = TableBuilder::new(ui)
|
let table = TableBuilder::new(ui)
|
||||||
.striped(true)
|
.striped(true)
|
||||||
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
||||||
.column(Size::initial(150.0).at_least(150.0))
|
.column(Column::initial(150.0).at_least(150.0))
|
||||||
.column(Size::initial(90.0).at_least(40.0))
|
.column(Column::initial(90.0).at_least(40.0))
|
||||||
.column(Size::initial(90.0).at_least(90.0))
|
.column(Column::initial(90.0).at_least(90.0))
|
||||||
.column(Size::remainder().at_least(260.0))
|
.column(Column::remainder().at_least(260.0))
|
||||||
.resizable(false);
|
.resizable(false);
|
||||||
|
|
||||||
table
|
table
|
||||||
|
|
@ -410,11 +410,11 @@ impl HubClient {
|
||||||
fn build_header_table(ui: &mut Ui) -> TableBuilder {
|
fn build_header_table(ui: &mut Ui) -> TableBuilder {
|
||||||
let table = TableBuilder::new(ui)
|
let table = TableBuilder::new(ui)
|
||||||
.striped(false)
|
.striped(false)
|
||||||
.scroll(false)
|
.vscroll(false)
|
||||||
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
|
||||||
.column(Size::remainder().at_least(150.0))
|
.column(Column::remainder().at_least(150.0))
|
||||||
.column(Size::initial(100.0).at_most(100.0))
|
.column(Column::initial(100.0).at_most(100.0))
|
||||||
.column(Size::initial(5.0).at_most(5.0))
|
.column(Column::initial(5.0).at_most(5.0))
|
||||||
.resizable(false);
|
.resizable(false);
|
||||||
table
|
table
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ fn main() {
|
||||||
icon_data: Some(icon),
|
icon_data: Some(icon),
|
||||||
..NativeOptions::default()
|
..NativeOptions::default()
|
||||||
};
|
};
|
||||||
eframe::run_native(
|
let _ = eframe::run_native(
|
||||||
&format!("{} v {}", APP_NAME, VERSION),
|
&format!("{} v {}", APP_NAME, VERSION),
|
||||||
options,
|
options,
|
||||||
Box::new(|cc| Box::new(crate::hub_client::HubClient::new(cc))),
|
Box::new(|cc| Box::new(crate::hub_client::HubClient::new(cc))),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue