Halle Berry, Gabriel Aubry Hammer It Out in Court

4/12/2011 3:14 PM PDT

Halle Berry, Gabriel Aubry Hammer It Out in Court

Halle Berry and Gabriel Aubry just left the L.A. County Courthouse, after trying to finalize a custody settlement with the judge.

TMZ was in the courtroom when Judge Mark Juhas said to Gabriel and his lawyers, "We're making huge progress. We need to stick with it."

Halle and her lawyers, Neal Hersh and Judy Bogen, went into chambers to talk with the judge. Before that, Gabriel and his lawyers, Gary Fishbein and Kristina Royce, went into chambers to jawbone with hizzoner.

We're told it's all part of a settlement conference over Nahla's custody and visitation. The major stumbling block has been Halle's acting schedule, which takes her out of town from time to time.

From what happened this AM, it looks like Halle and Gabriel are on the verge of an agreement -- and a truce.