mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 11:28:11 +08:00
Fix opacity slider range bug
This commit is contained in:
@@ -1836,6 +1836,8 @@ impl DocumentMessageHandler {
|
|||||||
value: opacity.map(|opacity| opacity * 100.),
|
value: opacity.map(|opacity| opacity * 100.),
|
||||||
min: Some(0.),
|
min: Some(0.),
|
||||||
max: Some(100.),
|
max: Some(100.),
|
||||||
|
range_min: Some(0.),
|
||||||
|
range_max: Some(100.),
|
||||||
mode: NumberInputMode::Range,
|
mode: NumberInputMode::Range,
|
||||||
on_update: WidgetCallback::new(|number_input: &NumberInput| {
|
on_update: WidgetCallback::new(|number_input: &NumberInput| {
|
||||||
if let Some(value) = number_input.value {
|
if let Some(value) = number_input.value {
|
||||||
|
|||||||
Reference in New Issue
Block a user