Skip to content

Commit 2e77464

Browse files
committed
Update to new minor version 0.28
Fixed clippy lint rules
1 parent ac7d9fa commit 2e77464

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ nord = []
2020
tokyo_night = []
2121

2222
[dependencies]
23-
egui = "0.27"
23+
egui = "0.28"
2424

2525
[lib]
2626
name = "egui_aesthetix"
@@ -43,12 +43,11 @@ unsafe_code = "forbid"
4343

4444
[lints.clippy]
4545
# Deny rules
46-
all = "deny"
47-
perf = "deny"
48-
correctness = "deny"
49-
complexity = "deny"
50-
style = "deny"
51-
pedantic = "deny"
46+
perf = { level = "deny", priority = -1 }
47+
style = { level = "deny", priority = -1 }
48+
pedantic = { level = "deny", priority = -1 }
49+
correctness = { level = "deny", priority = -1 }
50+
complexity = { level = "deny", priority = -1 }
5251
as_underscore = "deny"
5352
assertions_on_result_states = "deny"
5453
clone_on_ref_ptr = "deny"

src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#[cfg(feature = "default")]
1010
pub mod themes;
1111

12-
use egui::style::ScrollStyle;
13-
1412
/// Every custom egui theme that wishes to use the egui aesthetix crate must implement this trait.
1513
/// Aesthetix is structured in such a way that it is easy to customize the theme to your liking.
1614
///
@@ -141,7 +139,7 @@ pub trait Aesthetix {
141139
tooltip_width: 600.0,
142140
indent_ends_with_horizontal_line: false,
143141
combo_height: 200.0,
144-
scroll: ScrollStyle {
142+
scroll: egui::style::ScrollStyle {
145143
bar_width: self.scroll_bar_width_style(),
146144
handle_min_length: 12.0,
147145
bar_inner_margin: 4.0,
@@ -334,13 +332,12 @@ pub trait Aesthetix {
334332
text_styles: self.custom_text_styles(),
335333

336334
// set your drag value text style:
337-
// drag_value_text_style: egui::TextStyle,
338335
spacing: self.spacing_style(),
339336
interaction: self.interaction_style(),
340337

341338
visuals: egui::Visuals {
342339
dark_mode: self.dark_mode_visuals(),
343-
//override_text_color: self.fg_primary_text_color_visuals(),
340+
override_text_color: self.fg_primary_text_color_visuals(),
344341
widgets: egui::style::Widgets {
345342
noninteractive: self.custom_noninteractive_widget_visuals(),
346343
inactive: self.widget_inactive_visual(),
@@ -384,7 +381,6 @@ pub trait Aesthetix {
384381
..Default::default()
385382
},
386383
resize_corner_size: 12.0,
387-
text_cursor_preview: false,
388384
clip_rect_margin: 3.0,
389385
button_frame: true,
390386
collapsing_header_frame: true,

0 commit comments

Comments
 (0)