Skip to content

Commit 5e43cc3

Browse files
committed
added egui-theme-switch to example and bump to 0.8.0
1 parent 479f620 commit 5e43cc3

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

CHANGELOG.MD

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,21 @@ All notable changes to the `egui double slider` crate will be documented in this
66

77
### Added:
88

9+
* ...
10+
11+
# 0.8.0 - 6.7.2025
12+
13+
### Added:
14+
915
* Changed default styles to match active egui visuals
16+
* Added `egui-theme-switch` to the example
1017

1118
# 0.7.3 - 19.6.2025
1219

1320
### Added:
1421

1522
* Fixed scroll and zoom factors
1623

17-
1824
# 0.7.2 - 10.6.2025
1925

2026
### Added:

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egui_double_slider"
3-
version = "0.7.3"
3+
version = "0.8.0"
44
edition = "2021"
55
authors = ["Linus Leo Stöckli"]
66
repository = "https://github.com/hacknus/egui_double_slider"
@@ -16,4 +16,5 @@ license = "Apache-2.0"
1616
egui = "0.31"
1717

1818
[dev-dependencies]
19-
eframe = "0.31"
19+
eframe = "0.31"
20+
egui-theme-switch = "0.3.0"

README.MD

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
A double slider widget for the GUI rust library [egui](https://github.com/emilk/egui).
88

9-
![screenshot](screenshot.png)
9+
![screenshot dark](screenshot_dark.png)
10+
![screenshot light](screenshot_light.png)
1011

1112
Add double slider along with `eframe` to your `cargo.toml`.
1213

1314
```toml
1415
eframe = "0.31"
15-
egui_double_slider = "0.7.3"
16+
egui_double_slider = "0.8.0"
1617
```
1718

1819
To run the example:
@@ -23,8 +24,8 @@ cargo run --example example
2324
Example code:
2425

2526
```rust
26-
use egui_double_slider::DoubleSlider;
2727
use egui;
28+
use egui_double_slider::DoubleSlider;
2829

2930
fn main() {
3031
egui::__run_test_ui(|ui| {
@@ -40,7 +41,3 @@ fn main() {
4041
});
4142
}
4243
```
43-
44-
TODO:
45-
46-
- [ ] better connection to egui ctx style (like the normal Slider widget)

examples/example.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use eframe::{App, NativeOptions};
22
use egui::{Context, Window};
33
use egui_double_slider::DoubleSlider;
4+
use egui_theme_switch::global_theme_switch;
45

56
fn main() {
67
let options = NativeOptions::default();
@@ -118,6 +119,10 @@ impl App for MyApp {
118119
);
119120
ui.label(format!("Lower Bound: {:.3e}", self.slider_f64_log_low));
120121
ui.label(format!("Upper Bound: {:.3e}", self.slider_f64_log_high));
122+
123+
ui.add_space(10.0);
124+
125+
global_theme_switch(ui);
121126
});
122127
}
123128
}

screenshot.png

-73.7 KB
Binary file not shown.

screenshot_dark.png

500 KB
Loading

screenshot_light.png

505 KB
Loading

0 commit comments

Comments
 (0)