src/Tools/jEdit/src/session_dockable.scala
changeset 45665 129db1416717
parent 45100 0971c3ee3cdf
child 45672 a497c5d4a523
equal deleted inserted replaced
45664:ac6e704dcd12 45665:129db1416717
   112           val w = size.width - insets.left - insets.right
   112           val w = size.width - insets.left - insets.right
   113           val h = size.height - insets.top - insets.bottom
   113           val h = size.height - insets.top - insets.bottom
   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_Markup.unprocessed1_color),
   117               (st.unprocessed, Isabelle_Rendering.unprocessed1_color),
   118               (st.running, Isabelle_Markup.running_color),
   118               (st.running, Isabelle_Rendering.running_color),
   119               (st.failed, Isabelle_Markup.error_color)) }
   119               (st.failed, Isabelle_Rendering.error_color)) }
   120           {
   120           {
   121             gfx.setColor(color)
   121             gfx.setColor(color)
   122             val v = (n * w / st.total) max (if (n > 0) 2 else 0)
   122             val v = (n * w / st.total) max (if (n > 0) 2 else 0)
   123             gfx.fillRect(end - v, insets.top, v, h)
   123             gfx.fillRect(end - v, insets.top, v, h)
   124             end -= v
   124             end -= v