Skip to content

Commit

Permalink
style improvements for new object button
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Feb 4, 2019
1 parent f54560d commit 4fba627
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Expand Up @@ -154,6 +154,7 @@ protected DisplayType getAdditionalButtonDisplayType(S buttonObject){
return getNewObjectButtonAdditionalDisplayType(buttonObject);
}
};
createNewObjectButton.add(AttributeAppender.append("class", "btn-margin-right"));
buttonsList.add(createNewObjectButton);


Expand Down
Expand Up @@ -275,7 +275,7 @@ protected DisplayType getDefaultObjectButtonDisplayType() {
return getNewObjectButtonDisplayType();
}
};
newObjectIcon.add(AttributeModifier.append("class", "btn-group"));
newObjectIcon.add(AttributeModifier.append("class", "btn-group btn-margin-right"));
newObjectIcon.add(new VisibleEnableBehaviour() {
private static final long serialVersionUID = 1L;

Expand Down
Expand Up @@ -154,7 +154,7 @@ protected List<AssignmentObjectRelation> getNewObjectInfluencesList() {

@Override
protected DisplayType getNewObjectButtonDisplayType() {
return WebComponentUtil.createDisplayType(GuiStyleConstants.EVO_ASSIGNMENT_ICON, "",
return WebComponentUtil.createDisplayType(GuiStyleConstants.EVO_ASSIGNMENT_ICON, "green",
AssignmentPanel.this.createStringResource("assignment.details.newValue").getString());
}

Expand Down
Expand Up @@ -254,6 +254,7 @@ protected DisplayType getDefaultObjectButtonDisplayType(){
return getAssignMemberButtonDisplayType();
}
};
assignButton.add(AttributeAppender.append("class", "btn-margin-right"));


// AjaxIconButton assignButton = new AjaxIconButton(buttonId, new Model<>(GuiStyleConstants.CLASS_ASSIGN), //TODO change icon class
Expand Down
Expand Up @@ -105,6 +105,14 @@
}
}

.btn-separate{
margin: 0px 10px 0px 10px;
}

.btn-margin-right{
margin: 0px 10px 0px 0px;
}

.btn-outline {
border: 1px solid #fff;
background: transparent;
Expand Down

0 comments on commit 4fba627

Please sign in to comment.