Skip to content

Commit

Permalink
Limit minimum brightness sliders in overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Nov 1, 2023
1 parent 4db4249 commit acfde1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Increased maximum volume for nightmare detection sound effect to 200%.
- Limited simple- and image brightness sliders in overlay to a minimum of 5%.

## [1.10.1]

Expand Down
2 changes: 2 additions & 0 deletions src-overlay-ui/src/lib/components/BrightnessSliders.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
}}>
<BrightnessSlider label={$t('t.overlay.brightness.simple')}
value={brightnessState.brightness}
min={5}
isTransitioning={brightnessState.brightnessTransitioning}
transitionTarget="{brightnessState.brightnessTransitionTarget}"
onValueChange={throttle((value) => ipc.setBrightness('SIMPLE', value), 16, {leading: true, trailing: true})}
Expand All @@ -49,6 +50,7 @@
y: flyYTransform,
}}>
<BrightnessSlider label={$t('t.overlay.brightness.image')}
min={5}
value={brightnessState.imageBrightness}
isTransitioning={brightnessState.imageBrightnessTransitioning}
transitionTarget="{brightnessState.imageBrightnessTransitionTarget}"
Expand Down

0 comments on commit acfde1a

Please sign in to comment.