Skip to content
Snippets Groups Projects
Commit 19e79ced authored by s224389's avatar s224389
Browse files

Changed contrast slider sensitivity

parent 9d0af6b1
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class AdvancedSettingsWidget(QWidget): ...@@ -52,7 +52,7 @@ class AdvancedSettingsWidget(QWidget):
self._lab_contrast = QLabel("Contrast (0.01)") self._lab_contrast = QLabel("Contrast (0.01)")
controls_layout.addWidget(self._lab_contrast, 2, 0) controls_layout.addWidget(self._lab_contrast, 2, 0)
self.contrast_slider = QSlider(Qt.Horizontal) self.contrast_slider = QSlider(Qt.Horizontal)
self.contrast_slider.setRange(1, 20) self.contrast_slider.setRange(1, 40)
self.contrast_slider.setValue(1) # i.e. 0.01 self.contrast_slider.setValue(1) # i.e. 0.01
self.contrast_slider.setSingleStep(1) self.contrast_slider.setSingleStep(1)
self.contrast_slider.valueChanged.connect(self._on_contrast_slider) self.contrast_slider.valueChanged.connect(self._on_contrast_slider)
...@@ -138,7 +138,7 @@ class AdvancedSettingsWidget(QWidget): ...@@ -138,7 +138,7 @@ class AdvancedSettingsWidget(QWidget):
""" """
Called when the contrast slider is moved. Called when the contrast slider is moved.
""" """
clip_limit = value / 100.0 clip_limit = value / 500.0
self._lab_contrast.setText(f"Contrast ({clip_limit:.2f})") self._lab_contrast.setText(f"Contrast ({clip_limit:.2f})")
self._main_window.update_contrast(clip_limit) self._main_window.update_contrast(clip_limit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment