From ba0ecb560b291e7a9ba3c4a71e757e47d757482b Mon Sep 17 00:00:00 2001 From: Heiko Braun Date: Thu, 2 Aug 2012 10:13:42 +0200 Subject: [PATCH] update browser styles --- .../org/jboss/as/console/client/tools/BrowserView.java | 4 +++- .../jboss/as/console/client/tools/DescriptionView.java | 4 ++-- gui/src/main/java/org/jboss/as/console/public/lab.css | 9 +++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gui/src/main/java/org/jboss/as/console/client/tools/BrowserView.java b/gui/src/main/java/org/jboss/as/console/client/tools/BrowserView.java index 6b9401e454..90e68880b1 100644 --- a/gui/src/main/java/org/jboss/as/console/client/tools/BrowserView.java +++ b/gui/src/main/java/org/jboss/as/console/client/tools/BrowserView.java @@ -68,10 +68,12 @@ private void create() { window.setGlassEnabled(true); tree = new Tree(); + tree.getElement().addClassName("browser-tree"); tree.addSelectionHandler(new SelectionHandler() { @Override public void onSelection(SelectionEvent selection) { - final LinkedList path = resolvePath(selection.getSelectedItem()); + TreeItem selectedItem = selection.getSelectedItem(); + final LinkedList path = resolvePath(selectedItem); rawView.clearDisplay(); descView.clearDisplay(); diff --git a/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java b/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java index 4bc9956f63..b80451d18a 100644 --- a/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java +++ b/gui/src/main/java/org/jboss/as/console/client/tools/DescriptionView.java @@ -93,9 +93,9 @@ public void updateDescription(ModelNode address, ModelNode description) .appendEscaped(sb.toString()) .appendHtmlConstant(""); - builder.appendHtmlConstant("

") + builder.appendHtmlConstant("

") .appendEscaped(description.get("description").asString()) - .appendHtmlConstant("

"); + .appendHtmlConstant("

"); header.setHTML(builder.toSafeHtml()); diff --git a/gui/src/main/java/org/jboss/as/console/public/lab.css b/gui/src/main/java/org/jboss/as/console/public/lab.css index fe59318a60..651c4adcff 100644 --- a/gui/src/main/java/org/jboss/as/console/public/lab.css +++ b/gui/src/main/java/org/jboss/as/console/public/lab.css @@ -161,4 +161,13 @@ a:hover, a:active { outline: none; } input[type="checkbox"] { width: 15px!important; +} + +.browser-tree .gwt-TreeItem { + color: #404040; +} + +.browser-tree .gwt-TreeItem-selected { + font-weight: BOLD; + color: #000000; } \ No newline at end of file