Merge pull request #78776 from NiskashY/fix-disabled-slider-highlighting

Fix disabled slider highlighting
This commit is contained in:
Yuri Sizov 2023-07-10 12:32:39 +02:00 committed by GitHub
commit bbb11004e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ void Slider::_notification(int p_what) {
Ref<StyleBox> style = theme_cache.slider_style; Ref<StyleBox> style = theme_cache.slider_style;
Ref<Texture2D> tick = theme_cache.tick_icon; Ref<Texture2D> tick = theme_cache.tick_icon;
bool highlighted = mouse_inside || has_focus(); bool highlighted = editable && (mouse_inside || has_focus());
Ref<Texture2D> grabber; Ref<Texture2D> grabber;
if (editable) { if (editable) {
if (highlighted) { if (highlighted) {