Skip to content

Commit

Permalink
TMP downgrade egui to 0.19.0
Browse files Browse the repository at this point in the history
Issue in 0.20 because of emilk/egui#2244
  • Loading branch information
Kryptos-FR committed Jan 21, 2023
1 parent d06b4fb commit 2e167b8
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 75 deletions.
49 changes: 11 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ parity-scale-codec = { version = "2.3.1", default-features = false, optional = t
chrono = { version = "0.4", optional = true }

chacha20poly1305 = { version = "0.9.0", optional = true }
egui = { version = "0.20.1", optional = true }
egui_commonmark = { version = "0.6.0", optional = true }
egui_dock = { version = "0.3.0", optional = true }
egui_extras = { version = "0.20.0", optional = true }
egui = { version = "0.19.0", optional = true }
egui_commonmark = { version = "0.5.0", optional = true }
# egui_dock = { version = "0.3.0", optional = true }
egui_extras = { version = "0.19.0", optional = true }
egui-gfx = { path = "../src/gfx/egui", optional = true }
egui_memory_editor = { version = "0.2.2", optional = true }
# egui_memory_editor = { version = "0.2.2", optional = true }
syntect = { version = "5.0.0", default-features = false, features = ["default-fancy"], optional = true }
half = { version = "2.0.0" }
tract-onnx = { version = "0.17.7", optional = true }
Expand Down Expand Up @@ -91,15 +91,15 @@ shards = ["reqwest",
"chrono",
"egui",
"egui_commonmark",
"egui_dock",
# "egui_dock",
"egui_extras",
"egui-gfx",
"code_editor",
"hex_viewer",
# "hex_viewer",
"tract-onnx",
"enum-map"]
code_editor = ["syntect", "egui_commonmark/syntax_highlighting"]
hex_viewer = ["egui_memory_editor"]
# hex_viewer = ["egui_memory_editor"]
dllshard = ["dlopen"]
scripting = []

Expand Down
24 changes: 12 additions & 12 deletions rust/src/shards/gui/containers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ shenum_types! {
static ref SEQ_OF_ANCHOR_TYPES: Vec<Type>;
}

struct DockArea {
instance: ParamVar,
requiring: ExposedTypes,
contents: ParamVar,
parents: ParamVar,
exposing: ExposedTypes,
headers: Vec<ParamVar>,
shards: Vec<ShardsVar>,
tabs: egui_dock::Tree<(ParamVar, ShardsVar)>,
}
// struct DockArea {
// instance: ParamVar,
// requiring: ExposedTypes,
// contents: ParamVar,
// parents: ParamVar,
// exposing: ExposedTypes,
// headers: Vec<ParamVar>,
// shards: Vec<ShardsVar>,
// tabs: egui_dock::Tree<(ParamVar, ShardsVar)>,
// }

struct Scope {
parents: ParamVar,
Expand Down Expand Up @@ -150,15 +150,15 @@ struct CentralPanel {
}

mod area;
mod docking;
// mod docking;
mod panels;
mod scope;
mod window;

pub fn registerShards() {
registerShard::<Area>();
registerEnumType(FRAG_CC, AnchorCC, AnchorEnumInfo.as_ref().into());
docking::registerShards();
// docking::registerShards();
registerShard::<Scope>();
registerShard::<Window>();
registerEnumType(FRAG_CC, WindowFlagsCC, WindowFlagsEnumInfo.as_ref().into());
Expand Down
28 changes: 14 additions & 14 deletions rust/src/shards/gui/layouts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ struct Space {
amount: ParamVar,
}

struct Table {
parents: ParamVar,
requiring: ExposedTypes,
rows: ParamVar,
columns: ParamVar,
striped: ParamVar,
resizable: ParamVar,
row_index: ParamVar,
shards: Vec<ShardsVar>,
header_shards: Vec<Option<ShardsVar>>,
exposing: ExposedTypes,
}
// struct Table {
// parents: ParamVar,
// requiring: ExposedTypes,
// rows: ParamVar,
// columns: ParamVar,
// striped: ParamVar,
// resizable: ParamVar,
// row_index: ParamVar,
// shards: Vec<ShardsVar>,
// header_shards: Vec<Option<ShardsVar>>,
// exposing: ExposedTypes,
// }

struct Vertical {
parents: ParamVar,
Expand All @@ -135,7 +135,7 @@ mod indent;
mod scroll_area;
mod separator;
mod space;
mod table;
// mod table;
mod vertical;

pub fn registerShards() {
Expand All @@ -151,6 +151,6 @@ pub fn registerShards() {
registerShard::<ScrollArea>();
registerShard::<Separator>();
registerShard::<Space>();
registerShard::<Table>();
// registerShard::<Table>();
registerShard::<Vertical>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl Highlighter {
let underline = if underline {
egui::Stroke::new(1.0, text_color)
} else {
egui::Stroke::NONE
egui::Stroke::none()
};
job.sections.push(LayoutSection {
leading_space: 0.0,
Expand Down
4 changes: 2 additions & 2 deletions src/gfx/egui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2021"

[dependencies]
egui = { version = "0.20.1" }
epaint = {version = "0.20.0"}
egui = { version = "0.19.0" }
epaint = { version = "0.19.0" }
lazy_static = "1.4.0"

[build-dependencies]
Expand Down

0 comments on commit 2e167b8

Please sign in to comment.