diff options
author | Marius Volkhart <Marius@volkhart.com> | 2012-07-22 20:48:37 -0500 |
---|---|---|
committer | Marius Volkhart <Marius@volkhart.com> | 2012-07-22 20:48:37 -0500 |
commit | 40f0e594bbdec489b206114423c9efbc6c2142fb (patch) | |
tree | c231ed6789f95bee122d880bb42e9e426a85d873 /lint/cli | |
parent | 1f2d05faf09d8251604d3b5dd2f24930d8470a8d (diff) | |
download | sdk-40f0e594bbdec489b206114423c9efbc6c2142fb.zip sdk-40f0e594bbdec489b206114423c9efbc6c2142fb.tar.gz sdk-40f0e594bbdec489b206114423c9efbc6c2142fb.tar.bz2 |
Lint: Include "Return to top" in HTML reports
When categories and ids are clicked the page will return to the top.
Added formatting to CSS to maintain consistency.
There is currently no way of returning to top.
Change-Id: I539138c90a6ef3e7f4b7095190a307f8266fb0bf
Diffstat (limited to 'lint/cli')
-rw-r--r-- | lint/cli/src/com/android/tools/lint/HtmlReporter.java | 8 | ||||
-rw-r--r-- | lint/cli/src/com/android/tools/lint/hololike.css | 34 |
2 files changed, 37 insertions, 5 deletions
diff --git a/lint/cli/src/com/android/tools/lint/HtmlReporter.java b/lint/cli/src/com/android/tools/lint/HtmlReporter.java index e962fec..2d4eb82 100644 --- a/lint/cli/src/com/android/tools/lint/HtmlReporter.java +++ b/lint/cli/src/com/android/tools/lint/HtmlReporter.java @@ -156,9 +156,9 @@ public class HtmlReporter extends Reporter { mWriter.write("\n<a name=\""); //$NON-NLS-1$ mWriter.write(issue.getCategory().getFullName()); mWriter.write("\"></a>\n"); //$NON-NLS-1$ - mWriter.write("<div class=\"category\">"); //$NON-NLS-1$ + mWriter.write("<div class=\"category\"><a href=\"#\" title=\"Return to top\">"); //$NON-NLS-1$ mWriter.write(issue.getCategory().getFullName()); - mWriter.write("<div class=\"categorySeparator\"></div>\n");//$NON-NLS-1$ + mWriter.write("</a><div class=\"categorySeparator\"></div>\n");//$NON-NLS-1$ mWriter.write("</div>\n"); //$NON-NLS-1$ } @@ -166,9 +166,9 @@ public class HtmlReporter extends Reporter { mWriter.write("<div class=\"issue\">\n"); //$NON-NLS-1$ // Explain this issue - mWriter.write("<div class=\"id\">"); //$NON-NLS-1$ + mWriter.write("<div class=\"id\"><a href=\"#\" title=\"Return to top\">"); //$NON-NLS-1$ mWriter.write(issue.getId()); - mWriter.write("<div class=\"issueSeparator\"></div>\n"); //$NON-NLS-1$ + mWriter.write("</a><div class=\"issueSeparator\"></div>\n"); //$NON-NLS-1$ mWriter.write("</div>\n"); //$NON-NLS-1$ mWriter.write("<div class=\"warningslist\">\n"); //$NON-NLS-1$ diff --git a/lint/cli/src/com/android/tools/lint/hololike.css b/lint/cli/src/com/android/tools/lint/hololike.css index 5c0080c..4f1fdfa 100644 --- a/lint/cli/src/com/android/tools/lint/hololike.css +++ b/lint/cli/src/com/android/tools/lint/hololike.css @@ -124,6 +124,38 @@ a:active { .issue a:visited { text-decoration: underline; } +.id a:link { + text-decoration: none; + color: #bebebe; +} +.id a:visited { + text-decoration: none; + color: #bebebe; +} +.id a:hover { + text-decoration: underline; + color: #f3f3f3; +} +.id a:active { + text-decoration: underline; + color: #bebebe; +} +.category a:link { + text-decoration: none; + color: #bebebe; +} +.category a:visited { + text-decoration: none; + color: #bebebe; +} +.category a:hover { + text-decoration: underline; + color: #f3f3f3; +} +.category a:active { + text-decoration: underline; + color: #bebebe; +} button { color: #ffffff; background-color: #353535; @@ -133,4 +165,4 @@ button { border-top: solid 1px #5b5b5b; font-family: 'Roboto', Sans-Serif; font-size: 12pt; -}
\ No newline at end of file +} |