ItEr37S16RFMaquetacionDesenhoAplicacionItEr36S18: Sticky button for critical path
This commit is contained in:
parent
27c6282ce1
commit
59160e113c
2 changed files with 12 additions and 0 deletions
|
|
@ -330,13 +330,16 @@ public class Planner extends HtmlMacroComponent {
|
|||
};
|
||||
|
||||
public void showCriticalPath() {
|
||||
Button showCriticalPathButton = (Button) getFellow("showCriticalPath");
|
||||
if (disabilityConfiguration.isCriticalPathEnabled()) {
|
||||
if (isShowingCriticalPath) {
|
||||
context.hideCriticalPath();
|
||||
diagramGraph.removePostGraphChangeListener(showCriticalPathOnChange);
|
||||
showCriticalPathButton.setSclass("planner-command");
|
||||
} else {
|
||||
context.showCriticalPath();
|
||||
diagramGraph.addPostGraphChangeListener(showCriticalPathOnChange);
|
||||
showCriticalPathButton.setSclass("planner-command clicked");
|
||||
}
|
||||
isShowingCriticalPath = !isShowingCriticalPath;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,6 +186,15 @@ button.z-button {
|
|||
padding: 2px 1px 1px 2px;
|
||||
}
|
||||
|
||||
.planner-command.clicked .z-button-cm {
|
||||
background-color: #A1D586; /* green2 (active background)*/
|
||||
border-right: 1px solid #439e32;
|
||||
border-bottom: 1px solid #439e32;
|
||||
border-top: 2px solid #3f5917;
|
||||
border-left: 2px solid #3f5917;
|
||||
padding: 2px 1px 1px 2px;
|
||||
}
|
||||
|
||||
|
||||
.sub_menu .z-button-cm {
|
||||
background-color: transparent !important;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue