diff --git a/src/UI/Nodes/ValueSlider.gd b/src/UI/Nodes/ValueSlider.gd index 93d07b0d8..9f6196abe 100644 --- a/src/UI/Nodes/ValueSlider.gd +++ b/src/UI/Nodes/ValueSlider.gd @@ -193,6 +193,12 @@ func _reset_display() -> void: return line_edit.selecting_enabled = false # Remove the selection line_edit.editable = false + var line_edit_color := line_edit.get_color("font_color") + var line_edit_disabled_color: Color = Global.control.theme.get_color("read_only", "LineEdit") + if editable: + line_edit.add_color_override("font_color_uneditable", line_edit_color) + else: + line_edit.add_color_override("font_color_uneditable", line_edit_disabled_color) tint_under = get_color("under_color", "ValueSlider") if show_progress: tint_progress = get_color("progress_color", "ValueSlider")