diff --git a/Cargo.toml b/Cargo.toml index 2b8fc07..6363e34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,7 @@ [workspace] resolver = "2" members = [ - "crates/egui-dock", "crates/egui-term", - "crates/egui-theme-switch", "crates/egui-toast", "nxshell", ] @@ -22,37 +20,33 @@ keywords = ["terminal", "egui"] [workspace.dependencies] alacritty_terminal = { git = "https://github.com/alacritty/alacritty" } anyhow = "1" -catppuccin-egui = { version = "5.5", default-features = false } +catppuccin-egui = { version = "5.6", default-features = false } chrono = "0.4" copypasta = "0.10" -duplicate = "2" -eframe = "0.31" -egui = "0.31" -egui_extras = "0.31" -egui_form = "0.5" -egui-phosphor = "0.9" -egui-theme-switch = "0.2.3" -egui-toast = "0.16" +eframe = "0.32" +egui = "0.32" +egui_dock = "0.17" +egui_extras = "0.32" +egui_form = "0.6" +egui-phosphor = "0.10" +egui-theme-switch = "0.4" garde = "0.22" homedir = "0.3" indexmap = "2" open = "5" orion = "0.17" parking_lot = "0.12" -paste = "1" polling = "3" rusqlite = "0.33" rustix = "0.38" -serde = "1" signal-hook = "0.3" smol = "2" thiserror = "2" tracing = "0.1" tracing-subscriber = "0.3" -uuid = "1" -validator = "0.20" wezterm-ssh = { git = "https://github.com/iamazy/wezterm.git", branch = "nxssh" } windows = "0.59" +wgpu = "25" [profile.release] strip = true diff --git a/crates/egui-dock/Cargo.toml b/crates/egui-dock/Cargo.toml deleted file mode 100644 index 36be865..0000000 --- a/crates/egui-dock/Cargo.toml +++ /dev/null @@ -1,31 +0,0 @@ -[package] -name = "egui_dock" -description = "Docking system for egui - an immediate-mode GUI library for Rust" -authors = ["lain-dono", "Adam Gąsior (Adanos020)"] -version = "0.15.0" -edition = "2021" -rust-version = "1.76" -license = "MIT" -readme = "README.md" -repository = "https://github.com/Adanos020/egui_dock" -categories = ["gui", "game-development"] -include = ["src/**/*.rs", "Cargo.toml", "LICENSE"] - -[features] -default = [] - -# Enable serialization of `Tree`. -serde = ["dep:serde", "egui/serde"] - -[dependencies] -egui = { workspace = true } -serde = { workspace = true, optional = true, features = ["derive"] } -duplicate.workspace = true -paste.workspace = true - -[dev-dependencies] -eframe = { workspace = true, features = [ - "default", - "default_fonts", - "glow", -] } diff --git a/crates/egui-dock/examples/hello.rs b/crates/egui-dock/examples/hello.rs deleted file mode 100644 index 1dd63af..0000000 --- a/crates/egui-dock/examples/hello.rs +++ /dev/null @@ -1,638 +0,0 @@ -#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release - -use std::collections::HashSet; - -use eframe::NativeOptions; -use egui::{ - color_picker::{color_edit_button_srgba, Alpha}, - vec2, CentralPanel, ComboBox, Frame, Rounding, Slider, TopBottomPanel, Ui, ViewportBuilder, - WidgetText, -}; - -use egui_dock::{ - AllowedSplits, DockArea, DockState, NodeIndex, OverlayType, Style, SurfaceIndex, - TabInteractionStyle, TabViewer, -}; - -/// Adds a widget with a label next to it, can be given an extra parameter in order to show a hover text -macro_rules! labeled_widget { - ($ui:expr, $x:expr, $l:expr) => { - $ui.horizontal(|ui| { - ui.add($x); - ui.label($l); - }); - }; - ($ui:expr, $x:expr, $l:expr, $d:expr) => { - $ui.horizontal(|ui| { - ui.add($x).on_hover_text($d); - ui.label($l).on_hover_text($d); - }); - }; -} - -// Creates a slider which has a unit attached to it -// When given an extra parameter it will be used as a multiplier (e.g 100.0 when working with percentages) -macro_rules! unit_slider { - ($val:expr, $range:expr) => { - egui::Slider::new($val, $range) - }; - ($val:expr, $range:expr, $unit:expr) => { - egui::Slider::new($val, $range).custom_formatter(|value, decimal_range| { - egui::emath::format_with_decimals_in_range(value, decimal_range) + $unit - }) - }; - ($val:expr, $range:expr, $unit:expr, $mul:expr) => { - egui::Slider::new($val, $range) - .custom_formatter(|value, decimal_range| { - egui::emath::format_with_decimals_in_range(value * $mul, decimal_range) + $unit - }) - .custom_parser(|string| string.parse::().ok().map(|valid| valid / $mul)) - }; -} - -fn main() -> eframe::Result<()> { - std::env::set_var("RUST_BACKTRACE", "1"); - let options = NativeOptions { - viewport: ViewportBuilder::default().with_inner_size(vec2(1024.0, 1024.0)), - ..Default::default() - }; - eframe::run_native( - "My egui App", - options, - Box::new(|_cc| Ok(Box::::default())), - ) -} - -struct MyContext { - pub title: String, - pub age: u32, - pub style: Option