1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00
This commit is contained in:
Arnaud Roques 2022-01-14 18:06:05 +01:00
parent e823b5f00f
commit adc23450c8
5 changed files with 9 additions and 4 deletions

View File

@ -313,6 +313,9 @@ ganttDiagram {
Margin 2 2 2 2
Padding 0
}
undone {
BackGroundColor white
}
milestone {
Margin 2
Padding 3

View File

@ -54,7 +54,7 @@ public class CommandNetwork extends SingleLineCommand2<NwDiagram> {
RegexLeaf.spaceZeroOrMore(), //
new RegexLeaf("network"), //
RegexLeaf.spaceZeroOrMore(), //
new RegexLeaf("NAME", "([%pLN_]+)?"), //
new RegexLeaf("NAME", "([-.%pLN_]+)?"), //
RegexLeaf.spaceZeroOrMore(), //
new RegexLeaf("\\{"), RegexLeaf.end());
}

View File

@ -69,6 +69,7 @@ import net.sourceforge.plantuml.style.SName;
import net.sourceforge.plantuml.style.Style;
import net.sourceforge.plantuml.style.StyleBuilder;
import net.sourceforge.plantuml.style.StyleSignature;
import net.sourceforge.plantuml.style.Value;
import net.sourceforge.plantuml.svek.image.Opale;
import net.sourceforge.plantuml.ugraphic.UGraphic;
import net.sourceforge.plantuml.ugraphic.ULine;
@ -291,13 +292,13 @@ public class TaskDrawRegular extends AbstractTaskDraw {
off.add(new Segment(x1, x2));
}
final HColor back2 = StyleSignature.of(SName.root, SName.document, SName.ganttDiagram)
final HColor backUndone = StyleSignature.of(SName.root, SName.element, SName.ganttDiagram, SName.undone)
.getMergedStyle(getStyleBuilder()).value(PName.BackGroundColor)
.asColor(skinParam.getThemeStyle(), getColorSet());
final RectangleTask rectangleTask = new RectangleTask(startPos, endPos, round, getCompletion(), off);
rectangleTask.draw(ug, getShapeHeight(stringBounder), back2, oddStart, oddEnd);
rectangleTask.draw(ug, getShapeHeight(stringBounder), backUndone, oddStart, oddEnd);
if (url != null) {
ug.closeUrl();

View File

@ -118,6 +118,7 @@ public enum SName {
timeline, //
timingDiagram, //
title, //
undone, //
unstarted, //
usecase, //
wbsDiagram, //

View File

@ -80,7 +80,7 @@ public class Version {
}
public static int beta() {
final int beta = 1;
final int beta = 3;
return beta;
}