Skip to content

Commit 24f58a8

Browse files
Ervuvanos's suggestion for UiSlider wrong code
1 parent 729920c commit 24f58a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorials/menu/menu_05.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __init__(self, input_text_default: str, toggle_label: str, dropdown_options:
183183
slider_label = arcade.gui.UILabel(text=slider_label)
184184
pressed_style = arcade.gui.UISlider.UIStyle(filled_bar=arcade.color.GREEN, unfilled_bar=arcade.color.RED)
185185
default_style = arcade.gui.UISlider.UIStyle()
186-
style_dict = {"press": pressed_style, "normal": default_style, "hovered": default_style, "disabled": default_style}
186+
style_dict = {"press": pressed_style, "normal": default_style, "hover": default_style, "disabled": default_style}
187187
# Configuring the styles is optional.
188188
slider = arcade.gui.UISlider(value=50, width=250, style=style_dict)
189189
space_70 = arcade.gui.UISpace(height=70, color=arcade.color.DARK_BLUE_GRAY)

0 commit comments

Comments
 (0)