Skip to content

Commit

Permalink
Merge pull request #78776 from NiskashY/fix-disabled-slider-highlighting
Browse files Browse the repository at this point in the history
Fix disabled slider highlighting
  • Loading branch information
YuriSizov authored Jul 10, 2023
2 parents 7030ac5 + 4394936 commit bbb1100
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 bbb1100

Please sign in to comment.