set min and max values

This commit is contained in:
Pfauenauge90 2019-07-27 19:06:25 +02:00 committed by Imbris
parent d33bbf26ad
commit 8e15117be7
2 changed files with 5 additions and 9 deletions

View File

@ -643,8 +643,6 @@ impl Hud {
&self.show,
&self.imgs,
&self.fonts,
self.show.rel_to_win,
self.show.absolute,
)
.set(self.ids.settings_window, ui_widgets)
{

View File

@ -109,8 +109,6 @@ impl<'a> SettingsWindow<'a> {
show: &'a Show,
imgs: &'a Imgs,
fonts: &'a Fonts,
rel_to_win: bool,
absolute: bool,
) -> Self {
Self {
global_state,
@ -396,13 +394,13 @@ impl<'a> Widget for SettingsWindow<'a> {
if let ScaleMode::Absolute(scale) = ui_scale {
if let Some(new_val) = ImageSlider::continuous(
scale.log(2.0),
-0.5,
1.2,
0.5f64.log(2.0),
1.2f64.log(2.0),
self.imgs.slider_indicator,
self.imgs.slider,
)
.w_h(208.0, 22.0)
.right_from(state.ids.absolute_scale_text, 10.0)
.right_from(state.ids.absolute_scale_text, 12.0)
.track_breadth(30.0)
.slider_length(10.0)
.pad_track((5.0, 5.0))