equal
deleted
inserted
replaced
164 (st.running, PIDE.options.color_value("running_color")), |
164 (st.running, PIDE.options.color_value("running_color")), |
165 (st.warned, PIDE.options.color_value("warning_color")), |
165 (st.warned, PIDE.options.color_value("warning_color")), |
166 (st.failed, PIDE.options.color_value("error_color")) |
166 (st.failed, PIDE.options.color_value("error_color")) |
167 ).filter(_._1 > 0) |
167 ).filter(_._1 > 0) |
168 |
168 |
169 ((size.width - 1) /: segments)({ case (last, (n, color)) => |
169 ((size.width - 2) /: segments)({ case (last, (n, color)) => |
170 val w = (n * ((size.width - 2) - segments.length) / st.total) max 4 |
170 val w = (n * ((size.width - 4) - segments.length) / st.total) max 4 |
171 paint_segment(last - w, w, color) |
171 paint_segment(last - w, w, color) |
172 last - w - 1 |
172 last - w - 1 |
173 }) |
173 }) |
174 |
174 |
175 case _ => |
175 case _ => |
186 { |
186 { |
187 val status = overall_node_status(name) |
187 val status = overall_node_status(name) |
188 val color = |
188 val color = |
189 if (status == Overall_Node_Status.failed) PIDE.options.color_value("error_color") |
189 if (status == Overall_Node_Status.failed) PIDE.options.color_value("error_color") |
190 else label.foreground |
190 else label.foreground |
191 val thickness1 = if (status == Overall_Node_Status.pending) 1 else 3 |
191 val thickness1 = if (status == Overall_Node_Status.pending) 1 else 2 |
192 val thickness2 = 4 - thickness1 |
192 val thickness2 = 3 - thickness1 |
193 |
193 |
194 label.border = |
194 label.border = |
195 BorderFactory.createCompoundBorder( |
195 BorderFactory.createCompoundBorder( |
196 BorderFactory.createLineBorder(color, thickness1), |
196 BorderFactory.createLineBorder(color, thickness1), |
197 BorderFactory.createEmptyBorder(thickness2, thickness2, thickness2, thickness2)) |
197 BorderFactory.createEmptyBorder(thickness2, thickness2, thickness2, thickness2)) |