87 val w = size.width - insets.left - insets.right |
87 val w = size.width - insets.left - insets.right |
88 val h = size.height - insets.top - insets.bottom |
88 val h = size.height - insets.top - insets.bottom |
89 var end = size.width - insets.right |
89 var end = size.width - insets.right |
90 for { |
90 for { |
91 (n, color) <- List( |
91 (n, color) <- List( |
92 (st.unprocessed, Isabelle_Rendering.color_value("unprocessed1_color")), |
92 (st.unprocessed, Isabelle.options.color_value("unprocessed1_color")), |
93 (st.running, Isabelle_Rendering.color_value("running_color")), |
93 (st.running, Isabelle.options.color_value("running_color")), |
94 (st.warned, Isabelle_Rendering.color_value("warning_color")), |
94 (st.warned, Isabelle.options.color_value("warning_color")), |
95 (st.failed, Isabelle_Rendering.color_value("error_color"))) } |
95 (st.failed, Isabelle.options.color_value("error_color"))) } |
96 { |
96 { |
97 gfx.setColor(color) |
97 gfx.setColor(color) |
98 val v = (n * w / st.total) max (if (n > 0) 2 else 0) |
98 val v = (n * w / st.total) max (if (n > 0) 2 else 0) |
99 gfx.fillRect(end - v, insets.top, v, h) |
99 gfx.fillRect(end - v, insets.top, v, h) |
100 end -= v |
100 end -= v |