diff options
author | Tor Norbye <tnorbye@google.com> | 2012-08-27 12:31:07 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-27 12:31:08 -0700 |
commit | 1c83e8dac67c956be8561dbcb497a5a4f169fbe5 (patch) | |
tree | 5b8a3fd15bbdf25ec455c618b107c35ef57383ad /lint/cli | |
parent | 4984cf0dc2f6fce9f176fe0ca142a912e108e1a5 (diff) | |
parent | 40f0e594bbdec489b206114423c9efbc6c2142fb (diff) | |
download | sdk-1c83e8dac67c956be8561dbcb497a5a4f169fbe5.zip sdk-1c83e8dac67c956be8561dbcb497a5a4f169fbe5.tar.gz sdk-1c83e8dac67c956be8561dbcb497a5a4f169fbe5.tar.bz2 |
Merge "Lint: Include "Return to top" in HTML reports"
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 c3ed9d2..64eb912 100644 --- a/lint/cli/src/com/android/tools/lint/HtmlReporter.java +++ b/lint/cli/src/com/android/tools/lint/HtmlReporter.java @@ -157,9 +157,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$ } @@ -167,9 +167,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 +} |