Skip to content

Commit

Permalink
tweak font styling + layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Jun 2, 2015
1 parent 45426eb commit a022d32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}

.activeNode {
background-color: #BBCCFF !important;
background-color: #92c1f0;
}

.nodeLabel {
Expand All @@ -31,10 +31,12 @@

.nodeLabelChunk {
font-style: italic;
cursor: pointer;
}

.nodeLabelSection {
font-weight: bold;
cursor: pointer;
}

.nodeLabelFunction {
font-family: inherit;
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ private Label createLabel(Scope node)
label.addStyleName(RES.styles().nodeLabelChunk());
else if (node.isSection())
label.addStyleName(RES.styles().nodeLabelSection());
else if (node.isFunction())
label.addStyleName(RES.styles().nodeLabelFunction());
return label;
}

Expand Down Expand Up @@ -218,7 +220,7 @@ private void buildScopeTree()
tree_.clear();
JsArray<Scope> scopeTree = target_.getDocDisplay().getScopeTree();
for (int i = 0; i < scopeTree.length(); i++)
buildScopeTreeImpl(scopeTree.get(i), 0);
buildScopeTreeImpl(scopeTree.get(i), -1);
}

private void buildScopeTreeImpl(Scope node, int depth)
Expand Down Expand Up @@ -306,6 +308,7 @@ public interface Styles extends CssResource
String nodeLabel();
String nodeLabelChunk();
String nodeLabelSection();
String nodeLabelFunction();
}

public interface Resources extends ClientBundle
Expand Down

0 comments on commit a022d32

Please sign in to comment.