Skip to content

Commit

Permalink
Update to new minor version 0.28
Browse files Browse the repository at this point in the history
Fixed clippy lint rules
  • Loading branch information
thebashpotato committed Aug 7, 2024
1 parent ac7d9fa commit 2e77464
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
13 changes: 6 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ nord = []
tokyo_night = []

[dependencies]
egui = "0.27"
egui = "0.28"

[lib]
name = "egui_aesthetix"
Expand All @@ -43,12 +43,11 @@ unsafe_code = "forbid"

[lints.clippy]
# Deny rules
all = "deny"
perf = "deny"
correctness = "deny"
complexity = "deny"
style = "deny"
pedantic = "deny"
perf = { level = "deny", priority = -1 }
style = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
correctness = { level = "deny", priority = -1 }
complexity = { level = "deny", priority = -1 }
as_underscore = "deny"
assertions_on_result_states = "deny"
clone_on_ref_ptr = "deny"
Expand Down
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#[cfg(feature = "default")]
pub mod themes;

use egui::style::ScrollStyle;

/// Every custom egui theme that wishes to use the egui aesthetix crate must implement this trait.
/// Aesthetix is structured in such a way that it is easy to customize the theme to your liking.
///
Expand Down Expand Up @@ -141,7 +139,7 @@ pub trait Aesthetix {
tooltip_width: 600.0,
indent_ends_with_horizontal_line: false,
combo_height: 200.0,
scroll: ScrollStyle {
scroll: egui::style::ScrollStyle {
bar_width: self.scroll_bar_width_style(),
handle_min_length: 12.0,
bar_inner_margin: 4.0,
Expand Down Expand Up @@ -334,13 +332,12 @@ pub trait Aesthetix {
text_styles: self.custom_text_styles(),

// set your drag value text style:
// drag_value_text_style: egui::TextStyle,
spacing: self.spacing_style(),
interaction: self.interaction_style(),

visuals: egui::Visuals {
dark_mode: self.dark_mode_visuals(),
//override_text_color: self.fg_primary_text_color_visuals(),
override_text_color: self.fg_primary_text_color_visuals(),
widgets: egui::style::Widgets {
noninteractive: self.custom_noninteractive_widget_visuals(),
inactive: self.widget_inactive_visual(),
Expand Down Expand Up @@ -384,7 +381,6 @@ pub trait Aesthetix {
..Default::default()
},
resize_corner_size: 12.0,
text_cursor_preview: false,
clip_rect_margin: 3.0,
button_frame: true,
collapsing_header_frame: true,
Expand Down

0 comments on commit 2e77464

Please sign in to comment.