Skip to content

Commit

Permalink
Fix disabled slider highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
NiskashY committed Jul 7, 2023
1 parent 1b3bf48 commit 4394936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/slider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void Slider::_notification(int p_what) {
Ref<StyleBox> style = theme_cache.slider_style;
Ref<Texture2D> tick = theme_cache.tick_icon;

bool highlighted = mouse_inside || has_focus();
bool highlighted = editable && (mouse_inside || has_focus());
Ref<Texture2D> grabber;
if (editable) {
if (highlighted) {
Expand Down

0 comments on commit 4394936

Please sign in to comment.