src/Tools/jEdit/src/session_dockable.scala
changeset 46688 134982ee4ecb
parent 46681 c083a3f621c0
child 46723 54ea872b60ea
equal deleted inserted replaced
46687:7e47ae85e161 46688:134982ee4ecb
   114           var end = size.width - insets.right
   114           var end = size.width - insets.right
   115           for {
   115           for {
   116             (n, color) <- List(
   116             (n, color) <- List(
   117               (st.unprocessed, Isabelle_Rendering.unprocessed1_color),
   117               (st.unprocessed, Isabelle_Rendering.unprocessed1_color),
   118               (st.running, Isabelle_Rendering.running_color),
   118               (st.running, Isabelle_Rendering.running_color),
       
   119               (st.warned, Isabelle_Rendering.warning_color),
   119               (st.failed, Isabelle_Rendering.error_color)) }
   120               (st.failed, Isabelle_Rendering.error_color)) }
   120           {
   121           {
   121             gfx.setColor(color)
   122             gfx.setColor(color)
   122             val v = (n * w / st.total) max (if (n > 0) 2 else 0)
   123             val v = (n * w / st.total) max (if (n > 0) 2 else 0)
   123             gfx.fillRect(end - v, insets.top, v, h)
   124             gfx.fillRect(end - v, insets.top, v, h)