Skip to content

Commit 7e70e16

Browse files
committed
Update deps
1 parent 7de130e commit 7e70e16

9 files changed

Lines changed: 683 additions & 433 deletions

File tree

Cargo.lock

Lines changed: 643 additions & 396 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ clap = "4.5.4"
2525
dirs = "5.0.1"
2626
dotenvy = "0.15.7"
2727
educe = { version = "0.6.0", default-features = false }
28-
eframe = "0.31.0"
28+
eframe = "0.34.0"
2929
error-fatality = "0.1.2"
3030
fallible-iterator = "0.3.0"
3131
fips205 = "0.4.1"

app/gui/coins/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ impl Coins {
3737
}
3838

3939
pub fn show(&mut self, app: Option<&App>, ui: &mut egui::Ui) {
40-
egui::TopBottomPanel::top("coins_tabs").show(ui.ctx(), |ui| {
40+
egui::Panel::top("coins_tabs").show_inside(ui, |ui| {
4141
ui.horizontal(|ui| {
4242
Tab::iter().for_each(|tab_variant| {
4343
let tab_name = tab_variant.to_string();
4444
ui.selectable_value(&mut self.tab, tab_variant, tab_name);
4545
})
4646
});
4747
});
48-
egui::CentralPanel::default().show(ui.ctx(), |ui| match self.tab {
48+
egui::CentralPanel::default().show_inside(ui, |ui| match self.tab {
4949
Tab::TransferReceive => {
5050
let () = self.transfer_receive.show(app, ui);
5151
}

app/gui/coins/transfer_receive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ impl TransferReceive {
148148
}
149149

150150
pub fn show(&mut self, app: Option<&App>, ui: &mut egui::Ui) {
151-
egui::SidePanel::left("transfer")
152-
.exact_width(ui.available_width() / 2.)
151+
egui::Panel::left("transfer")
152+
.exact_size(ui.available_width() / 2.)
153153
.resizable(false)
154154
.show_inside(ui, |ui| {
155155
ui.vertical_centered(|ui| {

app/gui/console_logs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::sync::{
66
use clap::Parser;
77
use eframe::egui::{
88
self, Key, KeyboardShortcut, Modifiers, ScrollArea, TextEdit, TextStyle,
9-
TopBottomPanel, Widget as _,
9+
Widget as _,
1010
};
1111

1212
use crate::{
@@ -89,7 +89,7 @@ impl ConsoleLogs {
8989
}
9090

9191
pub fn show(&mut self, app: Option<&App>, ui: &mut egui::Ui) {
92-
TopBottomPanel::bottom("command_input").show_inside(ui, |ui| {
92+
egui::Panel::bottom("command_input").show_inside(ui, |ui| {
9393
let command_input = TextEdit::multiline(&mut self.command_input)
9494
.font(TextStyle::Monospace)
9595
.desired_width(f32::INFINITY)

app/gui/mod.rs

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,18 @@ impl EguiApp {
221221
}
222222

223223
impl eframe::App for EguiApp {
224-
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
225-
ctx.request_repaint();
224+
fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
225+
ui.request_repaint();
226226
if let Some(app) = self.app.as_ref()
227227
&& !app.wallet.has_seed().unwrap_or(false)
228228
{
229-
egui::CentralPanel::default().show(ctx, |_ui| {
230-
egui::Window::new("Set Seed").show(ctx, |ui| {
229+
egui::CentralPanel::default().show_inside(ui, |ui| {
230+
egui::Window::new("Set Seed").show(ui, |ui| {
231231
self.set_seed.show(app, ui);
232232
});
233233
});
234234
} else {
235-
egui::TopBottomPanel::top("tabs").show(ctx, |ui| {
235+
egui::Panel::top("tabs").show_inside(ui, |ui| {
236236
ui.horizontal(|ui| {
237237
Tab::iter().for_each(|tab_variant| {
238238
let tab_name = tab_variant.to_string();
@@ -244,26 +244,29 @@ impl eframe::App for EguiApp {
244244
})
245245
});
246246
});
247-
egui::TopBottomPanel::bottom("bottom_panel")
248-
.show(ctx, |ui| self.bottom_panel.show(&mut self.miner, ui));
249-
egui::CentralPanel::default().show(ctx, |ui| match self.tab {
250-
Tab::ParentChain => {
251-
self.parent_chain.show(self.app.as_ref(), ui)
252-
}
253-
Tab::Coins => {
254-
self.coins.show(self.app.as_ref(), ui);
255-
}
256-
Tab::MemPoolExplorer => {
257-
self.mempool_explorer.show(self.app.as_ref(), ui);
258-
}
259-
Tab::BlockExplorer => {
260-
self.block_explorer.show(self.app.as_ref(), ui);
261-
}
262-
Tab::Withdrawals => {
263-
self.withdrawals.show(self.app.as_ref(), ui);
264-
}
265-
Tab::ConsoleLogs => {
266-
self.console_logs.show(self.app.as_ref(), ui);
247+
egui::Panel::bottom("bottom_panel").show_inside(ui, |ui| {
248+
self.bottom_panel.show(&mut self.miner, ui)
249+
});
250+
egui::CentralPanel::default().show_inside(ui, |ui| {
251+
match self.tab {
252+
Tab::ParentChain => {
253+
self.parent_chain.show(self.app.as_ref(), ui)
254+
}
255+
Tab::Coins => {
256+
self.coins.show(self.app.as_ref(), ui);
257+
}
258+
Tab::MemPoolExplorer => {
259+
self.mempool_explorer.show(self.app.as_ref(), ui);
260+
}
261+
Tab::BlockExplorer => {
262+
self.block_explorer.show(self.app.as_ref(), ui);
263+
}
264+
Tab::Withdrawals => {
265+
self.withdrawals.show(self.app.as_ref(), ui);
266+
}
267+
Tab::ConsoleLogs => {
268+
self.console_logs.show(self.app.as_ref(), ui);
269+
}
267270
}
268271
});
269272
}

app/gui/parent_chain/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ impl ParentChain {
3535
}
3636

3737
pub fn show(&mut self, app: Option<&App>, ui: &mut egui::Ui) {
38-
egui::TopBottomPanel::top("parent_chain_tabs").show(ui.ctx(), |ui| {
38+
egui::Panel::top("parent_chain_tabs").show_inside(ui, |ui| {
3939
ui.horizontal(|ui| {
4040
Tab::iter().for_each(|tab_variant| {
4141
let tab_name = tab_variant.to_string();
4242
ui.selectable_value(&mut self.tab, tab_variant, tab_name);
4343
})
4444
});
4545
});
46-
egui::CentralPanel::default().show(ui.ctx(), |ui| match self.tab {
46+
egui::CentralPanel::default().show_inside(ui, |ui| match self.tab {
4747
Tab::Transfer => {
4848
self.transfer.show(app, ui);
4949
}

app/gui/parent_chain/transfer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ pub(super) struct Transfer {
289289

290290
impl Transfer {
291291
pub fn show(&mut self, app: Option<&App>, ui: &mut egui::Ui) {
292-
egui::SidePanel::left("deposit")
293-
.exact_width(ui.available_width() / 2.)
292+
egui::Panel::left("deposit")
293+
.exact_size(ui.available_width() / 2.)
294294
.resizable(false)
295295
.show_inside(ui, |ui| {
296296
ui.vertical_centered(|ui| {

deny.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ exceptions = [
118118
{ allow = ["CDLA-Permissive-2.0"], name = "webpki-root-certs", version = "0.26.11" },
119119
{ allow = ["CDLA-Permissive-2.0"], name = "webpki-root-certs", version = "1.0.5" },
120120
{ allow = ["CDLA-Permissive-2.0"], name = "webpki-roots", version = "1.0.5" },
121-
{ allow = ["LicenseRef-UFL-1.0", "OFL-1.1", "Ubuntu-font-1.0"], name = "epaint_default_fonts", version = "0.31.0" },
121+
{ allow = ["LicenseRef-UFL-1.0", "OFL-1.1", "Ubuntu-font-1.0"], name = "epaint_default_fonts", version = "0.34.3" },
122122
{ allow = ["MPL-2.0"], name = "bitmaps", version = "3.2.1" },
123123
{ allow = ["MPL-2.0"], name = "imbl", version = "7.0.0" },
124124
{ allow = ["MPL-2.0"], name = "imbl-sized-chunks", version = "0.1.3" },

0 commit comments

Comments
 (0)