File tree Expand file tree Collapse file tree 7 files changed +19
-10
lines changed Expand file tree Collapse file tree 7 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,21 @@ All notable changes to the `egui double slider` crate will be documented in this
6
6
7
7
### Added:
8
8
9
+ * ...
10
+
11
+ # 0.8.0 - 6.7.2025
12
+
13
+ ### Added:
14
+
9
15
* Changed default styles to match active egui visuals
16
+ * Added ` egui-theme-switch ` to the example
10
17
11
18
# 0.7.3 - 19.6.2025
12
19
13
20
### Added:
14
21
15
22
* Fixed scroll and zoom factors
16
23
17
-
18
24
# 0.7.2 - 10.6.2025
19
25
20
26
### Added:
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " egui_double_slider"
3
- version = " 0.7.3 "
3
+ version = " 0.8.0 "
4
4
edition = " 2021"
5
5
authors = [" Linus Leo Stöckli" ]
6
6
repository = " https://github.com/hacknus/egui_double_slider"
@@ -16,4 +16,5 @@ license = "Apache-2.0"
16
16
egui = " 0.31"
17
17
18
18
[dev-dependencies ]
19
- eframe = " 0.31"
19
+ eframe = " 0.31"
20
+ egui-theme-switch = " 0.3.0"
Original file line number Diff line number Diff line change 6
6
7
7
A double slider widget for the GUI rust library [ egui] ( https://github.com/emilk/egui ) .
8
8
9
- ![ screenshot] ( screenshot.png )
9
+ ![ screenshot dark] ( screenshot_dark.png )
10
+ ![ screenshot light] ( screenshot_light.png )
10
11
11
12
Add double slider along with ` eframe ` to your ` cargo.toml ` .
12
13
13
14
``` toml
14
15
eframe = " 0.31"
15
- egui_double_slider = " 0.7.3 "
16
+ egui_double_slider = " 0.8.0 "
16
17
```
17
18
18
19
To run the example:
@@ -23,8 +24,8 @@ cargo run --example example
23
24
Example code:
24
25
25
26
``` rust
26
- use egui_double_slider :: DoubleSlider ;
27
27
use egui;
28
+ use egui_double_slider :: DoubleSlider ;
28
29
29
30
fn main () {
30
31
egui :: __run_test_ui (| ui | {
@@ -40,7 +41,3 @@ fn main() {
40
41
});
41
42
}
42
43
```
43
-
44
- TODO:
45
-
46
- - [ ] better connection to egui ctx style (like the normal Slider widget)
Original file line number Diff line number Diff line change 1
1
use eframe:: { App , NativeOptions } ;
2
2
use egui:: { Context , Window } ;
3
3
use egui_double_slider:: DoubleSlider ;
4
+ use egui_theme_switch:: global_theme_switch;
4
5
5
6
fn main ( ) {
6
7
let options = NativeOptions :: default ( ) ;
@@ -118,6 +119,10 @@ impl App for MyApp {
118
119
) ;
119
120
ui. label ( format ! ( "Lower Bound: {:.3e}" , self . slider_f64_log_low) ) ;
120
121
ui. label ( format ! ( "Upper Bound: {:.3e}" , self . slider_f64_log_high) ) ;
122
+
123
+ ui. add_space ( 10.0 ) ;
124
+
125
+ global_theme_switch ( ui) ;
121
126
} ) ;
122
127
}
123
128
}
You can’t perform that action at this time.
0 commit comments