|
9 | 9 | #[cfg(feature = "default")]
|
10 | 10 | pub mod themes;
|
11 | 11 |
|
12 |
| -use egui::style::ScrollStyle; |
13 |
| - |
14 | 12 | /// Every custom egui theme that wishes to use the egui aesthetix crate must implement this trait.
|
15 | 13 | /// Aesthetix is structured in such a way that it is easy to customize the theme to your liking.
|
16 | 14 | ///
|
@@ -141,7 +139,7 @@ pub trait Aesthetix {
|
141 | 139 | tooltip_width: 600.0,
|
142 | 140 | indent_ends_with_horizontal_line: false,
|
143 | 141 | combo_height: 200.0,
|
144 |
| - scroll: ScrollStyle { |
| 142 | + scroll: egui::style::ScrollStyle { |
145 | 143 | bar_width: self.scroll_bar_width_style(),
|
146 | 144 | handle_min_length: 12.0,
|
147 | 145 | bar_inner_margin: 4.0,
|
@@ -334,13 +332,12 @@ pub trait Aesthetix {
|
334 | 332 | text_styles: self.custom_text_styles(),
|
335 | 333 |
|
336 | 334 | // set your drag value text style:
|
337 |
| - // drag_value_text_style: egui::TextStyle, |
338 | 335 | spacing: self.spacing_style(),
|
339 | 336 | interaction: self.interaction_style(),
|
340 | 337 |
|
341 | 338 | visuals: egui::Visuals {
|
342 | 339 | 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(), |
344 | 341 | widgets: egui::style::Widgets {
|
345 | 342 | noninteractive: self.custom_noninteractive_widget_visuals(),
|
346 | 343 | inactive: self.widget_inactive_visual(),
|
@@ -384,7 +381,6 @@ pub trait Aesthetix {
|
384 | 381 | ..Default::default()
|
385 | 382 | },
|
386 | 383 | resize_corner_size: 12.0,
|
387 |
| - text_cursor_preview: false, |
388 | 384 | clip_rect_margin: 3.0,
|
389 | 385 | button_frame: true,
|
390 | 386 | collapsing_header_frame: true,
|
|
0 commit comments